Skip to content

Create livingworld.lua #1424

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DroppedTheMantleEli
Copy link

This is my super rudimentary script for checking how many sites of interest there are in the world and printing the result and then increasing the sitecap to allow new sites in post-world generation. Humans build new hamlets, Elves build new Forest Retreats, Goblins build new trenches and Dwarfs build new hillocks. Ideally the script would increase the sitecap only if the number of sites of interest are +1 -1 away from the sitecap number, but as it is now it works by increasing the sitecap after a set amount of time instead and achieving my goal I hope!

If this PR makes an externally-visible change in behavior, please add an appropriate line to changelog.txt.
Don't believe it will change anything already exisiting

This is my super rudimentary script for checking how many sites of interest there are in the world and printing the result and then increasing the sitecap to allow new sites in post-world generation. Humans build new hamlets, Elves build new Forest Retreats, Goblins build new trenches and Dwarfs build new hillocks.  Ideally the script would increase the sitecap only if the number of sites of interest are +1 -1 away from the sitecap number, but as it is now it works by increasing the sitecap after a set amount of time instead and achieving my goal I hope!
@myk002
Copy link
Member

myk002 commented Apr 12, 2025

Have you tested that this actually allows the game to produce more sites during gameplay? I don't think anyone has tried something like this before.

@myk002
Copy link
Member

myk002 commented Apr 12, 2025

Also, is the slow rate increase from this script better (gameplay-wise) than just setting the site cap to -1?

Screenshot_20250412_083809

@DroppedTheMantleEli
Copy link
Author

DroppedTheMantleEli commented Apr 12, 2025 via email

@DroppedTheMantleEli
Copy link
Author

DroppedTheMantleEli commented Apr 12, 2025 via email

@ab9rf
Copy link
Member

ab9rf commented Apr 12, 2025

this looks like a useful addition and i do not see any reason to believe that altering the site cap on the fly is likely to destabilize the simulation

i would suggest in addition, as a command line option, adding the ability to set the site cap to specific values (since there is no vanilla UI for changing this post-worldgen of which I am aware) to facilitate this

i would also make the increment amount configurable, support a "query only" mode where it simply reports on the number of sites without changing the cap, add a "quiet" mode that doesn't print anything, and finally i'd remove the autorepeat functionality since that can be accomplished by combining a one-and-done tool with the existing repeat utility

@myk002 myk002 moved this from Todo to Review In Progress in 51.10-r2 Apr 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Review In Progress
Development

Successfully merging this pull request may close these issues.

3 participants