GodotModding / GodotModding/godot-mod-loader
_ModLoaderModHookPreProcessor added a semicolon instead of a comma, resulting in a crash
- Dominant language
- GDScript
- Stars
- 675
- Forks
- 54
- Avg merge
- 2m
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.