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

Undefined Regions / Broken Regions #16

Closed
Enoc-GitHub opened this issue Apr 13, 2020 · 2 comments
Closed

Undefined Regions / Broken Regions #16

Enoc-GitHub opened this issue Apr 13, 2020 · 2 comments

Comments

@Enoc-GitHub
Copy link

Issue found while checking the map.
unasignedregions

Region names:

  • Siena
  • Firenze

Issue found: Regions in DB belong to Kingdoms in status = deleted:
deletedkingdomsregionissue

deletedkingdomsregionissue2

Possible fix: Update DB tables assigning proper kingdom.

@Enoc-GitHub
Copy link
Author

SOLUTION:

Must execute commands in the following order to be able to fix. If capital and kingdom_id fields are updated on the same SQL statement, it fails to properly update row.

Disable Capital Region:
UPDATE regions SET capital = '0' WHERE name = 'regions.siena';
UPDATE regions SET capital = '0' WHERE name = 'regions.firenze';

Assign to Independent Kingdom:
UPDATE regions SET kingdom_id = '37' WHERE name = 'regions.siena';
UPDATE regions SET kingdom_id = '37' WHERE name = 'regions.firenze';

It takes a few seconds/minutes but at some point DB refreshes and changes are visible in the game.
unasignedregionsfix

@jeffreypicard
Copy link
Owner

Fixed

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