Whenever a new update of Game Guru comes out, sometimes there are updates to the existing scripts (player controls, global.lua and the AI ones mostly). When you get these updates from Steam they will overwrite the scripts and you will lose any changes you might have made with them.
What I do is I make a back up folder that has the originally scripts in them and another folder within that has all my modified versions of those same scripts.
Quote: "if common, is it possible to create a child script with unique edits and a call to the original? Something like gameplayercontrol-child.lua, set a flag in another file to use the -child version, then add an include call at the top of gameplayercontrol-child.lua; thus preserving unique settings while ensuring engine-necessary files are updating promptly."
I noticed some include scripts are being used now for parts of character AI. The scripts seem to borrow from each other. But that's mostly to ease up the work load of editing many scripts for small changes related to AI.
While I'm no expert, any modifications engraved inside of the player controls would be hard to isolate from the rest of the code. So I don't know if an include would work in that manner. I see there is a third person player folder and script? Wondering if there were plans to isolate all third person functions off?
AI: Biter Behavior Example:
-- AI : Biter Behavior
module_combatmelee = require "scriptbank\\ai\\module_combatmelee"
function ai_meleebiter_init(e)
module_combatmelee.init(e,ai_combattype_freezermelee)
end
function ai_meleebiter_main(e)
module_combatmelee.main(e,ai_combattype_freezermelee,ai_movetype_useanim)
end