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

Help changing xsim output to simtools (arduino)

Discussion in 'SimTools DIY Version' started by Mr ed, Nov 9, 2013.

  1. Mr ed

    Mr ed New Member

    Joined:
    Apr 26, 2012
    Messages:
    15
    Location:
    Australia
    Balance:
    55Coins
    Ratings:
    +1 / 0 / -0
    Hi guys,

    I was after some help getting simtools to connect with my Arduino :S

    The USO output in xsim looks like this:

    sim start: ~171~R~1~~1~~187~
    Axis info: ~171~G~2~~a01~~a02~~187~
    Sim end: ~171~R~1~~0~~187~

    I'm not to sure what to change this to in simtools..

    Thanks
    Jason
  2. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,199Coins
    Ratings:
    +5,093 / 18 / -0
    We use angle brackets the rater than the tilde key.
    Any number in the angle bracket from <0> to <255> gets replaced with the ascii value.
    So your output would be as follows,

    Sim start: <171>R<1><1><187>
    Axis info: <171>G<2><Axis1><Axis2><187>
    Sim end: <171>R<1><0><187>

    yobuddy
  3. Mr ed

    Mr ed New Member

    Joined:
    Apr 26, 2012
    Messages:
    15
    Location:
    Australia
    Balance:
    55Coins
    Ratings:
    +1 / 0 / -0
    Thanks yobuddy, we have connection!
  4. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,199Coins
    Ratings:
    +5,093 / 18 / -0
  5. Mr ed

    Mr ed New Member

    Joined:
    Apr 26, 2012
    Messages:
    15
    Location:
    Australia
    Balance:
    55Coins
    Ratings:
    +1 / 0 / -0
    Hmm i get an error when i open rfactor..

    Microsoft.NET Framework

    Unhandled exception has occurred in your application. If you click Continue . the application will ignore this error and attempt to continue. If you click quit, the application will close immediatly.

    Object referance not set to an instance of an object.

    There is more details under it if you want them.. any ideas?
  6. Mr ed

    Mr ed New Member

    Joined:
    Apr 26, 2012
    Messages:
    15
    Location:
    Australia
    Balance:
    55Coins
    Ratings:
    +1 / 0 / -0
    This was in the message details:

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
    at rFactor_Plugin.Plugin.ShutDownCommands()
    at SimTools_GameManager.Mod_Lib.GameStoped()
    at SimTools_GameManager.frmMain.tmr_IsGameRunning_Tick(Object sender, EventArgs e)
    at System.Windows.Forms.Timer.OnTick(EventArgs e)
    at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  7. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,199Coins
    Ratings:
    +5,093 / 18 / -0
    looks like a possible plugin problem, but why you get this problem and no one else is reporting it seems strange.
    Have you tried any other games?
  8. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,431Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Bugger I use rfactor online , Have not seen that one.
    Is it the latest patch on rfactor could be the issue or maybe a custom plugin affecting simtools plugin.
    I would make sure Rfactor is up to date and just as a test remove any other custom plugin and test, if good add the plugins back one at a time till you find the one that upsets SimTools.
    • Like Like x 2
  9. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,750Coins
    Ratings:
    +3,322 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    As @eaorobbie says: try to remove all the other plugins from the rFactor plugin folder and see if it works.
    • Like Like x 1
  10. Mr ed

    Mr ed New Member

    Joined:
    Apr 26, 2012
    Messages:
    15
    Location:
    Australia
    Balance:
    55Coins
    Ratings:
    +1 / 0 / -0
    Righto i'll give it a go, i tryed rfactor 2 and no errors
  11. Mr ed

    Mr ed New Member

    Joined:
    Apr 26, 2012
    Messages:
    15
    Location:
    Australia
    Balance:
    55Coins
    Ratings:
    +1 / 0 / -0
    yesterday i tryed a few times and got this error every time, today i took out xsimplugin.dll and tryed it, no error, put it back in, no error.. weird, but it seem to be fine now :S

    1 more question, i havn't been able to find an axis offset adjustment anywhere in the software or the documentation, does it have it anywhere?? or can i somehow put an offset in the output setup? possibly something like <Axis1+200> or something like that?

    Edit: another question :) is it better to run 1 or 2 computers? I remember reading on xsim that it was supposedly not possible to not have a delay using only 1 computer,(for reasons i don't understand) i tested it and there was a delay with 1 computer and none with 2. Is it the same for simtools or is 1 computer fine?
  12. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,613Coins
    Ratings:
    +1,835 / 32 / -1
    Currently there is not an axis offset slider or a way to adjust your center position with SimTools. However, it is already in the works for inclusion in a future release of SimTools. I can't say whether or not it will be in the next release however.

    SimTools has been optimized for use on one computer. If you wish, you can use a secondary computer to run the game engine on. I am not able to tell you though, if there is any advantage to running on a dual computer system.
  13. value1

    value1 Nerd SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Jan 9, 2011
    Messages:
    2,184
    Location:
    Zug, Switzerland
    Balance:
    14,750Coins
    Ratings:
    +3,322 / 11 / -1
    My Motion Simulator:
    2DOF, DC motor, JRK, Joyrider
    With today's processing power 1 computer is fine.
    For usability reasons I run a dual-PC setup for my sim. I can run the games in full (tripple) screen on one PC and fiddle with the GameEngine or with the JRK's on the other PC – which I personally find quite convenient.
    Functionallity-wise there's no fundamental difference.
    • Like Like x 2
    • Agree Agree x 1
    • Informative Informative x 1
  14. gigi

    gigi Active Member

    Joined:
    Nov 16, 2013
    Messages:
    466
    Balance:
    905Coins
    Ratings:
    +139 / 1 / -0
    My Motion Simulator:
    2DOF, JRK, 4DOF
    Hallo I have a similar problem

    Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra
    sono riportate in fondo al messaggio.

    ************** Testo dell'eccezione **************
    System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.
    in SimTools_GameManager.Mod_GameProfileLoader.GameProfileChanged()
    in SimTools_GameManager.frmMain.cb_GameSelection_SelectedIndexChanged(Object sender, EventArgs e)
    in System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
    in System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
    in SimTools_GameManager.frmMain.frmMain_Load(Object sender, EventArgs e)
    in System.EventHandler.Invoke(Object sender, EventArgs e)
    in System.Windows.Forms.Form.OnLoad(EventArgs e)
    in System.Windows.Forms.Form.OnCreateControl()
    in System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    in System.Windows.Forms.Control.CreateControl()
    in System.Windows.Forms.Control.WmShowWindow(Message& m)
    in System.Windows.Forms.Control.WndProc(Message& m)
    in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    in System.Windows.Forms.ContainerControl.WndProc(Message& m)
    in System.Windows.Forms.Form.WmShowWindow(Message& m)
    in System.Windows.Forms.Form.WndProc(Message& m)
    in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Assembly caricati **************
    mscorlib
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    SimTools_GameManager
    Versione assembly: 0.1.2.0
    Versione Win32: 0.1.2.0
    Base di codice: file:///C:/Program%20Files%20(x86)/SimTools/SimTools_GameManager.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Versione assembly: 10.0.0.0
    Versione Win32: 11.0.50709.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Windows.Forms
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.34251 built by: FX452RTMGDR
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    System.Configuration
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    PluginAPI
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Program%20Files%20(x86)/SimTools/PluginAPI.DLL
    ----------------------------------------
    AssettoCorsaEA_Plugin
    Versione assembly: 3.0.6.0
    Versione Win32: 3.0.6.0
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/AssettoCorsaEA_Plugin.dll
    ----------------------------------------
    DIRT2_Plugin
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/DIRT2_Plugin.dll
    ----------------------------------------
    DirtRally_Plugin
    Versione assembly: 1.0.4.0
    Versione Win32: 1.0.4.0
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/DirtRally_Plugin.dll
    ----------------------------------------
    GRID2_Plugin
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/GRID2_Plugin.dll
    ----------------------------------------
    GTLegends_Plugin
    Versione assembly: 3.0.0.1
    Versione Win32: 3.0.0.1
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/GTLegends_Plugin.dll
    ----------------------------------------
    GTR2_Plugin
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/GTR2_Plugin.dll
    ----------------------------------------
    GTR_Plugin
    Versione assembly: 3.0.0.1
    Versione Win32: 3.0.0.1
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/GTR_Plugin.dll
    ----------------------------------------
    iRacing_Plugin
    Versione assembly: 3.0.3.0
    Versione Win32: 3.0.3.0
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/iRacing_Plugin.dll
    ----------------------------------------
    LiveForSpeed_Plugin
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/LiveForSpeed_Plugin.dll
    ----------------------------------------
    rFactor2_Plugin
    Versione assembly: 3.0.6.0
    Versione Win32: 3.0.6
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/rFactor2_Plugin.dll
    ----------------------------------------
    rFactor_Plugin
    Versione assembly: 3.0.4.0
    Versione Win32: 3.0.4.0
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/rFactor_Plugin.dll
    ----------------------------------------
    RichardBurnsRally_Plugin
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/RichardBurnsRally_Plugin.dll
    ----------------------------------------
    WRC4_Plugin
    Versione assembly: 1.0.0.0
    Versione Win32: 1.0.0.0
    Base di codice: file:///C:/Users/gigi/AppData/Local/SimTools/GamePlugins/WRC4_Plugin.dll
    ----------------------------------------
    mscorlib.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
    ----------------------------------------
    System.Windows.Forms.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.0.30319.17929 built by: FX45RTMREL
    Base di codice: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
    ----------------------------------------

    ************** Debug JIT **************
    Per abilitare il debug JIT, è necessario impostare il valore
    jitDebugging nella sezione system.windows.forms del file di configurazione
    dell'applicazione o del computer (machine.config).
    L'applicazione inoltre deve essere compilata con il debug
    abilitato.

    Ad esempio:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    Quando il debug JIT è abilitato, tutte le eccezioni non gestite
    vengono inviate al debugger JIT registrato nel computer,
    anziché essere gestite da questa finestra di dialogo.