-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Add more tree placement options to non-scenario saves. #743
base: jgrpp
Are you sure you want to change the base?
Conversation
…ests in normal games
…es game. Could not find out why InteractiveRandom being used in this usecase is detrimental and needs validating.
…ests in normal games
…to game mode checks
The reason for the notes in the code about InteractiveRandom, is that this is not multiplayer safe, and as written this PR will result in desyncs when the feature is used in a multiplayer game. If I get some time I can look at resolving that and the other listed issues though. |
Actually, looking more closely, this won't work in multiplayer at all, it's not just a desync issue. |
Ahh, thank you for the explanation on the reasoning about InteractiveRandom and the desyncs. I didn’t think about it, but it makes sense now. Can you say why using the Random function instead of InteractiveRandom wouldn't work in this case? Does it also lead to multiplayer issues and desyncs? I’m sure there’s a reason for sticking with InteractiveRandom, but I'm interested in this PR and would like to help if possible. |
InteractiveRandom is not synchronised with the game state, and so will give different results on each client in a network game. |
Ahhh ok that makes a lot more sense on how each of those work and the limitations. Now a lot of the decisions on what features still remain scenario editor exclusive also make sense since alot of them also "randomly" affect tiles etc. Thanks for sharing the reason on why this isn't as simple as just enabling the buttons for normal gameplay and actually talking through the technical reasoning behind it! |
Motivation / Problem
The tree tools in the scenario editor are much more useful than those available in the base game. This PR simply shows the buttons to enable users to use these tools also in standard games.
Description
This is the least amount of code touched way of adding the "Normal", "Grove" and "Forest" buttons to .sav games from .scn games.
This doesn't (at least it shouldn't) affect anything to do with the tree tool in the scenario editor
Limitations
Checklist for review
Some things are not automated, and forgotten often. This list is a reminder for the reviewers.