Solved LUA Sandbox Environment?

Discussion in 'Mod Support' started by Neo, Oct 13, 2021.

  1. Neo

    Neo
    Expand Collapse

    Joined:
    Oct 31, 2015
    Messages:
    252
    Hello guys,

    I have modified the mobile phone remote control script to be able to control a car via network. In one line you have to bind an address to the socket. According to the documentation it it possible to bind to all addresses "*". The original script does exactly that, but when I do that in my custom mod I get the following error message:
    image.png
    (the source code can be found in "lua/ge/extensions/core/remoteController.lua")
    That got me thinking about where the borders of the sandbox are. In the forum I just found this really vague description from tdev: https://www.beamng.com/threads/ui-apps-networking.43041/#post-648798

    What limitations I have to account for to be able to send and receive udp packages to and from another computer in the same network? Is there a way to bypass this particular security check with a start parameter?

    Kind regards
     
  2. angelo234

    angelo234
    Expand Collapse

    Joined:
    Aug 11, 2017
    Messages:
    271
    Take a look at the Github repo for the remote control app: https://github.com/BeamNG/remotecontrol

    Also this file looks like what you need to do to set up the socket: https://github.com/BeamNG/remotecon...evice/BeamNG.SteeringDevice/PSSearching.swift
     
  3. angelo234

    angelo234
    Expand Collapse

    Joined:
    Aug 11, 2017
    Messages:
    271
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice