• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Search results

  1. 2

    using global Variable in IF-THEN

    Then he should post the code that requires the code he posted.
  2. 2

    using global Variable in IF-THEN

    This is not the entire code, as return commandArray has to be inside a function.
  3. 2

    using global Variable in IF-THEN

    Can you post the full code please?
  4. 2

    Anbody experienced in programming an ST9100 dual mode sat+gsm IoT router in Lua?

    Sounds interesting! However, the ORBCOMM Software Toolkit, which includes sample code and documentation, is only available to customers. Therefore, it'll be hard to give any advice or direction. Anyways, if you run into some Lua-specific issues then I'm confident someone here will be able to...
  5. 2

    Anbody experienced in programming an ST9100 dual mode sat+gsm IoT router in Lua?

    Sure. What application are you building?
  6. 2

    Anbody experienced in programming an ST9100 dual mode sat+gsm IoT router in Lua?

    Unfortunately I don't have experience with ST9100, but I might be able to help if provided more details about the project (or difficulties).
  7. 2

    Simple image gallery

    Sounds like an interesting project! It definitely makes it easier that RutOS is a Linux-based operating system. Personally, I would start by downloading the RUT955 SDK (link) and look at existing RUT955 Lua scripts to see if I can find existing functionality to fill my needs. Files that may be...
  8. 2

    Lua ignoring float type

    What device are you using? Does it support floating point numbers?
  9. 2

    Getting a script parsing error but have my ends for {

    There should be a comma , after text = message. Please post the actual code, and not picture of the code next time.
  10. 2

    G-Series Script Problem After G Hub Update

    Did it work?
  11. 2

    How to configure LUA_INCDIR ?

    Great! What packages did you have to install to get it to work? Can you paste the error you're getting?
  12. 2

    How to configure LUA_INCDIR ?

    I'm on Debian, but maybe it's the same for you: LUA = "/usr/local/opt/lua/bin/lua5.3", LUA_BINDIR = "/usr/local/opt/lua/bin", LUA_INCDIR = "/usr/local/opt/lua/include", LUA_LIBDIR = "/usr/local/opt/lua/lib", or path with version number: LUA = "/usr/local/opt/lua53/bin/lua", LUA_BINDIR =...
  13. 2

    G-Series Script Problem After G Hub Update

    Are you getting any errors when it gets stuck? Is there any installation log file you can check? Did you try running G HUB with administrator rights? PUBG probably runs with administrator rights by default. If it does, the script won't have sufficient privileges to move the mouse inside PUBG...
  14. 2

    G-Series Script Problem After G Hub Update

    The easiest would probably be to uninstall G HUB and download an earlier version of G HUB.
  15. 2

    G-Series Script Problem After G Hub Update

    I meant the arg (equal to some number) in the log. It works correctly outside PUBG? In that case, run the script (G Hub) as an administrator if you're on Windows.
  16. 2

    G-Series Script Problem After G Hub Update

    What arg code do you get when you press the desired button and recoil should happen? Edit: Does pressing/releasing 'M' have something to do with recoil? Douile/logitech-toggle-keys
  17. 2

    G-Series Script Problem After G Hub Update

    The first line in the onEvent function is: OutputLogMessage("event = %s, arg = %d\n", event, arg) This line logs what the event and arg is. When you press the desired button, what does it log? Please add the entire log here.
  18. 2

    G-Series Script Problem After G Hub Update

    No, only math.pow should be changed to the ^ operator. It's hard to say why the script isn't working if there are no error messages.
  19. 2

    G-Series Script Problem After G Hub Update

    The last G HUB update upgraded to Lua 5.4. Lua's math.pow was deprecated as of Lua 5.3 Therefore, use Lua's built-in ^ exponentiation operator instead of the math.pow function. In other words, do this: return 0.002 * 10^(unconvertedSens / 50) Instead of this: return 0.002 * math.pow(10...
  20. 2

    Lua + Blockchain

    Any cool blockchain projects that uses Lua out there? I know Bitcoin has its own assembly-like script system (without loops etc.) because it's so critical. But I imagine other, less critical projects could use Lua, especially since many blockchain projects are written in C++. @Egor...
Top