It's a python pickle, the game uses a few of those for network data as well.Wobble wrote:It's a Phython module or database object.
Just search for "ccopy_reg_reconstructor" and "c__builtin__object" and you'll get a couple hits on Google.
I don't use Phython, so I have no idea how to use it.
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
World of Warships
-
- ultra-n00b
- Posts: 9
- Joined: Mon Sep 28, 2015 11:12 am
- Been thanked: 4 times
Re: World of Warships
-
- advanced
- Posts: 44
- Joined: Tue Sep 29, 2015 1:36 am
- Has thanked: 4 times
- Been thanked: 17 times
Re: World of Warships
I'll throw my hat in the ring, here's a response from a dev -Wobble wrote:6MB is too much data to look at.
You can use regex to rip out all strings between single quotes:All content paths:Code: Select all
grep32.exe "S\'[a-zA-Z0-9_/\.-]+\'" GameParams.dat.txt > GameParams_strings.txt
Code: Select all
grep32.exe "S\'content[a-zA-Z0-9_\\/\.-]+\'" GameParams.dat.txt > GameParams_paths.txt
-
- ultra-n00b
- Posts: 9
- Joined: Mon Sep 28, 2015 11:12 am
- Been thanked: 4 times
Re: World of Warships
To get the pickle working you have to have a file named 'GameParams.py' in the same location as the main script for it's instanced classes.
After this the pickle would load normally. The data does reference some additional models, but it contains a lot more than just the ships.
Standard python to dump json text as well
Code: Select all
class TypeInfo(object): pass
class GPData(object): pass
class GameParams: pass
Code: Select all
try:
import cPickle as pickle
except:
import pickle
f = open('GameParams.txt')
gameParams = pickle.load(f)
f.close()
# Do something with gameParams
print gameParams['PWSD501_Blyskawica'].ArtilleryDefault.HP_WGM_1.model
Code: Select all
# ...
f.close()
import json
class GPEncode(json.JSONEncoder):
def default(self, o):
return o.__dict__
f = open('PWSD501_Blyskawica.json')
f.write(json.dumps(gameParams['PWSD501_Blyskawica'], cls=GPEncode, sort_keys=True, indent=4, separators=(',', ': ')))
f.close()
-
- advanced
- Posts: 44
- Joined: Tue Sep 29, 2015 1:36 am
- Has thanked: 4 times
- Been thanked: 17 times
Re: World of Warships
Thanks m8, I put all of your scripts in a zip:http://www.mediafire.com/download/jrqf1 ... ractor.zipgr33nmous3 wrote:To get the pickle working you have to have a file named 'GameParams.py' in the same location as the main script for it's instanced classes.After this the pickle would load normally. The data does reference some additional models, but it contains a lot more than just the ships.Code: Select all
class TypeInfo(object): pass class GPData(object): pass class GameParams: pass
Code: Select all
try: import cPickle as pickle except: import pickle f = open('GameParams.txt') gameParams = pickle.load(f) f.close() # Do something with gameParams print gameParams['PWSD501_Blyskawica'].ArtilleryDefault.HP_WGM_1.model
copy your GameParams.data file into the extracted folder, then run reverse first, then inflate - everything.py dumps all the contents into one .json (the result is a 30mb monster), shipids.py lists all the shipids and the ships they correspond to
- Andrakann
- 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
I have Python26 installed and all works fine.Wobble wrote:Awesome. Can you get your scripts working with the latest Python version, 3.5.0?
I'm getting several errors.
-
- ultra-n00b
- Posts: 9
- Joined: Mon Sep 28, 2015 11:12 am
- Been thanked: 4 times
Re: World of Warships
The scripts were written for Python 2.7, I have no clue what differences python3 has with 2.Wobble wrote:Awesome. Can you get your scripts working with the latest Python version, 3.5.0?
I'm getting several errors.
- Andrakann
- 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
Very useful, with that IDs I made a mod for previewing all available ships ingameTheSeeker wrote:shipids.py lists all the shipids and the ships they correspond to
Archive content:
gui\lobby\shipstree.xml - modified ships tree, all ships unhidden, display resolution 1920x1080 is recommended.
camerasConfig.xml - camera mod for close zooming.
postfx_animations.xml - disable B/W shader in ships preview.
You do not have the required permissions to view the files attached to this post.
-
- advanced
- Posts: 44
- Joined: Tue Sep 29, 2015 1:36 am
- Has thanked: 4 times
- Been thanked: 17 times
Re: World of Warships
I've had a mod out for quite some time that does this, except for the Worcester, Smith, and Pensacola 1930 which iirc are broken, if you click on them, they won't finish loading.Andrakann wrote:Very useful, with that IDs I made a mod for previewing all available ships ingameTheSeeker wrote:shipids.py lists all the shipids and the ships they correspond to
Archive content:
gui\lobby\shipstree.xml - modified ships tree, all ships unhidden, display resolution 1920x1080 is recommended.
camerasConfig.xml - camera mod for close zooming.
postfx_animations.xml - disable B/W shader in ships preview.
http://forum.worldofwarships.com/index. ... tech-tree/
-
- ultra-n00b
- Posts: 9
- Joined: Mon Sep 28, 2015 11:12 am
- Been thanked: 4 times
Re: World of Warships
Speaking of those .BIN files, what do you know? There's only one .bin file in the game, res/particles/particles.bin and i've been trying to load that one up but I am hugely inexperienced.Coffee wrote:The only reference to BIN files, in what little bigworld documentation I have is not even close