Page 1 of 3

Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Mon Nov 06, 2017 11:07 pm
by zaramot
Hi guys! Here's maxscript for Dead Rising 4 (PC 2017) 3ds max 2009-2014. Script is for rigged (skinned) meshes, haven't tried static ones because wasn't interested, but maybe will make/update script for them too. Script is quite slow, because of amount of bones and meshes, LODs. Prepare for some wating xD

Image

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Sat Nov 11, 2017 5:12 pm
by DJLarryt
WOW, I was beginning to think modders had abandoned this game, there's so much room for cool adjustments if somebody could figure out how to apply mods.

Script crashes when trying to extract Frank, it only works on the in-game npc models. Any plans to continue working on this as a model export/import?

---fseek f (bigInfo[(findItem names "SharedZPassSecondCommandBuffer")][3]) #seek_set

"--runtime error: array index must be positive number, got: 0"

This was on 3DSMax 2016. My guess is that Frank has a different skeleton since he's the 1st-person character (was same setup in DR3).

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Sat Nov 11, 2017 5:18 pm
by zaramot
Import yes, export no [roll] What is the name of the file which is crashing? I have an update for this script already. But might check this problematic model with it first, before publishing it

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Sat Nov 11, 2017 5:24 pm
by DJLarryt
I added a few more details above, the file I tried importing was Frank's default head: head_frank_m0.mdl

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Sat Nov 11, 2017 5:26 pm
by zaramot
Strange, I dont' have this file. Could you send it too me? Via PM

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Sat Nov 11, 2017 5:45 pm
by DJLarryt
Check pm. I've never been able to figure out DR3 or DR4 based on their principle of model rendering, but I pwned DR2:OTR inside and out and CC uses many of the same techniques in it, with some adjustments. Would be great to be able to mod DR4 as it was a total half-assed rushed product and there's lots of room for 'fixes'.

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Sat Nov 11, 2017 5:56 pm
by zaramot
Thank you for the files, my updated script thankfully work with those files.

Image

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Sat Nov 11, 2017 6:04 pm
by DJLarryt
Great! let me know when you release the new script.

If I can help figure something out in any way just drop me a line. As I said, ultimate goal would be to re-inject models back into this game and I know it's possible based on how the previous games worked (and RE6 uses the same engine and it had already been modded). The only hurdles would be encryption and bucket variables.

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Sat Nov 11, 2017 6:28 pm
by zaramot
Of course export thing is possible, not sure who's gonna take this task. But definately it should be a DR fan of some sort :)

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Sat Nov 11, 2017 9:33 pm
by DJLarryt
Great- can you post your new script?

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Sun Nov 12, 2017 1:34 pm
by zaramot
Sure, here's the script.

EDIT: Try this one. Should be stable with your max

EDIT: Update

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Mon Nov 13, 2017 5:50 am
by DJLarryt
Thanks zaramot!

Hmm, I'm still getting errors when importing. I'm using 3dsMax 2016 and trying to open head_frank_m0.mdl.

The error is --Unknown property: "count" in undefined

If I try to run the script again I see this error:

-- Unable to convert: [0.843196,-0.0152287,0] to type: String

Essentially it locks Max up and I re-open it. But anything else I try importing gives me the "count" undefined error again.

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Tue Nov 14, 2017 5:05 pm
by Crazy31139
Script work perfect
Phanx
How convert .Tex to any format

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Wed Nov 15, 2017 11:23 am
by zaramot
Yeah, here's tool for textures

Re: Dead Rising 4 model import maxscript (.mdl .tex)

Posted: Wed Nov 15, 2017 4:02 pm
by Crazy31139
Zaramot phanx
your script .tex work perfect

Dead_Rising 4 UPD sometimes when importing produces an error then you choose Scripting-Run Script
i choose Scripting-Open Script in window script choose Tools-Evaulate All
head_frank_m0.mdl imported without problems

Sorry for bad English i am Russian use Google Translate

Zaramot thanks again.