-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Disable the warning about mapgen in reality bubble #55299
Disable the warning about mapgen in reality bubble #55299
Conversation
This warning message was helpful debugging some issues with the tests, but it is generating a lot of warnings for players and there's really no simple fix for them, so disable the warning outside of test_mode for now.
So there is another sort of solution involving shifting the current overmap. #55021 for example touches on some of the code I added around dialog effects to prevent this warning. Instead of getting rid of the warning should we instead add this more places? |
#53830 should also be closed by this PR |
That probably would work, but it feels like a horrible hack to me. Still, if someone wants to pursue it I won't stop them. But please consolidate the pattern and don't duplicate the code so it's easy to find all the places we're doing it. IMO it's fundamentally wrong that Here's a more detailed version of the approach I envision to fix this:
But all of that is much easier said than done, and I'm probably not going to pursue anything like that in the near future (certainly not before the next stable release). Your suggestion is much more pragmatic and might be good if there are actual issues that need fixing in the short term. Do any of the above update mapgen operations actually place vehicles? Maybe the scenario starts? |
I believe the game spawns vehicles post map gen in a number of cases (which operations they use I don't know): I believe I've seen someone hack their starts to include a vehicle, and I would guess starts like Helicopter Crash includes a wreck. There was also an issue recently where some golf course start frequently started inside a vehicle, but that was probably because the map contained vehicles, not the scenario as such. If I remember correctly, the merchants outside of Hub01 had vehicles with them in 0.E-0 (the only time I've encountered them so far), but I'm not sure of that, and the Tacoma Farm spawns vehicles as part of the development of the facility. |
Summary
None
Purpose of change
Fixes #54732.
Fixes #54062.
Fixes #53830.
The warning message regarding loading
tinymap
s that overlap withmap
was helpful debugging some issues with the tests, but it is generating a lot of warnings for players and there's really no simple fix for them. In particular, it affects update mapgen triggered by scenarios, traps, and faction camp construction.Note that the underlying problem still exists, and if any of these forms of mapgen add vehicles, then it will probably cause issues.
Describe the solution
Disable the warning outside of
test_mode
for now.Describe alternatives you've considered
The long-term solution is to retire this use of
tinymap
in favour of an abstract mapgen interface that can affect either the mainmap
if loaded, or something analogous totinymap
otherwise. But that's a long-term effort.Testing
Unit tests.
Additional context