-
Notifications
You must be signed in to change notification settings - Fork 41
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
Assertion failures when units and cities have 0 vision radius in the ruleset #2459
Comments
Blocks longturn/rules-of-chaos#16 |
Why should Subsurface and Stealth be capped to Main? |
If they were higher, it would mean being able to detect spies or submarines in tiles you can't see. |
Airport radars can see 100km away, I guess that's about a modern city's working area... capping might make sense but I'm still not fully convinced. The assertion is caused by an effect that's implicitly added to the ruleset for backward compatibility because |
Is the client capable of showing units in tiles that are in fog? I don't have a problem with it, per se. One unit could give vision of the tile, and you could know about hidden units there due to another, I guess.
I used the |
I don't know, most likely not...
Nice finding, the capability is called |
Well, if it doesn't cause problems, I would suggest removing the assertions that Stealth vision and Subsurface vision can't exceed Main vision, since in that case they're not valid assertions. If it does cause problems that can't easily be addressed, it might be better to cap them to Main vision. |
I don't see anything in the server code that would require this limitation, but I also can't make it work, so I assume the assertions make sense. I believe this should "just work" without clipping or anything like that, so my current plan is to document the limitation and open an issue for it. |
* Warn that Stealth and Subsurface must be smaller than Main * Fix the ruleset option name Vision_Layer See longturn#2459.
* Warn that Stealth and Subsurface must be smaller than Main * Fix the ruleset option name Vision_Layer See #2459.
Describe the bug
The server console gets spammed with assertions when units and cities have 0 vision radius in the ruleset.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
I wouldn't expect to see any assertion errors. Subsurface and Stealth vision radius should be automatically capped at the Main vision radius. Units with 0 vision radius should only be able to see their own tile, and that's it.
Logs
Platform and version (please complete the following information):
Additional context
Discord
The text was updated successfully, but these errors were encountered: