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 1.0 - API documentation

Discussion in 'SimTools Plugins' started by yobuddy, Aug 6, 2013.

  1. sanny

    sanny New Member

    Joined:
    Nov 4, 2015
    Messages:
    3
    Location:
    Slovenia; Switzerland
    Balance:
    166Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    6DOF
    Not Sure if you already solved the issue, but I got the same error if I forgot to build the application before compiling it (Build->Build Solution).
  2. PaulMac000

    PaulMac000 Member

    Joined:
    May 25, 2016
    Messages:
    31
    Balance:
    26Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Motion platform
    Ha! Thank you! That helped me a lot. I knew there was something wrong when it kept debugging and none of the files were been updated.

    Kudos.
  3. chu

    chu 2dof racingseat

    Joined:
    Dec 2, 2015
    Messages:
    149
    Occupation:
    tecnician
    Location:
    VITORIA
    Balance:
    937Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    How could I know if a game use the telemetry needed to do a new plugin?(I would like to try with Midnight club racing II)
  4. Chriss

    Chriss IntMech

    Joined:
    May 7, 2016
    Messages:
    35
    Location:
    Bolivia
    Balance:
    86Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, 4DOF
    Hi all, I see that many want compatibility with FPS games, these games do not have telemetry rotation, only have positions x, y, z, if you want to develop plugins for FPS, I advise, find a way to extract information rotation of the bones, by the vast majority of the games are 2 essential bones, the base point and the hip, if you want to make a simulator for these games, use one of these bones to extract the telemetry, the best way would be to use the two hip to the rotation and the base point for the movement.

    I hope you serve my answer ...
  5. PaulMac000

    PaulMac000 Member

    Joined:
    May 25, 2016
    Messages:
    31
    Balance:
    26Coins
    Ratings:
    +10 / 0 / -0
    My Motion Simulator:
    Motion platform
    Further to that point, there is a cheat engine tutorial on youtube where he extracts the x,y,z positions of the main character:

    • Like Like x 1
    • Informative Informative x 1
  6. shannonb1

    shannonb1 Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    1,107
    Occupation:
    Sales Intelligence
    Location:
    Virginia
    Balance:
    8,909Coins
    Ratings:
    +598 / 5 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, JRK, 4DOF
    Here are my errors....help please?
    Code:
    Severity    Code    Description    Project    File    Line    Column    Suppression State
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.GameEnd()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.GameName'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash10_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash11_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash12_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash13_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash14_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash15_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash16_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash17_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash18_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash19_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash1_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash20_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash2_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash3_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash4_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash5_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash6_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash7_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash8_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
    Error    CS0535    'GamePlugin' does not implement interface member 'IPlugin_Game.Get_Dash9_Output()'    iRacing_GamePlugin    C:\Users\Shannon\Desktop\iracing export\iRacing_GamePlugin\GamePlugin.cs    19    29    Active
  7. shannonb1

    shannonb1 Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    1,107
    Occupation:
    Sales Intelligence
    Location:
    Virginia
    Balance:
    8,909Coins
    Ratings:
    +598 / 5 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, JRK, 4DOF
    am I able to decompile a dll and make changes then recompile?
  8. vthinsel

    vthinsel Well-Known Member

    Joined:
    Feb 20, 2015
    Messages:
    439
    Location:
    FRANCE
    Balance:
    6,010Coins
    Ratings:
    +564 / 2 / -0
    My Motion Simulator:
    Arduino, 4DOF
    • Useful Useful x 1
  9. kpocc

    kpocc New Member

    Joined:
    Apr 23, 2016
    Messages:
    3
    Location:
    Ukraine
    Balance:
    149Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hi!Where i can see Memory hook adress in my game?
  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,032
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,890Coins
    Ratings:
    +10,880 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  11. AlexinChina

    AlexinChina Member

    Joined:
    Sep 2, 2015
    Messages:
    71
    Location:
    China
    Balance:
    371Coins
    Ratings:
    +8 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Do you sucess? Can u help me ?I really want to make a plugin for mxgp2.
    https://www.xsimulator.net/communit...er-simulation-plugin.4777/page-23#post-111119
    If u can't see my picture, like this? upload_2016-7-29_8-21-12.png
  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
    Hi @AlexinChina
    I mean, feel free to develop a memory hoock plugin for NLS.
    However just to mention: The NLS plugin already provides surge, sway, heave acceleration, pitch, roll and yaw.
    Also NLS provides a proper API (application programming interface) which is documented in the Help file of NLS
    NLS Telemetry Server (API).png
  13. shannonb1

    shannonb1 Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    1,107
    Occupation:
    Sales Intelligence
    Location:
    Virginia
    Balance:
    8,909Coins
    Ratings:
    +598 / 5 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, JRK, 4DOF
  14. AlexinChina

    AlexinChina Member

    Joined:
    Sep 2, 2015
    Messages:
    71
    Location:
    China
    Balance:
    371Coins
    Ratings:
    +8 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    If u can't teach me how to make it ,Can you give me the code of plugin for this game? I think it will help me also.
  15. Claudio Bello

    Claudio Bello Member

    Joined:
    Jul 30, 2016
    Messages:
    50
    Location:
    Brasil
    Balance:
    273Coins
    Ratings:
    +17 / 0 / -0
    My Motion Simulator:
    2DOF
    as I do a sonic plugin all star racing I already have some telemetry data grateful pointer ....
  16. Lodewijk

    Lodewijk Member

    Joined:
    Feb 25, 2012
    Messages:
    32
    Occupation:
    Engineer
    Location:
    South Africa
    Balance:
    597Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    4DOF
    @yobuddy, great writeup!

    Can anybody enlighten me as to which example to study for il2 cliffs of dover, do I look at:

    1) UDP Packets,
    2) Memory Mapped Files
    3) Memory Hooks or
    4) DDL?
  17. Sarge

    Sarge Active Member Gold Contributor

    Joined:
    Aug 11, 2016
    Messages:
    117
    Balance:
    - 181Coins
    Ratings:
    +64 / 0 / -0
    Hello,

    I'm trying to create a plugin for F1 2016, but while trying to patch, I am getting this error;
    Capture.JPG

    The game is installed, and I am attempting to change the LFS plugin. Being a Codemasters game, I would need to patch the F1 2016 folder in my documents, but no matter what I seem to type in the validation string, I cannot get it to patch. The plugin is nowhere near done, I was just testing to see if I could actually work out how to make Simtools create the patch in the correct location.

    Go easy on me as I am trying to learn :)

    Cheers for any help.
  18. Daguru

    Daguru Rally drivers do it in the Dirt

    Joined:
    Sep 4, 2013
    Messages:
    719
    Occupation:
    Kitchen installer
    Location:
    Wales uk
    Balance:
    453Coins
    Ratings:
    +632 / 1 / -0
    My Motion Simulator:
    Motion platform
    Hi I'm just starting to learn about plugins myself my best guess is there's something that still points the LFS left in the plugin you have made so it thinks it's not installed ( just a guess I'm new too lol)
  19. Sarge

    Sarge Active Member Gold Contributor

    Joined:
    Aug 11, 2016
    Messages:
    117
    Balance:
    - 181Coins
    Ratings:
    +64 / 0 / -0
    Hi Daguru,

    I thought that too, but can't seem to see anything. It would be handy to know the procedure with Codemasters games, as you are not pointing directly at the .exe

    Thanks for the advice though :)
  20. Rudolf Jan Horak

    Rudolf Jan Horak Member

    Joined:
    Jan 26, 2016
    Messages:
    52
    Occupation:
    Simulator Maintenance Student
    Location:
    Devils Lake, ND
    Balance:
    274Coins
    Ratings:
    +9 / 1 / -0
    My Motion Simulator:
    Motion platform
    This is awesome! I had no idea that you can write your own. This may be worth a try. Thanks for the great tutorial
    • Like Like x 1