GS has no way to suppress industry news messages #11706
Replies: 4 comments 1 reply
-
I'd agree with the implementation idea that GS should be able to specify "no message please" using an optional parameter. |
Beta Was this translation helpful? Give feedback.
-
Agreed for things happening at the end of mapgen, but during normal game loop messages should be created |
Beta Was this translation helpful? Give feedback.
-
Test implementation of optional suppression in andythenorth@8324d9a This has issues:
|
Beta Was this translation helpful? Give feedback.
-
Regarding your test implementation, does script API support optional parameters? ( |
Beta Was this translation helpful? Give feedback.
-
Version of OpenTTD
13-ish
Expected result
GS can add industries to the map without generating a lot of 'new industry' messages for players.
The specific case shown is at game start, with a GS that places industry, but this should be generally available to GS, as there may be other cases. For example GS places many industries during gameplay, or GS wants to deliberately introduce an industry by stealth.
Eh, I don't specify implementation, but possibly an optional parameter would work well for GSIndustryType.ProspectIndustry() and GSIndustryType.BuildIndustry(). Alternatively some modal thing where GS can enter a mode which suppresses all news generation for all commands?
I did consider whether grf should do this, by e.g. modifying the return result for callback 28, but I think it would be hard to achieve a good effect as grf won't know the intent of the GS.
Actual result
Player sees many 'new industry' messages, after map
Steps to reproduce
I will provide a test GS later.
Beta Was this translation helpful? Give feedback.
All reactions