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

Beamng with BeamNgpy server is not working with Simtools plugin

Discussion in 'Other Racing Games' started by Badrick, Apr 10, 2025 at 15:20.

  1. Badrick

    Badrick New Member

    Joined:
    Apr 3, 2025
    Messages:
    2
    Balance:
    17Coins
    Ratings:
    +0 / 0 / -0
    Dear Developer community!

    First of all thank you for your effort with these plugins.

    The latest plugin is working without an issue with my BeamNG if I start with the Launcher, but I started a project myself which is required a BeamNGpy to control the main sw from outside.

    For this the Python coltroller start the game with this command line:
    BeamNG.drive.x64.exe -nosteam -console -tcom-listen-ip 127.0.0.1 -lua extensions.load('tech/techCore');tech_techCore.openServer(64256) -userpath C:\Users\bosch\AppData\Local\BeamNG.drive

    I'm starting the Beam like suggested in the official document:

    beamng = BeamNGpy("localhost", 64256, home="\BeamNG.drive.v0.34\game")
    beamng.open()

    And if I would like to use my SimTools I've got this error message:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.ComponentModel.Win32Exception (0x80004005): A 32 bit processes cannot access modules of a 64 bit process.
    at System.Diagnostics.NtProcessManager.GetModuleInfos(Int32 processId, Boolean firstModuleOnly)
    at System.Diagnostics.ProcessManager.GetModuleInfos(Int32 processId)
    at System.Diagnostics.Process.get_Modules()
    at SimTools_GameManager.frm_GameManager.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)


    It is the same issue appear if I just doubleclick to BeamNG.drive.x64.exe in Bin folder. But everything is working as expected with the Launcher.

    It would be really any case of help :)

    Thank you!
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,465
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    150,429Coins
    Ratings:
    +11,004 / 55 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    @yobuddy can likely advise, when he has a spare moment.
  3. Badrick

    Badrick New Member

    Joined:
    Apr 3, 2025
    Messages:
    2
    Balance:
    17Coins
    Ratings:
    +0 / 0 / -0
    Thank you! :) Looking forward to it.
  4. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,368
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    50,195Coins
    Ratings:
    +5,145 / 18 / -0
    Hi @Badrick,
    BeamNG sends its data over UDP. It's like Live for Speed where it actually sends its motion data to 4123 and its dash data to 4124 (How its setup in v3 plugin anyway) It looks like your starting the game up with a different port is all - 64256. Now this should not cause the error you show above (simply missing data as its going somewhere else)

    I'm not sure what is trying to connect to the games 64bit module, as the game simply sends data over udp and the output is caught by the game plugin. There is no direct access of the games modules here.

    Looks like your using SimTools v2, I suggest you give SimTools v3 a shot. As I don't have the source code for the BeamNG v2 plugin, so I can't say for sure how its currently working. But I see no reason you should get these problems with the v3 build of the plugin.

    To be honest, I'm not sure what exactly your doing with python here. But it may be worth seeing if python is running in 32bit or 64bit mode. As it sounds like its directly interacting with the game. If your using the 32bit version, it could cause this error. (A 32 bit processes cannot access modules of a 64 bit process.)
    Please let me know how it goes,
    yobuddy
    • Informative Informative x 1