A new and interesting error

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!

Postby J'anim Paedet » Sat Apr 22, 2006 2:00 pm

Just today as I was exporting my Age, Blender threw out the following error:
Using Python version 2.4
Exporting C:\Documents and Settings\Nathaniel\Desktop\Modeling\Uru AgeBuilders\0
5\Release\ter_District_BuiltIn.prp ...
Args are e_prp
['e', 'prp']
Exporting age ter
/\ Loading page Textures -1
* Reading ter_District_Textures 00008120 0008  Version 63,12
# Reading 00008120,0008,0004,catwalk.jpg
# Reading 00008120,0008,0004,cave.jpg
# Reading 00008120,0008,0004,bedcloth.jpg
# Reading 00008120,0008,0004,bedwood.jpg
# Reading 00008120,0008,0004,bigStretchMet.jpg
# Reading 00008120,0008,0004,hosConsol.jpg
# Reading 00008120,0008,0004,bigStretchFab.jpg
# Reading 00008120,0008,0004,tablewood.jpg
<- Exporting page Textures -1
Traceback (most recent call last):
  File "", line 185, in open_file
  File "", line 81, in export_age
  File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcresmanag
er.py", line 413, in export_all
    if int(p.getData())!=int(self.num):
ValueError: invalid literal for int():

I'm not sure why, but I think it may have something to do with deleting my extra scenes from previous .blend imports. I still have the objects from these imports, but I got rid of the scenes, assuming they only would get in the way in the long run.

So, my question to the programming community is:
a) Am I right in thinking this is a result of deleted scenes, and
b) is there anything I can do to fix it?
User avatar
J'anim Paedet
 
Posts: 145
Joined: Fri Nov 16, 2007 9:45 pm

Postby Tsar Hoikas » Sat Apr 22, 2006 2:47 pm

Is this the latest snapshot that includes lighting support?

EDIT:

Please wait while I write a new response.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Postby Tsar Hoikas » Sat Apr 22, 2006 2:52 pm

This is where the code is failing:

pyprp-src wrote:                try:
                    p=obj.getProperty("page_num")
                    if int(p.getData())!=int(self.num):
                        continue
                except AttributeError:
                    if self.num!=0:
                        continue


Bascially, what I think is wrong is that you have a non integar value for one of your page_num feilds. Go back and check them (all) for errors and try again.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Postby J'anim Paedet » Sat Apr 22, 2006 4:16 pm

Oh! Now you mention it, I think you may be right -- I did just add a new page, in order to battle the dread memory error.
That's good news, if it is indeed the problem. I was thinking I'd need to re-import the entire Age!
I'll have a look, and let you know...

Edit: this is going to take a while... I have four pages worth of objects to look through!
User avatar
J'anim Paedet
 
Posts: 145
Joined: Fri Nov 16, 2007 9:45 pm

Postby J'anim Paedet » Sat Apr 22, 2006 6:19 pm

It worked! It turns out one of the prongs on a light fixture had a page_num of >blank<, so it refused to export.

Thanks, Adam! It had me worried for a while, there! :D
User avatar
J'anim Paedet
 
Posts: 145
Joined: Fri Nov 16, 2007 9:45 pm

Postby Tsar Hoikas » Sun Apr 23, 2006 5:30 am

Heheheee. You had me worried too; I'm trying to put off rewriting the Resource Manager (needs to be done soon anyway) and here you are posting an error coming from the res manager ;). Anyway, great that your age exported!
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia


Return to Building

Who is online

Users browsing this forum: No registered users and 14 guests