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

Tutorial How to write a Game Plugin for SimTools v3.0 - API documentation

Discussion in 'Tutorials and Tips by the Developer' started by yobuddy, Apr 6, 2022.

  1. Bacon2002

    Bacon2002 Member

    Joined:
    Apr 18, 2017
    Messages:
    39
    Occupation:
    Underwriter
    Location:
    London
    Balance:
    18Coins
    Ratings:
    +22 / 0 / -0
    My Motion Simulator:
    SCN6, Motion platform
    Hi,
    With help from copilot I managed build a plugin for the rc control app (MCRC) I am working on, the code for the plugin is a bit butchered as its my first attempt at a plugin.
    The plugin appears to work perfectly within the plugin tester environment, with the roll, pitch and yaw data streamed quickly and reliably however when I run the plugin within simtools3 I experience a few problems:

    The simulator is quite slow to respond to the data coming from the main app (that or the data is processed slowly) and the UDP data often drops, here is a log extract of the UDP data being dropped:
    Information - 26/11/2024 : Received data: -38.740000,-2.440000,-2.260000 Information - 26/11/2024 : Parsed Yaw: -39, Roll: -2, Pitch: -2 Critical - 26/11/2024 : Error converting data parts to Double: Thread was being aborted.
    This error results in the simulator getting caugh in a short cycle of motion outputs which go on until I close the MCRC app.

    Please let me know if I should have posted this message somewhere else in the forum, I keen to get this working so any feedback or help would be appreciated.
    Attached is the main code for the plugin.

    Thanks,

    Attached Files: