Page 1 of 2

PyPRP Conversion Wizards

PostPosted: Fri Jan 18, 2008 9:47 pm
by Robert The Rebuilder
For those of you who have an existing age in Blender that needs to be converted to work with the latest plugin, I've just finished writing some conversion wizards.

[EDIT 1/29/08] I transferred the instructions to the Wiki here, under the subheading "Conversion Wizards".

Re: PyPRP Conversion Wizards

PostPosted: Sat Jan 19, 2008 6:35 am
by andylegate
Bravo! :much clapping:

Can't wait to try it out! Thanks Robert for your hard work!!

EDIT: so far the only problems I've had is what we mentioned in our emails (stuff I had mistakenly done while building the Age). So far so good!

Re: PyPRP Conversion Wizards

PostPosted: Sat Jan 19, 2008 10:08 am
by mar
I have tried to convert my Ahra Pathfile for fun and everthing is going good at one point. :)

Maybe a have something doing wrong in the old file.

Loading the wizard files :arrow: good
Backup file :arrow: good
Upgrade book :arrow: good
Upgrade properties :arrow: good
Adding missing Blender materials and textures I get the following error:

Traceback (most recent call last):
File "<string>", line 97, in <module>
File "<string>", line 91, in do_main
File "D:\program files\Blender\.blender\scripts\alc_Wizards.py", line 987, in
Wizard_mattex_create
if image != None:
UnboundLocalError: local variable 'image' referenced before assignment

What is here happening :?: :?:

Re: PyPRP Conversion Wizards

PostPosted: Sat Jan 19, 2008 10:46 am
by andylegate
looks like you're missing a image file that you used for UV mapping.

Re: PyPRP Conversion Wizards

PostPosted: Sat Jan 19, 2008 11:02 am
by Trylon
No, it looks like Robert made an error in the coding for the wizard

EDIT:
Took a better look at the code - the problem is that in this specific case there were no uv images set ....

Re: PyPRP Conversion Wizards

PostPosted: Sat Jan 19, 2008 4:02 pm
by Aloys
Great job Robert!
I can't wait to try it on Ahra Pahts. (and see my computer choke and die. :? )

[Edit] Ha!

Show Spoiler

Re: PyPRP Conversion Wizards

PostPosted: Sat Jan 19, 2008 6:12 pm
by Robert The Rebuilder
mar and Aloys:

I added a line to alc_Wizards.py to initialize the image variable to None. That will hopefully solve both of your problems. Get the new version here:

alc_Wizards.py

Re: PyPRP Conversion Wizards

PostPosted: Sat Jan 19, 2008 6:16 pm
by andylegate
Robert,

I converted my Age just fine, but......

the footsteps didn't work. Didn't hear them anyway.

I could swim just fine! But no swim sounds.....

Then I became stuck in the pool and for some reason it panic linked me out. Once in Relto, my avie had turned to stone!
Not sure about that.

I was going to mention it earlier, but I jumped back on my Night Time version that I'm working on.

It could just be my Age, not your wizard at all. It seemed to me like your Wizard was working just fine.

Re: PyPRP Conversion Wizards

PostPosted: Sun Jan 20, 2008 10:25 pm
by Robert The Rebuilder
UPDATE:

I made fixes to the alc_Wizards.py file:
- The material wizard now flags a texture for no compression if the texture begins with "noCompress"
- The material wizard checks if the texture has any alpha values < 1 and sets "USEALPHA"
- The properties wizard no longer chooses the first click region for the clickable; instead, it properly selects the region surrounding the clickable

Andy: when using the stable v0.5 plugin, did your footstep regions work correctly?

Re: PyPRP Conversion Wizards

PostPosted: Mon Jan 21, 2008 6:59 am
by andylegate
Yep, they sure did.