Fixing the roster with unidb
Hi, I'm posting this reply in this thread to avoid hi-Carlos*ing the creation master thread.
Originally Posted by leavemealone
link of update which i am using
http://www.eamods.com/Downloads/details/id=276.html
i got this link from the thread "Updated rosters?"
Hi,
This roster update will cause crashes in subsequent seasons because the auther re-used over 500 Youth Ids to create new players. You will run into errors when the game tries to generate a new youth that has an id in use.
Originally Posted by leavemealone
ya.i know.only for first time it runs ok.but from 2nd time there is crash when i start new season with same team.do you know the solution?shall i change the ID or delete young players?
Hi,
*All of my changes were made in the fifa.db*
I solved this problem by editing all of the re-used Youth player Ids and created new ones. example: for 410110, I added a leading 6 to make the id 6410110 (original youth player = Niels Sondergaard, he was replaced by Alexandre Song in the patch). My change reinstated Sondergaard as a youth with id 410110 and I created Song with the new id of 6410110.
I used a different program to edit that extracts the fifa.db into relational database that I open with MS Access.
I had to change the table_players table to edit the player ID. Once I changed all of the ids, I reloaded all of the original Youths from the original fifa.db. After the table_players table was "fixed", I had to edit the table_teamplayerlinks (this is the table that sets the rosters). I made the same changes on this table, meaning, I modified the playerid to have a leading 6 for the used youth ids.
Your random crash at the start of a new manager could be caused by a couple of things, 1) youth assignment is random and you could have hit a duplicate id at the start of the first season, 2) Duplicate Youth Ids can appear when you "scout for new players 3) some of the players that the patch updated kept the original birthdates of the youths - I found a 4 year old on a team .
leavemealone;2396613 said:
thanks.
i have installed all tools available from the thread.i have unidb installed on my PC.now i will try to change ID and try as you said above.
Great. The easiest way to find the re-used ids is to go to the table_teamplayerlinks and sort the column by playerid. The youths on the fifa.db are in the range of 400000 - 410974. There should be no players with an id in that range assigned to a team. Once you change the ids, you will need to replace the used id's with the players from the original fifa disk to ensure that the youths are generated properly throughout a manager career.