Re: res/scripts not containing pyc files

Published by picknicker on

#114255
picknicker
Participant

Hey Cresh,

you must unzip them from  World_of_Tanksrespackagesscripts.pkg.

Just use 7-zip on that file.

I decompile them with uncompyle2 using this script:

cd scripts
chmod -R a+rwx *
uncompyle2 -o . --py .
rm `find -name "*.pyc"`

This decompiles all pyc files and then deletes them. You will get a few errors for some files which cannot be decompiled, but the major ones work, I usually get along fine.

It would be of course nicer if WG offered a reasonable API instead of all the function hooking, but that’s the way it is…

There used to be an unofficial Bigworld API online which was a great starting point for me, maybe google it (WOT uses the Bigworld 3D engine)

If you can’t find it I might have an offline version of it lying around.