New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some error messages (including reaching game action and town noise limits) are not mapped to the Script API. #7801
Comments
glx22
added a commit
to glx22/OpenTTD
that referenced
this issue
Oct 25, 2019
Maybe something like that |
The error message "{TOWN} local authority refuses permission for airport due to noise concerns" appears to not be mapped. Found by testing with AI The correct error mapping should be either: |
James103
changed the title
Error messages for reaching landscaping/tree planting/tile clearing limits are not mapped to the Script API.
Some error messages (including reaching game action and town noise limits) are not mapped to the Script API.
Dec 8, 2019
glx22
added a commit
to glx22/OpenTTD
that referenced
this issue
Dec 8, 2019
LordAro
pushed a commit
that referenced
this issue
Dec 17, 2019
douiwby
pushed a commit
to douiwby/OpenTTD
that referenced
this issue
Apr 16, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of OpenTTD
As of 20191023-master-g0d1575b5c7
Expected result
The following error messages should be mapped to the corresponding values (subject to change):
ERR_LIMIT_REACHED
ERR_LIMIT_REACHED
ERR_LIMIT_REACHED
ERR_ALREADY_BUILT
Edit: update mappings from @glx22's commit.
When these error messages occur, the suggested action is to wait and retry, for example
ScriptController.Sleep(10); ScriptTile.PlantTree(tile)
.Actual result
The above error messages are not mapped.
Steps to reproduce
tree_per_64k_frames
andtree_frame_burst
below their defaults.Start()
(see below).ERR_UNKNOWN
to the log instead of for exampleERR_LIMIT_REACHED
orERR_ALREADY_BUILT
.The text was updated successfully, but these errors were encountered: