Re: res/scripts not containing pyc files
Published by Cresh on
BLACKWOT › Forums › Sales, Feedback and Information › Peer to Peer Technical Support › res/scripts not containing pyc files › Re: res/scripts not containing pyc files
5 hours ago, picknicker said: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.
Thanks! I already found these pkg files but somehow I overlooked the scripts.pkg
I don’t really understand it too. They could at least release a documentation of the functions. I wonder why nobody made some kind of Wiki yet to document the functions. It would be very helpful.