Skip to content

Conversation

@Warriorrrr
Copy link
Member

Description:

Part 1 of my attempt at the UUID db

This PR moves UUID loading to earlier in the load process, to during the initial list loading section. This allows us to safely reference resident UUIDs in other resident files, town UUIDs in other town files etc. and decouple more things from being name-based.

If a town or nation has no saved UUID, it will be assigned a new random uuid, this is in line with the saving logic where this also happens.

For the flatfile db, this does mean we have to read the same files twice during the loading process. I've moved up the uuid= line in the saving process so that only the first line has to be read, to reduce the impact on loading time.


  • I have tested this pull request for defects on a server.

By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the Towny License for perpetuity.

@Warriorrrr Warriorrrr force-pushed the feat/uuid-db-part-1 branch 2 times, most recently from b4d05ac to 9a14efb Compare September 22, 2025 07:39
@LlmDl LlmDl added this to the 0.101.3.0 milestone Sep 25, 2025
@Warriorrrr Warriorrrr changed the title Load UUIDs for residents, towns & nations early [UUID DB part 1] Load UUIDs for residents, towns & nations early Sep 29, 2025
@LlmDl LlmDl modified the milestones: 0.102.0.0, 0.102.1.0 Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants