Brand new age from scratch...problem

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Brand new age from scratch...problem

Postby boblishman » Sat Jan 26, 2008 9:59 am

Oooookaaaayyyy... So, filled with encouragment from my fellow writers, I decided "Go for it!" ... write a brand new age, completely from scratch ... best way to learn the new plugin...

So, remove all old plugin files from .blender folder, download and installed GoWPyPrp 1.2.0 ... opened Blender, deleted the box and lamp... nice clean, empty Blender ... hmm ... exciting! ...

Created a new book, set its new Sequence Prefix, added a ground plane (keep it simple to start with!) , added bounds & material texture, uvmapped, bit of vertex painting to it, then added a sun, a panic link region (I hate that drop!) and a footsteps region... ok, nice and simple... lets go see... (holds breath...)

Load new age with ULM client, start Uru, arrive in Relto... book waiting on shelf... open book... click linking panel ....fade & link noise (oooh...exciting!!) ... then ............ DINK! (yes, I still have XP) ...

fni.jpg
oh...er...
fni.jpg (32.01 KiB) Viewed 4789 times



oooookkaaaay, ... press OK... link into my new age....(everything fine in there :P ... just as expected) .

So, what's with the DINK? ... my fault, or someone elses?

oh... here's what the .init file (that the book script created ... not me .... I didn't touch it, honest ! ) says ...

fog.jpg
script "Created A New Book " made this .init file ....
fog.jpg (60.33 KiB) Viewed 4779 times
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Brand new age from scratch...problem

Postby andylegate » Sat Jan 26, 2008 10:35 am

Hmmmmmm......

Not too sure, the only difference between your fni and my fni is that I've got a space between the top 2 lines

#Fog settings

#graphics.Renderer.SetYon float yon

like that. But I don't see why or how that would cause a problem since those 2 lines are remarks anyway.

I'm using XP too (couldn't pay me enough to go to Vista......)

But at least you were able to complete linking in....

Have you tried re-exporting it just for fun and giggles and try linking in again? See if you get that error every single time?
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Brand new age from scratch...problem

Postby boblishman » Sat Jan 26, 2008 11:32 am

yes Andy, I have... several times... always the same error, even with the line break added to seperate the top two comments ....but....wait... it gets worse ...

... now, as I could link in I thought "well, I can continue building because I can get into the age whilst I wait for an answer " ...so.. deep breath .. "lets add some sound" (yeah, why not go for something HARD ... ;) )

So... first attempt at Alcscript ... thought... I know, I'l copy and paste from the tutorial, then make changes to the filenames... errr.... no copy/paste from outside blender (at least I cant make it copy paste from anything OUTSIDE of Blender itself) ... so... deep breath ... write the code by hand ...

Added sound file to Blender via Video Sequence, (plays with Alt+A ...good), add the .oog and .wav files to their respective sfx and streaming_cache folders, ... add "Empty" emitter, changed name to "music" ...

OK... time to export ... console complains ... check Alcscript (boy, it's finiky about spaces huh?) .... check, fix, double check... finally, age exports ...YAH!!

Link in to Age (DINK!) ... no sound .... :cry: ... double, triple, quadruple check ...still no music

Here's a screen dump that shows the blender file... you can see the emitter (music) and the alcscript ...


sound.jpg
sound.jpg (231.98 KiB) Viewed 4771 times


any ideas why I don't have sound?
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Brand new age from scratch...problem

Postby Paradox » Sat Jan 26, 2008 11:59 am

Do you have page_num set on all objects? The page_num property must still be added in the logical properties. From my brief testing, it appears that the plugin requires the property to exist.
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Brand new age from scratch...problem

Postby Trylon » Sat Jan 26, 2008 12:03 pm

:? - No pagenum should just default to "page_num" being 0.... unless something went really wrong somwhere....
One day I ran through the cleft for the fiftieth time, and found that uru held no peace for me anymore.
User avatar
Trylon
 
Posts: 1446
Joined: Fri Sep 28, 2007 11:08 pm
Location: Gone from Uru

Re: Brand new age from scratch...problem

Postby boblishman » Sat Jan 26, 2008 12:29 pm

...just had an idea ...

ok....it looks like BackgroundMusic can't be a "3d" file ... I just removed the 3d from the alcscript ...and now I have sound! ... :) (now, can I just get rid of the DINK ? ?)
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Brand new age from scratch...problem

Postby andylegate » Sat Jan 26, 2008 1:10 pm

NOt 100% sure of this, but if you use the 3d flag,

You need to finish the scrip:
Code: Select all
music:
     type: soundemit
     sound:
          flags: loop | start | 3d
          file: song10
          volume: 1
          type: BackgroundMusic
          maxfdist: 150
          minfdist: 10

Those last two thing, maxfdist and minfdist have to be set when using 3d. If not, I think Uru has it set to 0 and 0, and you won't hear anything (like you did).

As far as your "dink" I have no idea there..

OH! BTW......I've learned the hard way it's NEVER a good idea to copy and paste script.....too much can go wrong. Best to bite the bullet and type it all out.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Brand new age from scratch...problem

Postby boblishman » Sat Jan 26, 2008 1:52 pm

OMG ... OMG ... OMG ... a HUGE Thanks ! Andy, ... I have this warm, fuzzy feeling now ... :)
... I have managed to create a background music "area" in 3D ... so when you walk into it ... the music starts, and then as you look around, it moves from the left channel to both channels and then to the right channel ... like it's eminating from a radio ... OMG, I should have downloaded this new plugin when it first appeared ... OK, so my 'previous' Ages are now history (I really can't be bothered to 'upgrade' them when I have this new toy to play with ... Actually, it feels like it did when I first built my very first age... )

THE FUN HAS RETURNED ... :P :P :P

THANKS GUYS

... and, as Andy would say "I'm on a roll!" ...


(oh, it would be nice to get rid of the DINK ... I'm tempted to download the FunctionChk Age and steal that one, but then again, if I keep it, it will remind me to keep bugging for an answer... after all, if it's happened to me, then it may happen to someone else in the future ... so, it really needs checking as to why the script generated init file has caused this error...)
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Brand new age from scratch...problem

Postby boblishman » Sat Jan 26, 2008 2:15 pm

Paradox wrote:Do you have page_num set on all objects? The page_num property must still be added in the logical properties. From my brief testing, it appears that the plugin requires the property to exist.


to be on the safe side, I added the property string: name:page_num: 0 ... but.... DINK! ... so it ain't that ... ? ? ?
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Brand new age from scratch...problem

Postby Kato » Sat Jan 26, 2008 3:04 pm

The dink was total human error on my part, AFAIK. You can find a a new version in the SVN (replace uruprp_addbook.py in your Blender scripts folder), and the following SHOULD be a dink-less FNI.

Code: Select all
#--Fog settings--
#Graphics.Renderer.Setyon float yon
#Visibility distance
Graphics.Renderer.SetYon 100000000000000000000000000000

#Graphics.Renderer.Fog.SetDefLinear float start, float end, float density
#Fog depth
Graphics.Renderer.Fog.SetDefLinear 1 1000 1

#Graphics.Renderer.Fog.SetDefExp2 float end, float density
#Graphics.Renderer.Fog.SetDefExp2 100000 20

#Graphics.Renderer.Fog.SetDefColor float r, float g, float b
Graphics.Renderer.Fog.SetDefColor 0 0 0

#Graphics.Renderer.SetClearColor float r, float g, float b
Graphics.Renderer.SetClearColor 0 0 0

If it's still dinking, please let me know. I actually had the same problem a while ago.

-Kato
Image
(explorer card designed and created by me)
User avatar
Kato
 
Posts: 315
Joined: Fri Sep 28, 2007 8:02 pm
Location: South USA

Next

Return to Building

Who is online

Users browsing this forum: No registered users and 10 guests

cron