Aimdrol / WoT-Replay-Analyzer

Replay Analyzer for World of Tanks
45 stars 5 forks source link

Wot modding #4

Open 1oglop1 opened 6 years ago

1oglop1 commented 6 years ago

Hi @Aimdrol I was curious if you know any direction I can start with wot modding?

I'd like to write simple notification in garage.

Thank you!

Aimdrol commented 6 years ago

For many things you'll need a basic to good understand of python. Flash as well if you want to do more complex UI related things. What worked for me was looking at mods that did things similar to the ones I planned to create. In your case the first place to look would probably be some session statistics mod. Then you'll have to decompile the .pyc files to .py files that can be edited with your editor of choice (I personally like Visual Studio Code). For this I am using uncompyle2. Now you can check how the mod author implemented the thing you wanted to study. You can also decompile all scripts of the WoT client itself and search through all the generated .py files if you're interested how a certain method is implemented.

Maybe there are some tutorials on how to create certain types of mods but I do not know any of the top of my head. Feel free to ask any further questions that arise.

1oglop1 commented 6 years ago

Hi thank you! I feel kind of solid in python. I did struggle bit with uncompyle, since I tried to use uncompyle6 and tried to recursively decompyle entire content scripts.pkg which contained the python itself.

Then I found small example on wot forums and this awesome project https://github.com/juho-p/wot-debugserver/tree/master/python