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

Game detection of altered file? #16

Open
uberb134 opened this issue Jul 3, 2024 · 2 comments
Open

Game detection of altered file? #16

uberb134 opened this issue Jul 3, 2024 · 2 comments

Comments

@uberb134
Copy link

uberb134 commented Jul 3, 2024

Thank you for creating this tool. I notice that it works inconsistently - sometimes the game ignores the edited amount altogether, and sometimes it works. I'm trying to figure out the sequence for success. I've tried copy/rename of the original save file, tried limiting the new gold amount to a double-byte int (<32,767), and tried editing all of the auto-saves to match the edited save file.

In the cases where it doesn't work, I'm not sure how it knows what the original value was. Maybe the game caches it and I need to exit the game completely and load a different saved game inbetween to avoid this?

@iqqmuT
Copy link
Owner

iqqmuT commented Jul 6, 2024

Does it work 100% if you:

  1. Exit to desktop
  2. Use this tool
  3. Restart Civ6
  4. Load the altered file

@uberb134
Copy link
Author

uberb134 commented Jul 7, 2024

Running on MacOS Sonoma 14.5, Node v22.3, and the game is in Steam(Civ 6 1.0.12.54)

  • Steam and Civ6 were closed
  • I copied the latest save game file to the script folder
  • Ran tool and adjusted gold
  • closed tool, confirmed that the file last modified date had been updated
  • Copied the modified file back to the game folder
  • Opened Steam, Opened Civ6
  • Loaded game, no change in Gold

It's not a big deal in the grand scheme. I'm more geek curious about why it works sporadically.

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