KnightHawk75 -> RE: Canary's Cage: LUA_ScenEdit_AssignUnitToMission throws exception (3/23/2021 9:11:57 PM)
|
Issue is it's using "Wander" as a mission name and said mission does not exist on the side the unit is a member of. Line 61 ScenEdit_AssignUnitToMission(unit.name, 'Wander') Either the mission need to be created first in the script (or put in the scene ahead of time), or this line removed. Also Line 220 is missing Civilian side in quotes, this will also generate unnoticed errors, though it looks like it doesn't create any downstream issues. Interim fix, either comment out lines 61 (or add the mission), and add quotes around "Civilian" in 220, run ScenEdit_ClearKeyValue('firstLoad'), save, reload\replay. Attached a modded version (saved and tested under 1147.16) for those that don't know how to do that (added a generic SCP mission to cover the bounded zone the bio's get created in, seems to work as intended). The only negative of playing unchanged besides all the pop-up error messages, is the bio contacts that get randomly generated don't move around from where they are generated, so the scenario is likely easier from an underwater contact perspective.
|
|
|
|