I'm running my modified version through LuaJIT-2.1 (I like to do it myself if people say it is simple enough )) ), but I'm getting a not-compatible error.Smaug wrote: ↑Sat Aug 10, 2024 5:34 pmLua editing is as easy as xml tho, the only difference is the bytecode now.ign1z wrote: ↑Sat Aug 10, 2024 1:37 pm[remembered it now, it was XMLs not LUAs]
on the previous game, i could edited the XML of kingdrom rush vengeance, the XML code is visible and editable so that we can change the tower skill cooldown, hero skil cooldown, tower / hero damage, etc ...
but in this version, as you mentioned, it is using LUA and its uneditable ...
would you care to teach us on how the converting of the byte lua code to be readable one and then back to byte version, to be able to be inserted in the exe(zip) again ?
You can use a luajit decompiler to get most of the luas sourcecode.
Stuff like tower strength, hero stuff etc. was inside kr5\balance\balance.lua if I'm not mistaken.
And yes, if you have the plaintext sourcecode luas and there wasn't any decomp. error, you can just put them inside the .exe and replace the existing file and it should work, without being bytecode. And if it somehow needs to be bytecode, for whatever reason, you would have to run the file through LuaJIT-2.0.4 to generate bytecode again.
I used "-bgd" as the command for bytecode generation. Any advice would be very helpful.