-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Placing track designs at locations blocked by anything results in wrong error message #15620
Comments
It used to say "Can't construct here, blocked by xyz"? |
@hjort96 Have a look at OpenRCT2/src/openrct2/world/ConstructionClearance.cpp Lines 279 to 344 in 30750b2
|
Can't construct here, is an error title. The rest of it is an error message. So the message is getting a bit messed up. This happens quite easily due to all the globals involved |
One of the reasons this is happening is becaue of this: OpenRCT2/src/openrct2/world/Map.cpp Line 790 in 86f9158
Basically anyone who calls map_is_location_owned overwrites the last set error text. |
Thanks @Broxzier! Seems like after #15815 was merged no error message was displayed, just the title. However, assigning gGameCommandErrorText = std::get<1>(res->ErrorMessage); after OpenRCT2/src/openrct2/ride/TrackDesign.cpp Lines 1685 to 1700 in 0e892e9
seems to give (some) correct error messages. |
@ZehMatt is doing a large refactor to track designs to fix the issue once and for all (and redesign some of the bad design). Just hold tight. |
- Improved: [OpenRCT2#12825, OpenRCT2#12869] The Tile Inspector window’s layout has been tweaked slightly. - Change: [OpenRCT2#15899] Weird bonus for path 0 - likely intended as a queue bonus (original bug). - Fix: [OpenRCT2#15138] Sometimes small scenery stays when building through it. - Fix: [OpenRCT2#15620] Placing track designs at locations blocked by anything results in wrong error message. - Fix: [OpenRCT2#15843] Tile Inspector can be resized too small. - Fix: [OpenRCT2#15844] Tile Inspector has inconsistent text colours. - Fix: [OpenRCT2#15878] Crash when opening a ride window for a corrupted vehicle. - Fix: [OpenRCT2#15908] Crash when track elements have no ride assigned. - Fix: [OpenRCT2#15919] Research status incorrectly considered for scenery when in editor modes. - Fix: [OpenRCT2#15938] Track designs of some ride types are incorrectly exported to TD6.
Operating System
OpenRCT2 build
OpenRCT v0.3.4.1
Describe the issue
Instead of saying "Can't construct here, blocked by xyz" it always says "Land not owned".
Looks like it was introduced in 0.3.4(.1)
Area(s) with issue?
No response
Steps to reproduce
Attachments
The text was updated successfully, but these errors were encountered: