Small mod + tool allowing to execute your Lua commands in game "on fly". Could be interesting for modders.
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features so long as you credit me as the original creator
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission as long as you credit me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou must get permission to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
This mod is not opted-in to receive Donation Points
Donations
No donations accepted
This is a small mod + tool, that allows you to inject your custom Lua commands into the game. NOTE! Uses modified Scripts\Entities\actor\player.lua, so be advice.
Install: Unpack to Mods folder. Uninstall: Delete Mods\Aesma_Lua_Injector folder.
What it does: On save game load it starts Timer with period of 1 sec. Timer reads aesma_cmd.txt file for any code. If file not exist or empty its continues to next iteration. When code is present mod tries to execute it using pcall and assert(loadstring(your_code)), and prints result of a try to aesma_log.txt. After try (no matter if its succeed or not) file aesma_cmd.txt is cleared to pervent cycle execution.
You can use it two ways: Editing aesma_cmd.txt by yourself or use KCD Lua Injector.exe
My function: Aesma.Log(text) - prints text to aesma_log.txt file; Aesma.ReadCommand() - reads aesma_cmd.txt for code. Aesma.ClearCommand() - clears aesma_cmd.txt. Aesma:ExecuteCommand(command) - executes command loaded from aesma_cmd.txt. Aesma:OnTimer() - timer function. Aesma.TimerId - timer identificator. Aesma.TimerState - boolean that disables timer function.