jeffreypicard / medieval-europe

Official repo of the web based game medieval-europe.eu
GNU General Public License v3.0
3 stars 2 forks source link

Available Kingdoms with no assigned regions #15

Closed Enoc-GitHub closed 4 years ago

Enoc-GitHub commented 4 years ago

When creating a character, one can choose from many Kingdoms, but some of those Kingdoms have no assigned regions.

availableKingdoms

This was tested with Kingdom of Scotland.

Map status: ScotlandIssue

Database situation:

Kingdom is created DBKingdoms

Capital Region is not properly assigned to Kingdom (assigned to 37 "Independant") DBregions

====================== List of broken Kingdoms. BrokenKingdoms

Enoc-GitHub commented 4 years ago

SOLUTION:

Assign to Kingdom of Scotland: UPDATE regions SET kingdom_id = '19' WHERE name = 'regions.lothian';

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

ScotlandIssuefix

SQL Statements to fix all Kingdoms: UPDATE regions SET kingdom_id = '19' WHERE name = 'regions.lothian'; UPDATE regions SET kingdom_id = '28' WHERE name = 'regions.lisboa'; UPDATE regions SET kingdom_id = '18' WHERE name = 'regions.london'; UPDATE regions SET kingdom_id = '34' WHERE name = 'regions.sjaelland'; UPDATE regions SET kingdom_id = '39' WHERE name = 'regions.konigsberg'; UPDATE regions SET kingdom_id = '45' WHERE name = 'regions.bursa'; UPDATE regions SET kingdom_id = '25' WHERE name = 'regions.brugge';

jeffreypicard commented 4 years ago

Fixed.