Skip to content
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

Debug message about mandated special spawns serves no purpose #19290

Closed
pisskop opened this issue Nov 15, 2016 · 11 comments

Comments

Projects
None yet
7 participants
@pisskop
Copy link
Contributor

commented Nov 15, 2016

While it complains about too many mandatory spawns, it still manages to spawn several optional spawns and Ive never noticed it to fail to spawn at least 1 mandated spawn.

Its a thrown error that doesnt particularly help. Nor does it particularly seem to be an issue.

@pisskop

This comment has been minimized.

Copy link
Contributor Author

commented Nov 15, 2016

Indeed, its hard to tell what its actually counting, and if there is/was never an issue in the coregame why was it included in such an abrasive manner?

@Coolthulhu

This comment has been minimized.

Copy link
Contributor

commented Nov 15, 2016

It counts the sum of mandatory counts of all specials.

Defining extra mandatory specials effectively pushes out some "mandatory" specials into optional ones. This means that the abrasive warning is well deserved: "mandatory" loses its meaning if it can't actually be enforced.

For example, if you want to make sure every overmap contains an evac center, but then request no less than 10k ponds, the evac center will no longer be guaranteed.

The message could possibly be displayed in some different way, but it does deserve to be a big red warning for the designer (not necessarily for players).

@DangerNoodle

This comment has been minimized.

Copy link
Contributor

commented Nov 20, 2016

I have observed this while testing Mining Mod today. Can we confirm that minimum demanded specials are actually being enforced if under the threshold? I increased the minimum due to signs that minimums were not enforced, frequently seeing overmaps with no sign of veins generated unless the minimum was solidly high.

If I can confirm that a reasonable number is reliably generated when the minimum is reduced from 100 each (which was overkill), then I can safely reduce each to around 5 or so. It would be prudent for @mugling to mention this problem in #19376.

Edit, it would seem that I can only get away with 1 or 2 as the minimum if Arcana and Magic Items and More Locations are in use.

@mugling

This comment has been minimized.

Copy link
Contributor

commented Nov 20, 2016

It would be prudent for @mugling to mention this problem in #19376.

What is the change though?

@DangerNoodle

This comment has been minimized.

Copy link
Contributor

commented Nov 20, 2016

I am uncertain. Was there a pull request recently affecting overmap specials? It has to have been something generating this debug message.

@DangerNoodle

This comment has been minimized.

Copy link
Contributor

commented Nov 20, 2016

It seems it is either #19223 or one of the prior pull requests in that series.

In this case, it would seem that the issue (too many minimums) is pre-existing, but this issue makes it visible to mod authors. They should be made aware of this maximum of minimums (odd as that phrase sounds) so they may test what will stay within acceptable limits.

@codemime codemime added the Mapgen label Jan 15, 2017

@DangerNoodle

This comment has been minimized.

Copy link
Contributor

commented Feb 16, 2017

Any possible way to correct this?

@pisskop

This comment has been minimized.

Copy link
Contributor Author

commented Feb 16, 2017

Yea. Mod authors can overwrite the defaults Like I do.

@DangerNoodle

This comment has been minimized.

Copy link
Contributor

commented Feb 17, 2017

How so?

@pisskop

This comment has been minimized.

Copy link
Contributor Author

commented Feb 17, 2017

https://github.com/pisskop/PKs_Rebalancing/blob/master/pk_overmap_freqloc.json#L1296

Take all of these. But this line is about the outpost; that bunker with 8 turrets and 4 spotlights that only usually spawn rarely off of roads. I make them spawn much more.

Essentially I redefine the locations after the coregame loads.

@DangerNoodle

This comment has been minimized.

Copy link
Contributor

commented Feb 17, 2017

I see. Peculiar. Not sure if that is the ideal solution. I assume it can at least be made more efficient and futureproof by use of copy-from so that only the occurances section needs to be overriden (see https://github.com/CleverRaven/Cataclysm-DDA/blob/master/data/mods/No_Fungi/overmap_specials.json).

@kevingranade

This comment has been minimized.

Copy link
Member

commented Mar 26, 2019

This was invalid to start with, and most of the mandatory misuse seems to have been corrected by now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.