PyPRP exporting invalid plRandomSoundMod?

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!

PyPRP exporting invalid plRandomSoundMod?

Postby diafero » Thu Mar 25, 2010 1:04 pm

While validating all the fan ages available via UAM with libHSPLasma ("validating" as in "read & parse and look for errors or warning"s), I stumbled upon the same message in various ages (for example Camp Bravo and Prad):
[0079:<name>] Size-Read difference: 2 bytes
0079 is the type ID of plRandomSoundMod

Looking at the source code of PyPRP, libHSPlasma and Drizzle, the latter two expect the size of the array in that class to be a 2-byte value, while PyPRP uses the hsTArray.write function, which results in a 4-byte length value. I can't tell which one is correct, but since libHSPlasma reads all POTS ages without warning, this looks like a bug in PyPRP for me.
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: PyPRP exporting invalid plRandomSoundMod?

Postby diafero » Wed Apr 28, 2010 12:30 pm

Could maybe someone who knows Cyan's actual implementation check whether PyPRP or libHSPlasma are at fault?
I prefer e-mails to "diafero arcor de" (after adding the at and the dot) over PMs.

"Many people's horizon is a circle with a radius of zero. They call it their point of view."

Deep Island Shard | Offline KI
diafero
Deep Island Admin
 
Posts: 2972
Joined: Mon May 05, 2008 5:50 am
Location: Germany

Re: PyPRP exporting invalid plRandomSoundMod?

Postby Branan » Wed Apr 28, 2010 12:44 pm

It's a short, if I'm looking at this correctly.
Image
Your friendly neighborhood shard admin
User avatar
Branan
Gehn Shard Admin
 
Posts: 694
Joined: Fri Nov 16, 2007 9:45 pm
Location: Portland, OR


Return to Building

Who is online

Users browsing this forum: No registered users and 5 guests

cron