Skip to content

Latest commit

 

History

History

debug-server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

WoT Debug server

python

The purpose of this mod is to provide you a server in the background that listens for local connection to provide an access to the BigWorld and Scaleform engines. This might be useful for figuring how things work.

The server runs on 127.0.0.1 port 2222. You can edit these in server.py and client.py.

How to use

  • Download Python 2.7

  • Download the project or clone it

  • Compile and pack the mod in a .wotmod, you can use my own mod packer.

  • Move the .wotmod to your World_of_Tanks/mods/X.X.X.X/ folder.

  • Run the client in a command prompt:

python2 client.py
  • Start World Of Tanks, hopefully the server will starts

  • You can now run python commands:

Request > 'hello'
Received > hello

Request > 1+1
Received > 2

Request > import messenger
Received > Success
Request > gui = messenger.MessengerEntry.g_instance.gui
Received > Success
Request > gui.addClientMessage('hello gui', True) #display a client-side message in the battle chat
Received > None

Request > import BigWorld
Received > Success
Request > BigWorld.player().name #displays player username
Received > your-username-here

Request > QUIT #the server will stops

Debugging

If you have any problem, see what is going on in World_of_Tanks/python.log

Credits

Original debug server I used to make my own.

Copyright

See the license.