Quote:
Originally Posted by Carplos
So, um, why does it do this?
|
Ask Markus... I wish I knew the answer because ballparks for example only get created when the final structure is decided and the game starts, so I don't see why teams should be any different. It's easily seen, if you start a fictional league from the menu and up each division to 5 teams.
When you click Fictional League it will create a 2x4x4 structure and these teams will have IDs 1-16.
Change SL1 Div 1 to 5, and teams 1-16 get 'deleted' and the new structure has team id's from 17-33. Change SL1 Div 2 to 5, and 17-33 join 1-16 in being 'deleted' and the new structure has id's from 34 to 51. Change SL2 Div 1 to 5 and 34-51 join the 'deleted' group and 52 to 70 become the current ID's and then finally change SL2 Div 2 to 5 and 52-70 get 'deleted' and the game uses ID's 71-90 for the structure. Click start and it adds 91 and 92 in as the All Star Teams.
I just did that, exported the game to csv and lo and behold the team id's in teams.csv are 71-92...
Unfortunately teams.dat stores the team id for each team but in a sense doesn't use it, it uses the position of the record in the file as it's ID (I once tried to tidy up a teams.dat by removing teams that shouldn't be there and it didn't work as the game assumed the teams left were numbered 1 upwards)
Each team record takes up at least 8 Kb and nearer 10Kb without any stats and stuff so with 70 dead teams you've got almost a Megabyte of wasted space (and that has to be loaded into memory each time you play that league)
It doesn't seem much, but that is just a small example.
HOBS' setup would seem to imply 324 teams in total, but it won't be anything like that.
Starting with League 1
Click Add Fictional League - 16 teams will be created
Change Sub Leagues to 1 - 16 teams deleted, 8 more created
Change Divisions to 6 - 8 teams deleted, 16 more created (it will create 4,4,2,2,2,2)
Change Division 1 to 5 teams - 16 teams deleted, 17 more created
Change Division 2 to 5 teams - 17 teams deleted, 18 more created
Change Division 3 to 5 teams - 18 teams deleted, 21 more created
Change Division 4 to 5 teams - 21 teams deleted, 24 more created
Change Division 5 to 5 teams - 24 teams deleted, 27 more created
Change Division 6 to 5 teams - 27 teams deleted, 30 more created
So, in total for creating League 1, 147 teams (at minimum) will have bit the dust to create the 30 teams in existence.
The other leagues will create (at minimum) 923 teams that aren't used, so in order to get his 324 teams the database will contain over 1440 teams (if the All Star teams are getting created).
I'm guessing your teams.dat file is in excess of 10Mb even before you've run any games...