Page 2 of 2

Re: PC BlackGold Online maxscript

Posted: Sat Nov 22, 2014 5:42 pm
by Pesmontis
I'm happy to find that this script also works with 3DSmax7 and 3DSmax 2008.
Importing doesn't show any memory error, except when then script enters an infinite loop (occurred once in ~20 tests).
More than half of the tested models imported flawless (eg. 'qh_con_mount_0001', 'boss_0121', 'bg_bear').

Other model imports typically fail on these lines in the script:

Code: Select all

str += bit.intAsChar (ReadByte bstream #unsigned))
and:

Code: Select all

.. = (Readshort f #unsigned + 1)
Then there are also cases where the script reads a file beyond EOF.
I'm not sure which file (xskt / xmod / mtl).

I have a few questions as well:
- Why read the .mtl file when the imported model doesn't have (a) material(s) assigned?
- Would it be possible to make the script more flexible? (eg. "Import skeleton Yes/No")

I also tried to import all separate parts of a playable character.
Parts already loaded got distorted, especially when importing boots, although the same xskt file is used per import.
I guess it would be nice if the script could recognize that the skeleton is already loaded..

Re: PC BlackGold Online maxscript

Posted: Sun Nov 23, 2014 12:26 pm
by zaramot
Yeah, it's possible. But I'm working on other games now, I lost interest in Black Gold, so if someone would like to finish it - please, be my guest. Otherwise you should wait some time, for me to return to this format research. About materials, yes it's very important to read them - since they pointing how much textures model using, without this info model import will crash! Honestly, all errors you're getting, because there's much types of materials, and I can't cover them all for now :( That's the reason some models would crash, especially from newer version of the game/patch/update. It's very weird format as for me, especially animation :)

Re: PC BlackGold Online maxscript

Posted: Fri Jan 23, 2015 1:56 pm
by lumekano
srry About Bump...

I Just Wanna leave Crashed files Here, if someone can fixed this Later.

Here:

http://www.mediafire.com/download/ad4mg ... Broken.rar

This To Bad So Many Files Can't Import Model.