Important information: this site is currently scheduled to go offline indefinitely by end of the year.

PC BlackGold Online maxscript

Post questions about game models here, or help out others!
User avatar
Pesmontis
beginner
Posts: 33
Joined: Sun Jun 20, 2010 5:10 pm
Location: The Netherlands
Been thanked: 9 times
Contact:

Re: PC BlackGold Online maxscript

Post 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..
You do not have the required permissions to view the files attached to this post.
User avatar
zaramot
double-veteran
double-veteran
Posts: 783
Joined: Wed Jan 05, 2011 12:41 pm
Has thanked: 39 times
Been thanked: 855 times

Re: PC BlackGold Online maxscript

Post 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 :)
Making model-import scripts, PM
User avatar
lumekano
advanced
Posts: 59
Joined: Sat Feb 25, 2012 2:20 pm
Has thanked: 40 times
Been thanked: 11 times

Re: PC BlackGold Online maxscript

Post 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.
UnKnown
Post Reply