Using ModLoaderMod.install_script_hooks(); Job and Big are custom classes in the base game
The original vanilla function (in editor):
func _get_job_output(job: Job, base_output: Big) -> Dictionary[StringName, Big]:
The re-written function (in mod-hooks.zip):
func vanilla_1619663361_get_job_output(job: Job, base_output: Big) -> Dictionary[StringName, Big]:
The new function at the bottom of the script (in mod-hooks.zip):
func get_job_output(job: Job, base_output: Big) -> Dictionary[StringName;Big]:
The semicolon results in the script being unable to parse, resulting in crash. I edited the semicolon into a comma and that allowed the game to run.
Using
ModLoaderMod.install_script_hooks(); Job and Big are custom classes in the base gameThe original vanilla function (in editor):
The re-written function (in mod-hooks.zip):
The new function at the bottom of the script (in mod-hooks.zip):
The semicolon results in the script being unable to parse, resulting in crash. I edited the semicolon into a comma and that allowed the game to run.