1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules
Ville Pesonen

War Thunder Plugin 2.0.0.0

SimTools plugin for War Thunder

  1. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,751Coins
    Ratings:
    +3,322 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    value1 updated War Thunder Plugin with a new update entry:

    Update for War Thunder V1.49.8.22

    Read the rest of this update entry...
    • Winner Winner x 1
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,053
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,016Coins
    Ratings:
    +10,884 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    For Rift owners the War Thunder devs have now fixed the scale issue, where it felt like you were a giant inside a barrel. Hence this plugin update is so exciting, motion and online combat in a realistic world!

    So if you can please do give War Thunder a go with the Rift before they change something and break the plugin again. Unfortunately my rig is in bits, so I hope to see someone else do a video post.
  3. Leo Burton

    Leo Burton Active Member

    Joined:
    Jul 23, 2014
    Messages:
    163
    Location:
    London, UK
    Balance:
    2,625Coins
    Ratings:
    +129 / 1 / -2
    My Motion Simulator:
    2DOF, Arduino
    Another update, another broken memhook. Damn you Gaijin!
  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,053
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,016Coins
    Ratings:
    +10,884 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    And I didn't even get to try it this time around!
  5. Leo Burton

    Leo Burton Active Member

    Joined:
    Jul 23, 2014
    Messages:
    163
    Location:
    London, UK
    Balance:
    2,625Coins
    Ratings:
    +129 / 1 / -2
    My Motion Simulator:
    2DOF, Arduino
    @noorbeast Do you know of a good dogfighting game that is stable? Plane, space or heli?

    Star Citizen and War Thunder (both I really want to use) don't seem stable. They're both constantly updating and breaking plugins.

    Is Elite Dangerous constant, or do they update the game all the time?
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,053
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,016Coins
    Ratings:
    +10,884 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Star Citizen is not even close to release and War Thunder has been in a constant beta mode forever, so breakages are to be expected. There are still regular updates for ED.

    There is Digital Combat Simulator but that is more of a hard core sim, the IL2 series and Wings Of Prey are good WW2 alternatives. WOP is the precursor to War Thunder and shares many of the same scenery and combat aspects, but in my opinion has better joystick support.
    • Informative Informative x 1
  7. Leo Burton

    Leo Burton Active Member

    Joined:
    Jul 23, 2014
    Messages:
    163
    Location:
    London, UK
    Balance:
    2,625Coins
    Ratings:
    +129 / 1 / -2
    My Motion Simulator:
    2DOF, Arduino
    Thanks @noorbeast , I will try Wings of Prey. Hopefully the plugin still works.

    Half the reason I built a sim was to dogfight in War Thunder, and I can't get it working.

    The Joystick plugin works very well in those cases, but I don't get the heave and surge etc...
    • Like Like x 1
  8. Corporatezombie

    Corporatezombie Member SimAxe Beta Tester Gold Contributor

    Joined:
    May 14, 2015
    Messages:
    38
    Location:
    Leicestershire
    Balance:
    148Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    3DOF, SCN5
    Is anyone having any luck with War Thunder at the moment? I'd love to play this with motion! I know they have just updated to v1.51. And I was wondering if it was something I was doing wrong, or the fact that they've updated it.
    Thanks!
  9. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,751Coins
    Ratings:
    +3,322 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    To be honest, I've kinda given up updating this game plugin. The game changes so frequently that I can't keep up. The current plugin doen't work with the latest version of WarThunder.
    However I've published in detail, how to update the plugin here: http://www.xsimulator.net/community/threads/war-thunder-plugin.6231/page-2#post-75374
    When you're successful, you can publish the plugin :)
    • Like Like x 1
    • Useful Useful x 1
  10. Ville Pesonen

    Ville Pesonen Active Member

    Joined:
    Jan 13, 2015
    Messages:
    136
    Balance:
    842Coins
    Ratings:
    +200 / 0 / -0
    My Motion Simulator:
    2DOF
    I tried to make a new plugin for the War Thunder, but I never got it to work.
    First I tried to find the values from memory , but I only managed to find the speed value. After some time in google I found out that War Thunder exports different values through udp port 8111!(https://www.reddit.com/r/Warthunder/comments/1vhws2/how_do_i_extract_flight_data_in_real_time_from/).
    I tried to make a frankenplugin by combining bits and peaces from the LFS example plugin and the one that @value1 posted some time ago. All I got was a steady value of 180 from sway, which shows my amazing skills at programming.
    So, if someone more capable in programming wants to give it a shot, or help me, you can get the necessary values from UDP stream. This way the plugin won't become obsolete in a month, unless they change the data sent by UDP.
    You can see the data if you point your browser to http://127.0.0.1:8111/ while War Thunder is running.


    Edit:
    I attached my frankenplugin source If someone wants to try to make my mess a working mess.

    Attached Files:

    Last edited: Aug 21, 2015
  11. Kirk

    Kirk Member

    Joined:
    May 19, 2014
    Messages:
    91
    Occupation:
    Sr Software Engineer
    Location:
    Texas
    Balance:
    15,087Coins
    Ratings:
    +114 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor
    If you can see the data in a browser by pointing it at http://127.0.0.1:8111, then the data is TCP and not UDP.

    That's not to say they aren't also putting it out UDP, just that what you are seeing in your browser is most definitely TCP.

    When creating a socket for UDP, you'd use SOCK_DGRAM, and for TCP, it's SOCK_STREAM.

    Anyway, I'd try modifying your code a little (change SOCK_DGRAM to SOCK_STREAM, add a "connect" call, and replace "recvfrom" with "recv"), and see what happens. :)
  12. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,751Coins
    Ratings:
    +3,322 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    Thanks for your input.
    I'm aware of this interface.

    Check also
    http://127.0.0.1:8111/indicators it gives you:
    {"valid": true,
    "speed": 118.596352,
    "pedals": -0.124821,
    "stick_elevator": -0.037629,
    "stick_ailerons": 0.000000,
    "vario": -35.648598,
    "altitude_hour": 193.381577,
    "altitude_min": 193.381577,
    "bank": 0.246070,
    "turn": -0.030011,
    "compass": 224.729431,
    "clock_hour": 9.533334,
    "clock_min": 32.000000,
    "manifold_pressure": 1.185755,
    "rpm": 2101.171875,
    "oil_pressure": 45.978683,
    "oil_temperature": 45.978683,
    "head_temperature": 34.973877,
    "mixture": 1.000000,
    "fuel_pressure": 10.000000,
    "gears": 0.500000,
    "trimmer": -0.046092,
    "throttle": 1.000000,
    "weapon1": 0.000000,
    "prop_pitch": 1.000000,
    "supercharger": 0.000000,
    "radiator": 0.000000}

    and
    http://127.0.0.1:8111/state which gives you:
    {"valid": true,
    "aileron, %": 0,
    "elevator, %": -4,
    "rudder, %": -12,
    "gear, %": 0,
    "TAS, km/h": 419,
    "IAS, km/h": 427,
    "M": 0.35,
    "AoA, deg": -1.6,
    "AoS, deg": 0.0,
    "Ny": 0.83,
    "Vy, m/s": -35.7,
    "Wx, deg/s": 0,
    "throttle 1, %": 100,
    "RPM throttle 1, %": 100,
    "mixture 1, %": 100,
    "radiator 1, %": 0,
    "compressor stage 1": 1,
    "magneto 1": 3,
    "power 1, hp": 826.1,
    "RPM 1": 2101,
    "manifold pressure 1, atm": 1.19,
    "oil temp 1, C": 46,
    "pitch 1, deg": 32.7,
    "thrust 1, kgs": 439,
    "efficiency 1, %": 81}
    It's actually the same data as http://127.0.0.1:8111/ but without the map.
    However I cannot interpret any of these data as pitch, roll, surge, sway and heave (compass is yaw)
    :(

    Probably someone has a better understanding of the meaning of these values?
    • Informative Informative x 1
  13. Kirk

    Kirk Member

    Joined:
    May 19, 2014
    Messages:
    91
    Occupation:
    Sr Software Engineer
    Location:
    Texas
    Balance:
    15,087Coins
    Ratings:
    +114 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor
    If you received two readings at a known time apart, you could use the delta to derive all that information.

    The TAS and IAS are True Air Speed and Indicated Air Speed. A difference between previous and current readings would denote acceleration or deceleration.

    I think Ny, Vy, and Wx might be very interesting as well (assuming it's based on a single quaternion), and perhaps "Bank" and "Turn".

    The sad thing is that they would need those deltas to even calculate how the plane would behave when you adjusted ailerons, they just aren't exposing it. But, theirs enough data to recalculate it, if I'm reading that correctly.

    Is war thunder on steam? I have flight simulator x, but never played it. (it was just too good of a price to turn down, but never even downloaded it yet).
    • Like Like x 1
  14. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,751Coins
    Ratings:
    +3,322 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    Sounds good. As mentioned before, I'm not a pilot at all. So if you can makes sense out of these data would be great. I can then do the maths ;)

    And yes, War Thunder is on Steam F2P even. And also available as a stand alone app.
  15. Kirk

    Kirk Member

    Joined:
    May 19, 2014
    Messages:
    91
    Occupation:
    Sr Software Engineer
    Location:
    Texas
    Balance:
    15,087Coins
    Ratings:
    +114 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor
    "AoA, deg" and "AoS, deg" are Angle of Attack and Sideslip Angle, respectively. While cool, I don't think they can be used easily. But, for a sim that has traction loss... Could be cool.
    "Wx, deg/s" is the roll rate (degrees per second), could be very useful.
    "Vy, m/s" appears to be the velocity, may be less useful than TAS and IAS.

    I will download war thunder this evening, and figure out what "M" and "Ny" are.
    • Like Like x 2
  16. Ville Pesonen

    Ville Pesonen Active Member

    Joined:
    Jan 13, 2015
    Messages:
    136
    Balance:
    842Coins
    Ratings:
    +200 / 0 / -0
    My Motion Simulator:
    2DOF
    Vario - means vertical speed (atleast google told so), could probably be used to calculate heave.
    Ny - seems like vertical G forces (relative to the pilot). Probably better for heave than Vario.
  17. Ville Pesonen

    Ville Pesonen Active Member

    Joined:
    Jan 13, 2015
    Messages:
    136
    Balance:
    842Coins
    Ratings:
    +200 / 0 / -0
    My Motion Simulator:
    2DOF
    I've written code that reads the values (TAS,Ny,Wx,Bank,Turn,Vario), but I have no idea where to place the code in the plugin template to make it work. Is the Sub Process_PacketRecieved appropriate place for it? And then just assign the values to the ***_OUTPUT variables? If someone wants to try to append my code to the plugin code, I attached the code I've written (be aware, I had to learn VB while writing it so it might not be the most optimized/commented code there is).

    Attached Files:

    • Like Like x 2
  18. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,751Coins
    Ratings:
    +3,322 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    Cool! That works :thumbs Well done!
    What I still don't understand is the meaing of the different available values in state and indicators :(
  19. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,751Coins
    Ratings:
    +3,322 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    Here the plugin with TAS,Ny,Wx,Bank,Turn,Vario.
    So far the "motion" does not make sense but it gives you an idea, how to code it :)

    Attached Files:

    • Like Like x 1
    • Informative Informative x 1
  20. Ville Pesonen

    Ville Pesonen Active Member

    Joined:
    Jan 13, 2015
    Messages:
    136
    Balance:
    842Coins
    Ratings:
    +200 / 0 / -0
    My Motion Simulator:
    2DOF
    Thank you for this. I'll try to make something of it.
    • Like Like x 1