Import errors
-
- Posts: 1057
- Joined: Fri Sep 28, 2007 8:01 pm
- MOULa KI#: 23247
- Location: US (Eastern Time)
- Contact:
Re: Import errors
Your import tweaks have been reviewed and merged.
- Robert The Rebuilder
- Posts: 1383
- Joined: Sat Sep 29, 2007 7:24 am
- MOULa KI#: 1299
- Location: Virginia, US
Re: Import errors
Thanks, Nadnerb!
Can we rebuild it? Yes, we can - here's how.
MOULagain KI# 1299
Myst Movie coming soon - spread the word!
MOULagain KI# 1299
Myst Movie coming soon - spread the word!
- andylegate
- Posts: 2348
- Joined: Mon Oct 01, 2007 7:47 am
- MOULa KI#: 0
Re: Import errors
Just tried to import with the cutting edge plugin, and with Cyan Ages I'm still getting errors. Here is the most common one:
Code: Select all
Traceback (most recent call last):
File "<string>", line 145, in open_file
File "<string>", line 90, in import_age
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcresmanag
er.py", line 195, in import_all
self.load()
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcresmanag
er.py", line 126, in load
self.prp.read(f)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcprpfile.
py", line 583, in read
obj.read(buf)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcprpfile.
py", line 381, in read
o.read(buf,offset,size)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alcprpfile.
py", line 290, in read
self.data.read(buf)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_MatClas
ses.py", line 2497, in read
plLayerAnimationBase.read(self, stream)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_MatClas
ses.py", line 2470, in read
self.fOpacityCtl.read(stream)
File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_AnimCla
sses.py", line 531, in read
self.data.read(buf)
AttributeError: plPosController instance has no attribute 'read'
"I'm still trying to find the plKey for Crud!"

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
- Robert The Rebuilder
- Posts: 1383
- Joined: Sat Sep 29, 2007 7:24 am
- MOULa KI#: 1299
- Location: Virginia, US
Re: Import errors
Which age was it, Andy?
Can we rebuild it? Yes, we can - here's how.
MOULagain KI# 1299
Myst Movie coming soon - spread the word!
MOULagain KI# 1299
Myst Movie coming soon - spread the word!
- andylegate
- Posts: 2348
- Joined: Mon Oct 01, 2007 7:47 am
- MOULa KI#: 0
Re: Import errors
Ahnonay Sphere 1, and Relto. Either one. I've imported Relto before, back with the 0.5 plugin version.
But just about any Age now.
But just about any Age now.
"I'm still trying to find the plKey for Crud!"

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
- Robert The Rebuilder
- Posts: 1383
- Joined: Sat Sep 29, 2007 7:24 am
- MOULa KI#: 1299
- Location: Virginia, US
Re: Import errors
I found the problem. The various plController classes have not all been implemented yet, which is related to the recent addition of the plLayerAnimation class. So, until this is finished, I put in a try-except block in plLayerAnimation.read() similar to plResponderModifier.read() - if an error occurs, it skips reading in the rest of plLayerAnimation and goes on to the next class.
This, of course, revealed another problem. hsGMaterial.ToBlenderMat() expects the layer to have fPreshadeColor and the other plLayerInterface attributes. However, it encounters a plLayerSDLAnimation (which is not implemented yet) and it throws an exception because the data element is actually a pRaw, which does not have these attributes. To fix that, I added a check in ToBlenderMat() to see if the data's object type is not a plLayerSDLAnimation before proceeding. This required pRaw to have its object type set upon creation, so I pass that in to pRaw's constructor in PrpObject.__init__().
Forgive the in-depth explanation; this is really for the benefit of the PyPRP developers so they understand what my fixes entailed.
I checked in the fixes to the contrib folder; you can get them here:
Would someone please check these into trunk for me? Once these are in, you can import Ahnonay Sphere 1 and Relto.
This, of course, revealed another problem. hsGMaterial.ToBlenderMat() expects the layer to have fPreshadeColor and the other plLayerInterface attributes. However, it encounters a plLayerSDLAnimation (which is not implemented yet) and it throws an exception because the data element is actually a pRaw, which does not have these attributes. To fix that, I added a check in ToBlenderMat() to see if the data's object type is not a plLayerSDLAnimation before proceeding. This required pRaw to have its object type set upon creation, so I pass that in to pRaw's constructor in PrpObject.__init__().
Forgive the in-depth explanation; this is really for the benefit of the PyPRP developers so they understand what my fixes entailed.
I checked in the fixes to the contrib folder; you can get them here:
Would someone please check these into trunk for me? Once these are in, you can import Ahnonay Sphere 1 and Relto.
Can we rebuild it? Yes, we can - here's how.
MOULagain KI# 1299
Myst Movie coming soon - spread the word!
MOULagain KI# 1299
Myst Movie coming soon - spread the word!
- andylegate
- Posts: 2348
- Joined: Mon Oct 01, 2007 7:47 am
- MOULa KI#: 0
Re: Import errors
Actually, I sort of understand what you're talking about. It's impossible for me to use something and not start understanding what is going on behind the scenes. That's the engineer in me I'm afraid.
"I'm still trying to find the plKey for Crud!"

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
- andylegate
- Posts: 2348
- Joined: Mon Oct 01, 2007 7:47 am
- MOULa KI#: 0
Re: Import errors
Oh yah, PS.....It works great now! It even shows the multiple layers of texture, UV Mapping and Vertex Coloring on each mesh now. Great job! 

"I'm still trying to find the plKey for Crud!"

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials

Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
- Robert The Rebuilder
- Posts: 1383
- Joined: Sat Sep 29, 2007 7:24 am
- MOULa KI#: 1299
- Location: Virginia, US
Re: Import errors
That's great news, Andy!
Again: could someone please review these and check them into trunk?
[EDIT: Thanks for checking in the fixes, Paradox!]
Again: could someone please review these and check them into trunk?
Robert The Rebuilder wrote:I checked in the fixes to the contrib folder; you can get them here:
[EDIT: Thanks for checking in the fixes, Paradox!]
Last edited by Robert The Rebuilder on Wed Mar 26, 2008 7:30 am, edited 1 time in total.
Can we rebuild it? Yes, we can - here's how.
MOULagain KI# 1299
Myst Movie coming soon - spread the word!
MOULagain KI# 1299
Myst Movie coming soon - spread the word!
Re: Import errors
When I try to import the Spyroom.age I get an error and importing stops.
The last line in the console;
ValueError: list must have from 1 up tp 16 materials.
Regards,
Frits
The last line in the console;
ValueError: list must have from 1 up tp 16 materials.
Regards,
Frits