Loading lua C dll?

Discussion in 'Utilities and programming' started by PEZZALUCIFER, Oct 18, 2022.

  1. PEZZALUCIFER

    PEZZALUCIFER
    Expand Collapse

    Joined:
    Jan 19, 2020
    Messages:
    11
    HI!
    I'm getting Sandbox: ffi.load denied when calling package.loadlib

    Should this work??

    I want to add some head tracking functionality and I want to add an alternate motion sim protocol that uses shared memory.

    I need to be able to call my functions directly so I can sync head tracking with an external process.

    Thanks.
     
  2. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    Our game is sandboxed for security reasons, so this will not be possible in a proper way, sorry
     
  3. PEZZALUCIFER

    PEZZALUCIFER
    Expand Collapse

    Joined:
    Jan 19, 2020
    Messages:
    11
    Thanks for letting me know, I will work around it :)
     
  4. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    If you find a workaround to load a C dll, let us know so we can fix the security issue :D
     
    • Agree Agree x 1
  5. PEZZALUCIFER

    PEZZALUCIFER
    Expand Collapse

    Joined:
    Jan 19, 2020
    Messages:
    11
    The workaround would probably be some function hooking, I don't want to step on any toes :)

    I notice you have a different branch BeamNG.tech, does that provide any sort of functionality that would allow me to call functions from an external dll?

    This project will be open source once I get it working with BeamNG.

    It already works with shipped Unreal and Unity games but BeamNG is the reason it exists at all so I will absolutely get it to work one way or another.

    Can I PM you a demo video?

    Maybe you will want to support it in a more native way for a better experience.

    Cheers.
     
  6. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    Sure, lets move it to PM :)
     
  7. PEZZALUCIFER

    PEZZALUCIFER
    Expand Collapse

    Joined:
    Jan 19, 2020
    Messages:
    11
    PM Sent

    Cheers.
     
  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