Page 1 of 1

Drawable won't export (unknown error code)

PostPosted: Sat May 10, 2008 8:16 am
by Aloys
I'm trying to export a shell for Ahra Pahts (which I haven't done in a while) and I get this unknown error message on the very first drawable:
Code: Select all
Traceback (most recent call last):
  File "<string>", line 173, in open_file
  File "<string>", line 88, in export_age
  File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcresmanager.py", line 666, in export_all
    plDrawInterface.Export(self,obj,scnobj,name,SceneNodeRef,isdynamic,softVolumeParser)
  File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_DrawClasses.py", line 1549, in _Export
    drawi=self.prp.findref(drawiref)
NameError: global name 'self' is not defined

I've eliminated the usual suspects and I can't find what's wrong.. This is a very basic drawable, I've checked the material, the various properties, the alcscript, everything I could think of, I've been at it for two days and I just can't find what wrong..
I'm worried because this is part of the Ahra shells, and I've handed out quite a couple of them and they used to export fine.. :? I haven't exported one myself in a while so I don't know if this is a recent problem or not..
Any help would be welcome. :(

Re: Drawable won't export (unknown error code)

PostPosted: Sat May 10, 2008 11:25 am
by teedyo
Perhaps that should be "self.obj" instead of "self,obj" ??? Just guessing.

Re: Drawable won't export (unknown error code)

PostPosted: Sat May 10, 2008 11:46 am
by Paradox
This is now fixed in the trunk. You can grab the file from the SVN yourself, or wait until tomorrow when the snapshot is generated.

Re: Drawable won't export (unknown error code)

PostPosted: Mon May 12, 2008 3:02 pm
by D'Lanor
And now it has been unfixed in the trunk again! :o

Re: Drawable won't export (unknown error code)

PostPosted: Mon May 12, 2008 3:04 pm
by Nadnerb
Uhm, are you looking at the actual trunk? it looks fine from here..
Code: Select all
drawi=page.prp.find(0x16,name,1)

Re: Drawable won't export (unknown error code)

PostPosted: Mon May 12, 2008 3:08 pm
by D'Lanor
Yes, I am. Or at least Tortoise is... :?

line 1553

Code: Select all
drawi=self.prp.findref(drawiref)

Re: Drawable won't export (unknown error code)

PostPosted: Mon May 12, 2008 3:11 pm
by Nadnerb
oh.. two lines after. Let's have a little look at this log..

Edit: rats.. ok, my last commit unfixed it. ... fixing again.