Page 9 of 10

Re: Universal Century Gundam Online .DET

Posted: Sat Apr 07, 2012 6:21 am
by leyme
If someone has already been used, that it is a soluble problem.

Re: Universal Century Gundam Online .DET

Posted: Sat Apr 07, 2012 6:45 pm
by leyme
I settled the problems.
The answer was staring us in the face.
Image
viewtopic.php?p=29676#p29676
Rheini wrote:Well all indications point to zlib, don't they?
Though that 78 5E is quite uncommon.

78 01 - No Compression/low
78 9C - Default Compression
78 DA - Best Compression
viewtopic.php?p=29708#p29708
fatduck wrote:They are zlib compression! I can uncompress them manually!
Try offzip should work!

Code: Select all

C:\offzip.exe -a C:\name.det C:\unpack 0x0

Re: Universal Century Gundam Online .DET

Posted: Sun Apr 08, 2012 9:57 am
by Troopermanaic
Holey cow this thread was revived, ill be watching.. Hoping... waiting =]

Re: Universal Century Gundam Online .DET

Posted: Sun Apr 08, 2012 4:27 pm
by finale00
I would've thought your admin would have provided at least some information by now.
leyme wrote:I settled the problems.
The answer was staring us in the face.
Nice, there were go lol
There are 8 integers at the end of the file, where the 3rd is the compressed size and the 4th is the uncompressed size.

Code: Select all


#UC Gundam Online .DET decompress

get FLAG short
get NAME FILENAME
if FLAG = 0xDA78
	goto -32
	get unk long
	get unk long
	get ZSIZE long
	get SIZE long
	clog NAME 0 ZSIZE SIZE
else
	print "Not compressed"
	cleanexit
endif
Too bad I can't load them cause I'm not getting the format right.

Re: Universal Century Gundam Online .DET

Posted: Sun Apr 08, 2012 11:36 pm
by Troopermanaic
I had just noticed that you are trying to get to the map files, they are compressed because they are easy to get to but I have a hunch because of that they might not be encrypted like the ones in the .RFI and .RFP files.

Re: Universal Century Gundam Online .DET

Posted: Sun Apr 08, 2012 11:59 pm
by finale00
leyme figured out the compression and the script I threw together decompresses them with the name retained (well, just output with a specified name lol).
It is the same format as the other det files; I just don't know how to parse each chunk properly.

Re: Universal Century Gundam Online .DET

Posted: Mon Apr 09, 2012 4:00 pm
by leyme
Help me~
UCGundamnOnline_det.py
Is it just me, after exporting model as mqo, the UVs are lost.
And, i checked fmt_UCGundamOnline_det.py. Everything's O.K.

Re: Universal Century Gundam Online .DET

Posted: Tue Apr 10, 2012 6:19 am
by youngmark
Image
Thanks all.
I think I'm finally succeeding in converting det to mqo.
But there definitely is missing UV data, too.
I used this script.
Please fix the problem of missing UV.

Re: Universal Century Gundam Online .DET

Posted: Tue Apr 10, 2012 7:14 am
by finale00
Not sure how you figure the UV is missing. I don't even assign materials.

Re: Universal Century Gundam Online .DET

Posted: Tue Apr 10, 2012 8:11 am
by youngmark
Oh, i have completely mistaken about this.

Re: Universal Century Gundam Online .DET

Posted: Tue Apr 10, 2012 9:19 am
by youngmark
finale00 wrote:Not sure how you figure the UV is missing. I don't even assign materials.
Image
Look here.
They are perfectly suited.
I used fmt_UCGundamOnline_det.py script for this.
Well, Thanks for sharing this great Script.

Re: Universal Century Gundam Online .DET

Posted: Sat Apr 14, 2012 5:14 am
by Troopermanaic
finale00 wrote:I would've thought your admin would have provided at least some information by now.
leyme wrote:I settled the problems.
The answer was staring us in the face.
Nice, there were go lol
There are 8 integers at the end of the file, where the 3rd is the compressed size and the 4th is the uncompressed size.

Code: Select all


#UC Gundam Online .DET decompress

get FLAG short
get NAME FILENAME
if FLAG = 0xDA78
	goto -32
	get unk long
	get unk long
	get ZSIZE long
	get SIZE long
	clog NAME 0 ZSIZE SIZE
else
	print "Not compressed"
	cleanexit
endif
Too bad I can't load them cause I'm not getting the format right.
I know this may be a bit off topic but im wondering if you can help with this, basically I have some .DET files from prototype and beta UCGO and they are kinda different then the .DET files we have now, here is one that was decompiled with your script. Do you think you can parse it like current .DET files?

http://www.2shared.com/file/A0DdB-LM/RA ... ZOOKA.html

Re: Universal Century Gundam Online .DET

Posted: Sat Apr 14, 2012 5:23 am
by finale00
It is a different format but it is easier than the chunk-based ones.
Are these available in the setup file from UCGO p-server website?

Judging from the tags, it looks like this was an older version and they decided to build on it.

Re: Universal Century Gundam Online .DET

Posted: Sat Apr 14, 2012 5:28 am
by Troopermanaic
finale00 wrote:It is a different format but it is easier than the chunk-based ones.
Are these available in the setup file from UCGO p-server website?
no they arent available for public use, these are much much older files, only I and a few other people left in the world have these files. Unfortunately my method for file replacement in UCGO doesn't work with these older file formats.

That file I have you, the Raketen bazooka is a weapon we dont have in the current version of UCGO. We really want to implement it.

if you are really interested I can give you more files if you think it will help with overall reverse engineering.

Re: Universal Century Gundam Online .DET

Posted: Sat Apr 14, 2012 5:30 am
by finale00
Send them to tsukihimex[at]gmail.com
I can parse out the general structure; it is almost like the ver3 and ver4 exception they don't have the XR's and stuff.

In fact the structures are pretty much the same.
Only thing it doesn't seem to have are those dumb SCRIPTDATA sections.