Page 1 of 4

TwelveSky 2 Model Format

Posted: Wed Jul 13, 2011 12:12 am
by Rimbros
The contents of this post was deleted because of possible forum rules violation.

Re: TwelveSky 2 Model Format

Posted: Wed Jul 13, 2011 1:57 pm
by finale00
Weird format.

There are a couple of dwords (variable amount, from 2 to 4), followed by a dword that indicates the number of bytes in the following section, and then you come across that many bytes.

And the pattern repeats until the end (there are 8 bytes of nulls at the end) o.O

Maybe there is some significance in those unknown dwords, but nothing looks obviously like face indices. The sections could even be encrypted I suppose.

I wonder if mobject and sobject are the models lol (though there wasn't much other things in the folder..). Maybe multiple files are required to build the model.

Re: TwelveSky 2 Model Format

Posted: Thu Jul 14, 2011 9:46 pm
by Rimbros
Try download the game, maybe this can help, cause i see another files but size are 250 to 300MB

Re: TwelveSky 2 Model Format

Posted: Thu Jul 14, 2011 11:03 pm
by finale00
I don't see any other files (unless I accidentally deleted it).

Re: TwelveSky 2 Model Format

Posted: Fri Jul 15, 2011 8:08 am
by CriticalError
ummm well I downloading game for try test some files, really graphics are very good, hope see some progress in it.

Re: TwelveSky 2 Model Format

Posted: Wed Jul 20, 2011 1:32 am
by Rimbros
Yes all the game files samples i Post are very good :P .
This its special, and have very good stuff but sounds complicated to decrypt.

Re: TwelveSky 2 Model Format

Posted: Wed Jul 20, 2011 3:30 am
by CriticalError
finale00 wrote:I don't see any other files (unless I accidentally deleted it).
mate you don't test it? I analize the files but can't be found any information about that :S

SOBJECT files.

Code: Select all

00000000 02 00 00 00 01 00 00 00 B2 9C 00 00 B1 27 00 00 78 DA ED BC 09 58 4D 5D FB 3F BE F6 41 86 22 99 .............'..x....XM].?..A.".
00000020 22 4D 52 24 8D 4A A8 CE 5A 96 A4 84 A8 54 22 92 B9 94 A9 0C 45 85 4C 29 CD A5 42 99 67 32 0B 9D "MR$.J..Z....T".....E.L)..B.g2..
00000040 B5 3C 1E 32 97 79 96 39 73 E6 59 FC EE 73 7A 7A DF CE FB FF FA EE FF 7B 3D 97 EB 7D 7F BF EB B8 .<.2.y.9s.Y..szz.......{=..}....
00000060 AF FB FE DC 67 7F D6 5E 6B EF 7D EF D6 BC 21 F4 9F F9 47 24 55 5A 0B 7C 75 C0 ED 3E 43 39 F3 8A ....g..^k.}...!...G$UZ.|u..>C9..
00000080 A7 57 EC E3 F9 A9 3B 53 89 F3 85 E5 D4 2A 2D 93 34 9B 1D 5A 34 A5 6D 3A D5 EC B7 0B BF 7A FD 86 .W....;S.....*-.4..Z4.m:.....z..
000000A0 A4 9C 76 23 A3 DF A5 D1 F3 1D 0C 48 6A 57 4D 52 CB FB 13 CB 08 33 E7 E5 E4 AC 74 74 ED A7 2C 6C ..v#.......HjWMR.....3....tt..,l
000000C0 9D 3E 71 68 98 46 5B 46 C6 91 9A E5 5D 8D 30 C5 BA 6D FF 60 2F 3E 79 90 76 91 99 34 70 53 1B B2 .>qh.F[F....].0..m.`/>y.v..4pS..
000000E0 7F 9E 23 D1 93 C5 E0 C2 6E 46 BC AC A7 06 AE 57 2C F0 11 49 E5 78 9F 6F 0E 35 91 EA 92 0D E3 9F ..#.....nF.....W,..I.x.o.5......
00000100 E3 33 65 84 04 DC 78 87 49 7A 5F EC 61 AF C7 47 34 DF 88 CF E8 2F A5 59 2C 5E 29 FF 5B 8E 2B F1 .3e...x.Iz_.a..G4..../.Y,^).[.+.
00000120 97 26 1A DC DD DA 17 F7 77 CB A5 D3 E3 9B 92 C7 EE CB 99 73 85 2B BF 3F 4B 9D 2F B8 E7 8F B5 64 .&......w..........s.+.?K./....d
00000140 A6 7C 2B 97 72 83 A8 74 FA D3 F3 01 2B FB F4 80 A5 2F 0C E2 4F DF B5 65 85 97 FB E2 67 A1 26 AC .|+.r..t....+..../..O..e....g.&.
00000160 EF C3 BE BC C9 D7 34 DA 31 5A 8F DD CF 9A 41 A2 2B 3A 33 A7 98 B6 D8 09 19 60 8F 11 03 D9 B9 36 ......4.1Z....A.+:3......`.....6
00000180 83 F9 A3 90 54 9A A9 7B 4D 56 B3 FC F7 A1 17 A4 ED FA 39 31 AB E1 7D 88 71 F7 1C FA 68 87 AE D2 ....T..{MV........91..}.q...h...
000001A0 F5 19 BD 30 27 E7 A4 C7 D8 86 0E 3F 71 74 56 0E DD 3A AD 8F EC 92 65 07 62 A7 61 4E A6 D5 DD C2 ...0'......?qtV..:....e.b.aN....
000001C0 4A EB 35 24 1E 73 B3 58 8A 85 29 B9 80 B3 E9 46 4D 2A 1D A3 DD 8B FB 3B 37 E4 BD 69 3E FE 1E A1 J.5$.s.X..)....FM*.....;7..i>...
000001E0 43 DA F7 59 C2 EC 9C 96 C9 7E 3A 67 D2 46 A9 71 FC C3 19 5F 99 5E 69 0B 1E 1B E6 C1 9B 3F 2F C6 C..Y.....~:g.F.q..._.^i......?/.
00000200 05 E9 59 32 4B B5 89 4C CE D7 BE 34 8D 6F 30 5E C7 02 75 4C F8 9D A1 36 BC F7 E4 3D F8 5E CE 6E ..Y2K..L...4.o0^..uL...6...=.^.n
00000220 59 6C ED 9D B2 44 F7 74 45 9C 6B 5E DF E3 3B 87 F0 DA EC AB 45 62 F1 13 8B BF 58 7C DF 7F D1 25 Yl...D.tE.k^..;.....Eb....X|...%
00000240 B7 EE 25 50 D7 30 43 D6 6C AF 5E D1 D9 B7 B1 3C A8 5F 4A D1 CE AE 17 F0 B1 91 4F 99 D5 7C 43 B2 ..%P.0C.l.^....<._J.......O..|C.
00000260 35 2A 85 AA 57 EA 4A F7 F4 09 62 C1 73 10 A7 86 BE E4 F2 8E 37 78 25 57 E7 3B 1D 9A 13 77 CF 14 5*..W.J...b.s.......7x%W.;...w..
00000280 FA DA 65 25 DB A1 9B C1 CC 3F C4 CB C2 A6 44 F0 FA 13 2F E0 69 CB 9A 70 AB 37 26 C4 10 E2 1B 18 ..e%.....?....D.../.i..p.7&.....
000002A0 7C 80 BD A8 F3 5C 76 C6 D6 10 2F 37 9A C9 4B 5B 5F C5 E3 1F 58 72 CD 91 8E 24 BF 24 8D 36 8A 1D |....\v.../7..K[_...Xr...$.$.6..
000002C0 8B 3F 7F EF 87 33 27 77 C1 EB E2 A7 91 89 DF D4 C8 82 06 86 7C 4A 9A 0D 31 77 48 A7 7D AD DA 30 .?...3'w............|J..1wH.}..0
000002E0 BB 03 D3 49 A7 60 1D E6 59 AF 3F 1B 28 7B 89 CB B7 99 FE ED F2 1B EB 9A 90 02 EB 14 1A 35 D5 90 ...I.`..Y.?.({...............5..
00000300 AD D8 1C 45 26 94 BD 95 A9 9D 36 65 C2 AD BB 78 E0 81 46 7F FB F9 88 DD 5F A3 AF BA 5C 9E BF 37 ...E&.....6e...x..F....._...\..7
00000320 E4 BF 7E 95 9E D3 69 C8 BF D4 EB 9F F9 9F 73 68 CE E5 F7 57 01 F7 E7 AC 9B 81 2F 7E 8A 97 45 D6 ..~...i.......sh...W....../~..E.
00000340 B8 BF FE F3 0D B9 BC 7C 5B 28 DF CD 3D 08 1F 86 F2 DB D7 28 BF EF 1B 13 2E BF FF 20 B8 FF AF 75 .......|[(..=......(....... ...u
00000360 9E 4B 03 ED 0C 71 56 8D FB B7 1C E9 C8 E5 D7 D7 10 AE 4F BF B2 1F 6B 32 A9 0B DE 5F E3 FA C4 CA .K...qV...........O...k2..._....
00000380 4F 4C B3 E1 F2 F8 04 40 7C 6C 0F 4C E7 65 10 1F A1 46 7C C4 CA D7 D0 35 E1 F2 E7 9F 05 CF 3F 6F OL.....@|l.L.e...F|....5......?o
000003A0 73 14 AF B8 FD 56 76 FB D4 3F 9F BF D8 F5 89 DD BF D8 F3 3D 6A E5 72 E8 F9 DE 14 DA 21 AA 0F F9 s....Vv..?.........=j.r.....!...
000003C0 36 B7 97 DD 5E DB 36 EC 4A C9 2C 6E D8 72 32 D9 44 6C 58 23 A9 0D DF F0 2E 85 FA 1D BF 8D 87 C4 6...^.6.J.,n.r2.DlX#............
000003E0 49 F9 E9 03 AB 64 C3 9E 99 F1 A7 F6 DE E4 47 80 1E 7B E9 DD 81 7B DE 4E A7 CF DC 77 E0 6D 73 7A I....d........G..{...{.N...w.msz
00000400 F1 F0 E8 FA 6C F4 7B 3D 7E 6D 8A 27 31 1D 36 88 F5 6B 67 C8 37 D5 4A A6 96 6D 8B B0 AF DD 23 B6 ....l.{=~m.'1.6..kg.7.J..m....#.
00000420 AB CB 04 36 B5 DE 50 3E DA C2 9B 7C 68 71 5F 66 F5 53 83 6F 6C BA 84 BE ED FB 13 DB CF 2A 66 B7 ...6..P>...|hq_f.S.ol........*f.
00000440 6E 78 F3 A8 07 A5 6C FC C1 00 B2 E2 53 8E 2C 69 86 96 82 EF DD 6F 2B AE F9 F7 FF F4 BE 0F 09 9B nx....l.....S.,i.....o+.........
00000460 BD 48 56 92 5F 8B 3F 8D 5E 4C 8F B6 3F A7 C4 0F 7D 10 40 F6 E8 6C 2E CA D7 29 66 C2 A2 44 5A 74 .HV._.?.^L..?...}[email protected]...)f..DZt
00000480 A9 0B 39 65 D4 9D D5 7A 1A C5 EB 19 CD 93 6E 33 19 47 2C 16 65 C8 AC 3E A9 F1 E2 3E 8B A9 FF 1F ..9e...z......n3.G,.e..>...>....
000004A0 B6 4A F5 8B 56 E5 18 D2 CC 7B 5B 11 E9 E6 CD FA 39 27 52 EB 50 77 32 F9 C2 60 D9 99 1B 31 BC F7 .J..V....{[.....9'R.Pw2..`...1..
000004C0 F2 7C D9 4B 3E 91 B8 E4 C5 C9 EE 14 33 76 2D 36 81 FE 5C E0 40 7A 0C 99 A1 B8 06 40 7E DD 69 2C .|.K>.......3v-6..\.@z.....@~.i,
000004E0 79 E6 37 44 76 FB D5 6C A6 6B 9D 40 F7 B0 DE E4 79 9D 1F 8A 3A FA 79 9D 18 EE 3F 3B 94 E8 84 59 [email protected]...:.y...?;...Y
00000500 CB 02 C7 1E 63 C6 F5 16 D3 15 C9 63 95 CA D7 0B 1D 4B C6 6D 37 2A 1A 65 E3 72 C8 5B 23 91 F6 7C ....c......c.....K.m7*.e.r.[#..|
00000520 ED 4B 92 DE C5 EE DD 5B 14 CB 93 53 BB 49 57 EC 9F 4E BE D6 1F 23 9B D7 6D 8E CC 23 21 9E BE B4 .K.....[...S.IW..N...#..m..#!...
00000540 F2 52 3A FF 5E 52 38 39 E7 F0 E9 90 58 7C D3 4F B6 27 F2 F8 7D 81 F8 CD 9F D3 8B 18 42 FC 56 D4 .R:.^R89....X|.O.'..}.......B.V.
00000560 88 DF F6 5D 56 44 1E FF 21 10 7F DB 38 29 79 BF 7F 95 2C B5 46 FC 5F 2D D3 27 F2 F8 7E 31 2A C2 ...]VD..!...8)y...,.F._-.'..~1*.
00000580 71 B6 8F F0 15 FB 09 EC 50 8D F8 BE 8E 50 27 D5 F1 F5 9A 55 8C D5 6E 7A F3 ED F7 FF 19 DF 7B 75 q.......P....P'....U..nz......{u
000005A0 FE C4 F2 F8 70 88 4F 89 51 77 5C 0F E2 53 6A F0 CF F8 F4 68 DC 0F CB 9F 7F 17 78 FE 6E E7 07 4B ....p.O.Qw\..Sj....h......x.n..K

Re: TwelveSky 2 Model Format

Posted: Wed Jul 20, 2011 3:35 am
by finale00
Just nothing makes much sense to me from the format lol

Re: TwelveSky 2 Model Format

Posted: Wed Jul 20, 2011 3:41 am
by chrrox
there are no samples online to look at it.

Re: TwelveSky 2 Model Format

Posted: Wed Jul 20, 2011 3:43 am
by CriticalError
ok :( thanks anyway, and what about ArcheAge? somebody create a topic but nothing there. a 1 file of 24GB wtf? all be there packed in 1 file?

Re: TwelveSky 2 Model Format

Posted: Wed Jul 20, 2011 5:47 pm
by Rimbros
The contents of this post was deleted because of possible forum rules violation.

Re: TwelveSky 2 Model Format

Posted: Wed Jul 20, 2011 6:12 pm
by chrrox
The file was deleted

Re: TwelveSky 2 Model Format

Posted: Wed Jul 20, 2011 7:49 pm
by finale00
The contents of this post was deleted because of possible forum rules violation.

Re: TwelveSky 2 Model Format

Posted: Wed Jul 20, 2011 8:27 pm
by chrrox
the models are just compressed with zlib
just use offzip to extract them

Re: TwelveSky 2 Model Format

Posted: Thu Jul 21, 2011 3:11 am
by finale00
What is the command for offzip?

I tried writing a simple bms script for it because I wanted to customize the filename (name_01, name_02, etc) but there doesn't seem to be a way to determine how many files are in the object.

Code: Select all

get one long
get one long
get size long
get csize long
savepos offset
clog test offset csize size
This got the first file...but then I didn't know how to continue it.

EDIT:

Code: Select all

#twelve sky object unpacker

get one long
get one long
get FULLSIZE asize
set x long 1
do
	get name basename
	string name + x
	get size long
	get csize long
	savepos offset
	clog name offset csize size
	math offset += csize
	goto offset
	savepos CURR
	math offset += 4
	goto offset
	math x += 1
while CURR < FULLSIZE
This always crashes cause there are 8 bytes of nulls at the end of the file, and some have more data after those 8 bytes so I have to figure out how to use the total filesize and current position properly.

But at least it works (extracts dds images properly and can view them). Though, I wish there was a way to auto assign some extensions after somehow examining the filetype.