Page 1 of 1

Warn if Map Generation settings will break anything

Posted: 22 May 2020 18:22
by Redirect Left
This is a follow on from this thread, where I helped someone fix an industry issue.

It'd be nice if the map generation screen had a red box present somewhere if your current settings would, or would likely break something. IE: in the issue above, the settings were so that a farm was incredinbly unlikely to spawn in the given settings, breaking that industry chain. Other potential issues are if your map is configured to generate no water, you could display "These settings will render boats unusable".

Would be a cool addition, and stop people getting into pickles like in the original thread I linked to. It was kinda lucky i had time to play about with settings and try to identify why farms were acting odd for them.

I understand this will be based upon guess work, as there's no way for it to know what the end generation will be, but there are 'cues' so to speak that may trigger issues with certain industries or game aspects either way.

Re: Warn if Map Generation settings will break anything

Posted: 22 May 2020 20:07
by jfs
This could be doable for default industries, but if you have any NewGRF industries it's impossible to do anything sensible. (Apart from actually trying to generate the entire map, actually build towns, and actually place industries.)

Re: Warn if Map Generation settings will break anything

Posted: 30 May 2020 06:33
by Alberth
First steps here would be to extend NewGRF so it can provide information what it needs. Currently many of the interfaces are "try using the service, and if it fails, it doesn't work" without providing any computer-readable information how or why.