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

(Xbox 360) Dance Masters

Post questions about game models here, or help out others!
Post Reply
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

(Xbox 360) Dance Masters

Post by chrrox »

Here is a quickbms script to extract the arc files i am working on a max script for the models now.

Code: Select all

endian big
get magic long
get version long
get files long
get null long
savepos tablestart
for i = 0 < files
goto tablestart
get nameoff long
get offset long
get size long
get zsize long
savepos tablestart
goto nameoff
get name string
if zsize == size
log name offset size
else
clog name offset zsize size
endif
next i
Image
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: (Xbox 360) Dance Masters

Post by chrrox »

almost done just need to finish weights then i am all set and ill post the script.
Image
valvoga
advanced
Posts: 67
Joined: Sat May 01, 2010 3:03 am
Has thanked: 9 times

Re: (Xbox 360) Dance Masters

Post by valvoga »

Wow another Magnificent work from chrrox
Oh yeah chrrox if you have time can you make a script for star ocean 4 too
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: (Xbox 360) Dance Masters

Post by chrrox »

The contents of this post was deleted because of possible forum rules violation.
You do not have the required permissions to view the files attached to this post.
dongliang28
ultra-n00b
Posts: 1
Joined: Wed Nov 17, 2010 1:11 pm

Re: (Xbox 360) Dance Masters

Post by dongliang28 »

i am new here.
thanks for your shareing.
what software i could use to open your ".model" file?
jooped
n00b
Posts: 10
Joined: Thu Jun 24, 2010 8:30 pm
Has thanked: 8 times
Been thanked: 1 time

Re: (Xbox 360) Dance Masters

Post by jooped »

dongliang28 wrote:i am new here.
thanks for your shareing.
what software i could use to open your ".model" file?
3ds max
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: (Xbox 360) Dance Masters

Post by chrrox »

Here is an updated script it shows how the bone id's are called in the files but i am not sure how the weighting is stored in the vertex section so any help would be great.
You do not have the required permissions to view the files attached to this post.
invisghost
advanced
Posts: 55
Joined: Tue Jul 13, 2010 7:16 pm
Has thanked: 1 time
Been thanked: 11 times

Re: (Xbox 360) Dance Masters

Post by invisghost »

Just taking a quick peek, found out the meaning of a few things.

unk35 = FileSize lol not that useful but its something for now

I'm not used to converting maxscript into C++ (for 010 Editor templates)

Anyways here's my current progress on converting it to C++. I'll work on it more tomorrow.

Code: Select all

//--------------------------------------
//--- 010 Editor v3.1 Binary Template
//
// File: MODELTemplate.bt
// Author:
// Revision:
// Purpose: 
//--------------------------------------

struct Matrix3
{
    float m11, m12, m13, m14; // Row 1
    float m21, m22, m23, m24; // Row 2
    float m31, m32, m33, m34; // Row 3
    float m41, m42, m43, m44; // Row 4
};

struct Bone_t
{
    float A[2];
    int B[2];

	Matrix3 tfm;
	Matrix3 tfm2;

    float C[3];
    int D;
    float E[3];

	int BoneParentID;
};

struct MeshInfo_t
{
    int A[6];
    int NumBoneIds;
    int B[14];
    float C[3];
};

BigEndian(); // Say the file is in big-endian format
char FileIdent[8]; // File Identifier
int unk01; // Probably Version Major?
int unk02; // Probably Version Minor?
int unk03;
int unk04;
int BoneCount;
int BoneOff;
int BoneIDTableCount;
int BoneIDTableOffset;
int MeshInfoCount;
int MeshInfoOffset;
int T20SectCount;
int T20SectOffset;
int TNullSectCount;
int TNullSectOffset;
int T60SectCount;
int T60SectOffset;
int TA0SectCount;
int TA0SectOffset;
int T50SectCount;
int T50SectOffset;
int unk21;
int unk22; // Is a offset
int unk23; // Is a offset
int unk24;
int unk25;
int unk26; // Is a offset
int unk27; // Is a offset
int unk28;
int TMeshSectOffset;
int TMeshSectCount;
int unk31; // Is a offset
int unk32;
int unk33;
int unk34; // Is a offset
int FileSize;
int unk36;


FSeek(BoneOff);
Bone_t BNArr[BoneCount];

FSeek(MeshInfoOffset);
MeshInfo_t NumBoneIds_array[MeshInfoCount];

FSeek(BoneIDTableOffset);
local int test<hidden=true> = 0, test2<hidden=true> = 0, a<hidden=true>;
local int Boneid2_array[MeshInfoCount];
for (a = 0; a < MeshInfoCount; a++)
{
    if (NumBoneIds_array[a].NumBoneIds != test) {
        test2 = FTell();
        FSeek(FTell() + (NumBoneIds_array[a].NumBoneIds * 2));
    }
    if (NumBoneIds_array[a].NumBoneIds == test)
        test2 = FTell() - (NumBoneIds_array[a].NumBoneIds * 2);
    Boneid2_array[a] = test2;
    test = NumBoneIds_array[a].NumBoneIds;
}
chrrox
Moderator
Posts: 2602
Joined: Sun May 18, 2008 3:01 pm
Has thanked: 57 times
Been thanked: 1422 times

Re: (Xbox 360) Dance Masters

Post by chrrox »

Here is the new max script with weights :)
Thanks to fatduck for helping figure it out.
You do not have the required permissions to view the files attached to this post.
jaden
mega-veteran
mega-veteran
Posts: 209
Joined: Sat Feb 05, 2011 1:41 am
Been thanked: 1 time

Re: (Xbox 360) Dance Masters

Post by jaden »

wow fantastic chrrox
How's the MGS 4 going ??
User avatar
nightsqual05
ultra-n00b
Posts: 7
Joined: Mon Jul 26, 2010 4:38 am

Re: (Xbox 360) Dance Masters

Post by nightsqual05 »

can u extract dance central 3d models too?
Post Reply