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 ?
Lua editing is as easy as xml tho, the only difference is the bytecode now.
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'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.
I used "-bgd" as the command for bytecode generation. Any advice would be very helpful.
I have no luck, so none of your suggest can be fulfill
Table sharing 2 will be my last update for this game until I learn more about reverse engine
You could just straight up use lua in CE, because it's a love2d game, which is made using lua.
Hook a lua function, patch your own code in and rdy to take off.
You can extract the executable file (Kingdom Rush Alliance.exe) with 7zip to get the assets and lua files, then convert the lua files to actual lua code, because they are converted to bytecode with LuaJIT 2.0.4
And with lua code, you can also look at the games logic or parts you want to modify, so you don't have to boot up any decompiler and reverse the game.
Alternatively, open the "Kingdom Rush Alliance.exe" with 7zip, replace the version.lua with the one I have attached and play the game in debug mode.
Debug menu key is F12, which lists all other keys and their functionality.
For most people, these should be enough: l/L = +/- lives m/M = +/- gold z/Z = +/- speed
In Debug mode, heroes can be levelled in the hero selection menu, so you can max them out pretty easily.
And you can start the stage with auto-upgrade in Debug mode, so you'll have all tower upgrades available.
With unlimited gold and speedup, you can clear stages in a few seconds.
Password: fearless
Hello, how do I enable the debug menu in kingdom rush vengeance?