Giving toolkits to faction mechanics now unlocks the toolkit on Warfare faction workbenches!
v0.2 -- use at your own risk, etc, etc.
Requires Warfare ALife Overhaul.
Workbenches that have dead story NPCs (e.g. Mangun, Limpid) that are replaced by Warfare NPCs now have the toolkits unlocked when you do their ALife Overhaul tasks!
See how it works with this cutting edge MS Paint diagram of log lines and screenshots:
Installation:
- Install as normal in Mod Manager 2, or your mod manager of choice.
Does not require a new save and does not change your savefile (so is safe to remove). Does not do anything special in non-Warfare modes. Does not overwrite any files, but will likely conflict if anything else adds workbench hooks (which isn't any that I can think of?).
Limitations:
- This doesn't include gunsmith or medic toolkits, although if you do the medic toolkit mission for the corresponding medic and the vanilla mechanic is still alive, the vanilla logic will still apply.
Credits:
Changelog:
- v0.2 (2021-08-05) - Fix Forester causing a CTD. Also, make it so that his name shows up on the vice. (Thanks Noxilian for the report!)
- v0.1 (2021-07-28) - Initial release
I do not know English, (Google translator) and do not understand what this addon does
creo entender que si el mecanico muere y es reemplazado por otro npc el npc de reemplazo(xd) mantendra los kit de herramientas que se le entregaron al anterior mecanico
eso es genial, gracias!
Got a crash when I try using the vice in the Forester's building.
! [SCRIPT ERROR]: ...omaly/bin/..\gamedata\scripts\zz_warfare_mech_fix.script:22: attempt to index a nil value
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...omaly/bin/..\gamedata\scripts\zz_warfare_mech_fix.script:22: attempt to index a nil value
stack trace:
Hi! Thanks for reporting this, I've gone and fixed it in v0.2, which is uploaded now.
I also threw in a little vanilla bugfix (I guess?) which means Forester's name shows up on his vice, rather than "nobody".
Thanks!
Just wanted to say that this is amazing work, great job. You made a really creative solution which can't have been easy to come up with.
And it seems to be working flawlessly, so thanks dude.
Thank you! And feel free to integrate it into your overhaul mod if you would like, not sure if you saw the PM about it :)