Titi
Titi
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
someone suggested hardcoding the row names that contain the variables, prob the easiest way
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
I was simply looking for some very simple data edition like quickly changing a color or string name, I'll probably just try some plain text/regex implementation or give up, thanks for the help
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
well more like it's local changes that don't affect others
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
it's single player on my pc
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
it's a modding tool
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
trying to modify game data from my GUI
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
a game interface file
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
and then same for writting, input variable name and value
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
is this really alien
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
This is gonna be a lot ahrder than expected 😄 I simply wanted a library that would do something like lueafile = lua.readfile("filepath"); string luavariable = lueafile.getdatafromvariable(variablename = "LUA_STRING_VARIABLE");
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
can I import this to my WPF app ?
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
My GUI is pulling a data from a lot of different components, I need all in one
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
okay
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
do you know any solution for this ?
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
yeah parsing was only the first step to get it loaded to my GUI
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
I'll eventually have to do the same with XML and CPP files, I wanna edit some source files "programaticaly"
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
really ? It's basically like parsing json but lua format, is what I'm doing really that rare
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
I've tried using some of the Nlua functions but they don't return anything and are completely incomprehensible using (Lua lua = new Lua()) { bool filexists = File.Exists(extracted_filepath); // check if file exists LuaFunction loadedfile = lua.LoadFile(extracted_filepath); var outputstr = loadedfile.ToString(); var objects = lua.DoFile(extracted_filepath); var callresult = loadedfile.Call(objects); }
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
if that makes sense For example the Lua file has a variable LUA_STRING_VARIABLE = "bear" I want to be able to load and edit the file in my app to be able to change it to LUA_STRING_VARIABLE = "whale" by loading the value to a textbox in my GUI app
85 replies
CC#
Created by Titi on 1/22/2023 in #help
Parsing Lua files
So I have .lua files, I simply want to be able to retrieve and edit the values in the Lua variables to edit them from a C# Gui application
85 replies