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

Editing dwarf promotion does not properly update player rank #44

Open
nbusseneau opened this issue Jan 22, 2023 · 2 comments
Open

Editing dwarf promotion does not properly update player rank #44

nbusseneau opened this issue Jan 22, 2023 · 2 comments

Comments

@nbusseneau
Copy link

nbusseneau commented Jan 22, 2023

Hi! Thanks for your work :) I got interested in the save file structure and having it as a first basis was helpful to me.

I've noted that editing dwarf promotion does not properly update the player rank (blue gem in top right corner). In game, the player rank automatically advances by one tick (1/3 of a rank up):

  • Every time a level is gained by any dwarf.
  • Every time a promotion happens.

However as of right now when changing a dwarf promotion via the tool, nothing happens to the player rank in game.

I think the issue comes from the fact that the tool updates the TimesRetired entry of the save file, but does not correspondingly update the RetiredCharacterLevels entry: image

This entry represents the number of levels tied to a specific promotion for the character (i.e. Bronze 1 = 25, Bronze 3 = 75, Silver 1 = 100, and so forth) and it looks like it is used as basis for calculating player rank in game (in combination with the current level of each dwarf). I've tried updating it manually and I can confirm that when changing the RetiredCharacterLevels value, the global player rank changes accordingly.

@nbusseneau
Copy link
Author

nbusseneau commented Jan 22, 2023

By the way, unrelated to the issue but related to the topic of TimesRetired / RetiredCharacterLevels: do you know what the 5th structure corresponds to? I know that 1 / 2 / 3 / 4 map to driller / engineer / gunner / scout, but what is the 5th one for? Could it be a 5th class that never saw the light of day?

@Cheddar3
Copy link

The 5th entry is for a character that was used early in development called the Generic Hero.
Now it goes unused presumably because there's a give all weapons console command now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants