Jump to content
Korean Random
Rawkes

How to retrieve player and tank data from the battle loading screen? [Python]

Recommended Posts

Hi there,

 

I'm new to modding WoT, though I'm not new to programming – hopefully what I need is just a pointer in the right direction, rather than someone holding my hand.

 

I'd like to create a simple Python mod that spits out data on all the players and tanks when the battle loading screen appears, or as soon as the game starts (before the countdown finishes). The code behind this shouldn't be too crazy, I just don't know what part of the WoT code, or which events to be listening for.

 

What Python method / event gets fired during the battle loading screen, or just afterward that contains all the player and tank data for people in both teams?

 

I appreciate the help :)

 

Rawkes

Edited by Rawkes

Share this post


Link to post

Short link
Share on other sites

What Python method / event gets fired during the battle loading screen, or just afterward that contains all the player and tank data for people in both teams?

onEnterWorld?

 

import BigWorld

for vehicleID in BigWorld.player().arena.vehicles.iterkeys():
    vehicle = BigWorld.entity(vehicleID)
    print dir(vehicle)
After that, look into python.log Edited by ShadowHunterRUS

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...