GodotModding / GodotModding/godot-mod-loader

_ModLoaderModHookPreProcessor added a semicolon instead of a comma, resulting in a crash

Open
#596 0 comments 0 reactions 0 assignees View on GitHub
4.x bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.