Some Waveset Observations....

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!

Re: Some Waveset Observations....

Postby andylegate » Sat May 24, 2008 1:36 pm

Okay, changing the bounds still didn't do it. I'm fixing to remove the ! and see what happens.
"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: Some Waveset Observations....

Postby andylegate » Sat May 24, 2008 1:59 pm

Nope. Sorry, it's just not working. I mean I can get it to disappear, but I can't get it to trigger back on. :shrugging:

For now, I'm just going to remove those wavesets on the canal and go with textured water for now.
"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: Some Waveset Observations....

Postby Chacal » Mon May 26, 2008 3:55 pm

andylegate wrote:Paradox said that the Dev Team will not be supporting Importing anymore, but concentrating on features and exporting.


:( I hope at some time this can be revisited. But I understand it is not a priority right now.
I can import most Cyan Ages with v.0.5, but not the converted MOUL Ages. I'll try to find what the problem is.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: Some Waveset Observations....

Postby Tsar Hoikas » Mon May 26, 2008 4:11 pm

The plDrawableSpans might be generated incorrectly by drizzle. I seem to remember that code looked suspiciously similar to the information on the COBBS wiki about DSpans, which was woefully lacking, but good enough for PRP Explorer to use to render Cyan ages...

PyPRP 0.5 uses an older, mangled version of the Drawable Spans docs (but later than PRPEx's)... I doubt it would import an equally mangled DSpans object correctly.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: Some Waveset Observations....

Postby Chacal » Mon May 26, 2008 6:49 pm

The problem I'm getting (there may be others but the import stops there) is that import_all in alcresmanager.py doesn't get the SceneNode object.
This error gets triggered:
Code: Select all
        if self.type in (0x04,0x00):
            #find sceneNode and import all sceneobjects linked to it
            scn = self.prp.getSceneNode()
            if scn==None:
                raise RuntimeError, "This age does not have a Scene Node?"


even thought there is a SceneNode object (it shows up in PrpExplorer).
I guess there's a problem in getSceneNode(), I'll try to find that and have it print some trace info.
Debugging is fun, I just don't have the time! :cry:

EDIT: I can spend 5 minutes on it, and screw that bid I'm supposed to be writing.

I found the problem. It's because of naming differences between Plasma versions.
In POTS, all scene nodes have this naming convention: AgeName_District_PrpName
In MOUL this is different. The scene node for Eder Tsogal is: AgeName_PrpName
The reason getSceneNode() returns empty is because it uses getName():
Code: Select all
    def getSceneNode(self):
        return(self.find(0x00,self.getName()))


And getName does this:
Code: Select all
    def getName(self):
        return str(self.name) + "_District_" + str(self.page)
     
    def getName(self):
        if self.version==6:
            return str(self.name) + "_" + str(self.page)
        else:
            return str(self.name) + "_District_" + str(self.page)


I don't know much about Python, but I see there are two definitions for the same getName() method.
Either the 2nd one is never executed, or self.version is not 6 for MOUL Ages.
Actually, of course it is not 6! It is 5 because it was imported in Uru.
So we have a version 5 prp with a version 6 naming convention.
I'll try asking Dustin for a rename, or I'll suggest it on the Drizzle project site.

I'll continue digging another time, it's a 1.7 M$ bid after all.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: Some Waveset Observations....

Postby Tsar Hoikas » Mon May 26, 2008 8:35 pm

Did you know that Cyan changed the MOUL version to 6 in the Live 5? Oh yeah, Myst 5 calls itself 6 too... :P
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: Some Waveset Observations....

Postby GPNMilano » Tue May 27, 2008 12:19 pm

Chacal,

I'm doing the same thing you are. At the moment I've gotten it to be able to import. It gets stuck of course on the ladder regions, as Drizzle did not properly convert them. For instance when I try to import Dereno, it imports the mesh and textures of the pod and the lower decal, and then stops because it can't import the ladder camera regions.

EDIT:

Odd, I've been trying the import with single PRPs, I was using the Dereno Pod PRP as a starting point. Now, when I import it I get as far as this error.

Code: Select all
[Phyical Object LowerTriggerBox02]
 [Coordinate Interface LowerTriggerBox02]
 [SimulationInterface LowerTriggerBox02]
Traceback (most recent call last):
  File "<string>", line 150, in open_file
  File "<string>", line 111, in import_prp
  File "<string>", line 93, in import_age
  File "C:\Program Files\Blender\blender-2.45-windows\.blender\scripts\alcresman
ager.py", line 972, in import_page
    page.import_all()
  File "C:\Program Files\Blender\blender-2.45-windows\.blender\scripts\alcresman
ager.py", line 210, in import_all
    scn.data.import_all(scene)
  File "C:\Program Files\Blender\blender-2.45-windows\.blender\scripts\alc_ObjCl
asses.py", line 149, in import_all
    o.data.import_all(scene)
  File "C:\Program Files\Blender\blender-2.45-windows\.blender\scripts\alc_ObjCl
asses.py", line 292, in import_all
    plSimulationInterface.Import(self,root,obj)
  File "C:\Program Files\Blender\blender-2.45-windows\.blender\scripts\alc_ObjCl
asses.py", line 561, in _Import
    simi.data.import_obj(obj,scnobj)
  File "C:\Program Files\Blender\blender-2.45-windows\.blender\scripts\alc_ObjCl
asses.py", line 552, in import_obj
    phys.data.import_obj(obj,scnobj)
AttributeError: 'NoneType' object has no attribute 'data'


So I switched prp files and tried to import the exterior of the pod. and I got the scene node reference again. Same thing if I import the full age. For some reason it will ignore the scene node with my edits on some prps, but not the rest, and even then I get new errors such as the one above.

EDIT:
Update: Okay I'm an idiot.

History lesson:
A couple of weeks ago I tried fixing the scene node problem, in an attempt to update PyPrP so it would import MOUL ages correctly. I discovered the scene node reference problem that Chacal was having. So, I renamed the scenenode for the Dereno pod so it would read Dereno_District_DrnoPod. The importer still wouldn't import right, it through up a problem with the page name. So, frustrated, I went back to age creation to aide the stress of constantly getting errors with imports. Today, when I read Chacal's problem I tried tackling the problem in the script files. changed things around, and viola, it worked on the dereno pod. But gave a new error listed above. And of course still the others wouldn't import and through up a scene node reference problem. Then I realized why. I never changed the name of the scenenode back. So I changed the exterior scene node name to Dereno_District_DrnoExterior. and it passed the scene node reference, but gave a memory reference instead.

So, testing, I changed Negilahn's scenenode to Negilahn_District_MuseumPod, and it passed the scenenode problem but came up with the same one as Dereno. Cause the ladder stuff is still borked.

So, to sum up, I'm an idiot. But at least I know I'm one. And I've made some progress. And maybe this part of the thread should be moved to a new one lol
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am

Re: Some Waveset Observations....

Postby Chacal » Tue May 27, 2008 2:15 pm

I'll reply in your other thread so we can stop hijacking this one.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Previous

Return to Building

Who is online

Users browsing this forum: No registered users and 2 guests