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

World of Warships

Post questions about game models here, or help out others!
User avatar
Coffee
ultra-veteran
ultra-veteran
Posts: 518
Joined: Thu Aug 06, 2015 5:57 pm
Has thanked: 74 times
Been thanked: 205 times

Re: World of Warships

Post by Coffee »

well..
They fired me for missing work because of this god damn flu I have. :(
Seems wrong to me. I have been in bed 90% of the time since last Sunday night.
It is a prefect example of a company caring more about money than their employee's health.
I should of gone to work anyway.. at least long enough to pass this flu over to them.
I'd love to change the world but I can't get my hands on the code.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: World of Warships

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 11:23 am, edited 1 time in total.
User avatar
Coffee
ultra-veteran
ultra-veteran
Posts: 518
Joined: Thu Aug 06, 2015 5:57 pm
Has thanked: 74 times
Been thanked: 205 times

Re: World of Warships

Post by Coffee »

Wobble wrote:Well, that sucks. Were you full-time employee? Could always offer to work at home if job is online or computer-related.
Yes..
And no.. I can't. I'm a machinist

I am giving up on the GameParams.data file.
I can't figure it out. There has to be some kind of table in this file. IT can NOT be one giant Compressed XML or can it?
I'd love to change the world but I can't get my hands on the code.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: World of Warships

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 11:23 am, edited 1 time in total.
User avatar
Coffee
ultra-veteran
ultra-veteran
Posts: 518
Joined: Thu Aug 06, 2015 5:57 pm
Has thanked: 74 times
Been thanked: 205 times

Re: World of Warships

Post by Coffee »

That's what I was trying.
I created a simple app and was trying to find an offset where the decompressed size is.
I have had no luck yet.
Typically, they use Uint32s for everything as far as offsets or indexes.
All the numbers seem too big.
The only reference to BIN files, in what little bigworld documentation I have is not even close.
I know they use deflate for some things. Its what I had to use to get at some of the cdata files. (sections within files compressed using deflate)
With out the precompressed file size, I don't think there is a way do deflate the file. I need to look at my code again. I'm having a hard time thinking.
Maybe I'm wrong?

If there are tables in the file, I can't find them.
Bigworld usually pads tables or lists to 4 byte boundaries.
Usually these are filled with zeros/nulls. Knowing this it's easy to spot tables in the data but... not this time.
What ever method they are using is proving to be a pain to even sort out.

This flu is starting to scare me. Its been almost a full week and if anything, I feel worse.
I'd love to change the world but I can't get my hands on the code.
User avatar
Coffee
ultra-veteran
ultra-veteran
Posts: 518
Joined: Thu Aug 06, 2015 5:57 pm
Has thanked: 74 times
Been thanked: 205 times

Re: World of Warships

Post by Coffee »

I renamed 7z.dll to _7z.dll and the game still launches and loads the ships fine.
I'd love to change the world but I can't get my hands on the code.
User avatar
Coffee
ultra-veteran
ultra-veteran
Posts: 518
Joined: Thu Aug 06, 2015 5:57 pm
Has thanked: 74 times
Been thanked: 205 times

Re: World of Warships

Post by Coffee »

Well..
I found this:
https://groups.google.com/d/msg/comp.co ... OF7iE12PEJ

It is a post by Mark Adler. One of the guys that wrote ZLIB.

I really wish some one would step up and help with figuring out the files format.
Being as sick as I am I just can't do this. I sit up for a few hours and I'm exhausted.
I'd love to change the world but I can't get my hands on the code.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: World of Warships

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 11:23 am, edited 1 time in total.
User avatar
Coffee
ultra-veteran
ultra-veteran
Posts: 518
Joined: Thu Aug 06, 2015 5:57 pm
Has thanked: 74 times
Been thanked: 205 times

Re: World of Warships

Post by Coffee »

Wobble wrote:We need a second .data file for comparison, to mask out any constants.

GameParams.data is the only .data file in the entire directory. So, make a backup of GameParams.data right now, copy and rename to GameParams.data.backup, and wait for a client update. If there's data in there that needs to be tweaked, the file will change through a client update.

[edit]
Got one.

First 4 bytes are always %bin.
Last 4 bytes are always BDECDA78. Which would be strange if this file was a zip file that had it bytes sorted backwards. Zip stream pair starts with 78DA. Reverse this file, byte-by-byte, and try zlib on it.

[edit]
It worked! The data is text, but it's not in .xml format. It's a list of data types (floats,ints,strings,etc...) and values. 6MB of text data. Not sure if we can use it. It's very jumbled.
Cool!
Let me see if I can get it decompressed here as well.
I'd love to change the world but I can't get my hands on the code.
User avatar
Coffee
ultra-veteran
ultra-veteran
Posts: 518
Joined: Thu Aug 06, 2015 5:57 pm
Has thanked: 74 times
Been thanked: 205 times

Re: World of Warships

Post by Coffee »

Woohooo!
I'd love to change the world but I can't get my hands on the code.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: World of Warships

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 11:23 am, edited 1 time in total.
User avatar
Coffee
ultra-veteran
ultra-veteran
Posts: 518
Joined: Thu Aug 06, 2015 5:57 pm
Has thanked: 74 times
Been thanked: 205 times

Re: World of Warships

Post by Coffee »

LOL.. laid down and never came back to the computer.

Good job Wobble at spotting that the data was stored backwards. I never expected that.

I see lots of structure in the data. I don't see how to use this data.
I does indeed look like a dump from a data base
Looks like data chunks are separated with a empty string:
S'' <- This could also be just a null entry in the data.
Strings read as S'this is some text'
I'm guessing that:
F = a float value
I = an Integer
p?
NtRp?
p?
g?
(dp?
I don't know if this data is usable or if it has anything to do with ship assembly at this point.

Below is the section for the Midway. (Wish this site supported spoiler tags)

Code: Select all

S''
sbsS'PASA015_Midway_1945'
p6158
g3
(g4
g5
NtRp6159
(dp6160
S'ATBADefault'
p6161
g3
(g4
g5
NtRp6162
(dp6163
g420
F690
sg421
F1
sg452
F1
sg422
g3
(g4
g5
NtRp6164
(dp6165
g226
g425
sg426
F1.5
sg427
F150
sg428
F4
sg273
F8
sg429
g430
sg439
I01
sg122
F5
sg440
F1
sg441
F1
sg442
I01
sg443
F0.54000000000000004
sg444
F3
sg11
g445
sg446
(lp6166
g3257
ag3241
ag4619
ag4653
ag4559
ag4560
ag4635
ag4666
ag4561
ag4554
ag4600
ag4594
ag4555
ag4556
ag4557
ag4558
ag4562
ag4613
asg241
F0.040000000000000001
sg452
F1
sg453
F167
sg454
F1
sg455
F1
sg456
F1
sg457
F1
sg458
F4
sg228
F1
sg459
F1
sg460
F1
sg461
g462
sg283
g463
sbsg429
g464
sg475
F183
sg440
F1
sg476
F5000
sg457
F10
sg444
F10
sg4562
g3
(g4
g5
NtRp6167
(dp6168
g8
(iGameParams
TypeInfo
p6169
(dp6170
g11
g113
sg13
g114
sg14
g297
sbsg115
F0.59999999999999998
sg116
S''
I uploaded the decompressed file http://209.159.152.184:8080/WoW/data.txt
This file contains only 0xA0 line returns for string terminators so you need to use wordpad to look at this file.
(0xA0 hex = 10) = line return
I'd love to change the world but I can't get my hands on the code.
User avatar
Andrakann
ultra-veteran
ultra-veteran
Posts: 392
Joined: Wed Jul 06, 2011 8:47 am
Location: Russia
Has thanked: 967 times
Been thanked: 192 times
Contact:

Re: World of Warships

Post by Andrakann »

Coffee wrote: p?
Looks like a "page" or "paragraph" counter, but starts from 177 and ignores string terminators.
User avatar
Coffee
ultra-veteran
ultra-veteran
Posts: 518
Joined: Thu Aug 06, 2015 5:57 pm
Has thanked: 74 times
Been thanked: 205 times

Re: World of Warships

Post by Coffee »

Could be..

I know that any entry that looks like this:
L4287542992L
can be found in the shiptree.xml
These are the IDs for ships and components.

EDIT:
I searched the .exe for a number of tag strings and if they are in there, I can't find them.
I do not believe the ship assembly info is in the .exe but the gameparams isnt being much help either.

Using the master XMLs works but it will probably require constant updating as WOWs evolves.
If we can crack how this data is stored and where, I can automate creating the masters. I like using the masters because they are directly readable.

I wonder if Wargaming is watching this thread closely.
I'd love to change the world but I can't get my hands on the code.
User avatar
Wobble
ultra-veteran
ultra-veteran
Posts: 584
Joined: Tue Jan 04, 2005 9:47 pm
Has thanked: 43 times
Been thanked: 112 times

Re: World of Warships

Post by Wobble »

[out]
Last edited by Wobble on Sun Mar 12, 2017 11:23 am, edited 1 time in total.
Post Reply