Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
38 views

NLua calling non existant function

I am currently adding lua support to my game written in c# using lua. Before calling a function in lua that can be there but doesn't have to be, it will check if the function exists in the script ...
Blakie's user avatar
  • 1
0 votes
1 answer
1k views

Lua redis() command arguments must be strings or integers - however the same command works at redis-cli prompt

There is a command, which works perfectly at my Redis Azure Cache "redis-cli" prompt (an Enterprise E10 instance with the TimeSeries module enabled): EVAL "redis.call('TS.ADD', KEYS[1], ...
Alexander Farber's user avatar
0 votes
0 answers
60 views

How register and use methods from C# in Lua

At the moment I am working as a Lua scripter while doing C#, there is some need to implement my functionality in C# and connect it to Lua. The best way is to include ".dll" file in Lua ...
Kurumi's user avatar
  • 1
1 vote
0 answers
75 views

How to save changes of lua-file with NLua

I have a very large lua file, that contains data I want to manipulate. Then I want to save it back to a new lua file. I am using NLua to read out the structure and change information. However, I did ...
Malior's user avatar
  • 1,301
0 votes
0 answers
173 views

How do I get a list of syntax errors from a Lua script using MoonSharp

I am trying to get a list of all the syntax errors in a Lua script, using MoonSharp. I have the following code, where the variable code is the Lua script: try { Script.RunString(code); return &...
EchoDevG's user avatar
0 votes
1 answer
355 views

Can I write to a file through the Logitech Lua api?

The reason I want to do this is because I am trying to light a single key through a script. I want to invoke the script through Logitech lua api. the functionality will act as a feedback response. fx ...
Noddy's user avatar
  • 5
-2 votes
1 answer
89 views

(sorry this is closed) Can someone help me to save script or open into/from Monaco api? C#

Need to help, How to Save/Open file from/to Monaco Highlighting Syntax Lua ? Also, locally saved script(I don't need the refresh button) I have project at my Form executor Roblox :/ No, i didn't do ...
user20853472's user avatar
0 votes
1 answer
345 views

Link all DLLs in a folder with Premake5

I'm moving some Unity code into a VS2022 project to use a plugin. Since this code references many different Unity classes I need to link in the Unity's DLLs in my Unity install. This is all fine and ...
Robert Hull's user avatar
0 votes
2 answers
141 views

read & overwrite a variable value from a Lua 5.2 file with C#

I have Lua scripts, that uses variables such as: VERSION_LOCALE = "1.0" MAX_MONSTERS = 5 FORBIDDEN_MONSTERS = {2827} I would like to make the variables externally configurable using a ...
LearningHow2Code's user avatar
2 votes
0 answers
682 views

Bad binary format when loading Lua bytecode

Using C# and NLua, I am trying to convert Lua functions into bytecode so that I can store it and execute it later. I've written a small test shown below to see if I could get the basic dump and ...
Blavius's user avatar
  • 121
0 votes
1 answer
530 views

Is there any way of integrating NLua in Unity?

Recently I was interested in making Lua support inside of Unity. For that you have the bindings NLua and KeraLua. My problem is that I tried adding the dll files to Assets\Plugins manually. This ...
devi's user avatar
  • 43
0 votes
0 answers
169 views

Nlua:How to release the C# class instantiated in the Lua script?

The Lua script is over, but the C# class instantiated in the lua script has not been released, it is still running, how do I release the corresponding resources? I want to call C# resources through ...
ambit's user avatar
  • 1
0 votes
1 answer
207 views

Redis replica can not perform HGETALL or Lua script

I am using C# and Redis (local docker image and azure reids) and want to perform "HGETALL" and lua scripts on the replica instance, but that does not work. As this commands are read only, I ...
Michael Eckhart-Wöllkart's user avatar
1 vote
0 answers
196 views

64-bit Integer Comparison in Lua on Redis

My goal is to store a C# object in a Redis Hash. One of the fields is a DateTime as Ticks (long aka 64bit int). I was hoping to use a Lua script to do a conditional update only if the ...
Bryan Lewis's user avatar
  • 5,867
-3 votes
1 answer
302 views

RegEx to convert files from LUA to JSON [closed]

There we go again. RegEx. The most mysterious thing on this planet. I have lots of LUA tables as .lua files local tbl = { SomeObject = { Key = "Value", AnotherKey = { ...
frenkey's user avatar
  • 17

15 30 50 per page
1
2 3 4 5
20