Tom Stellard
a3a9e1bacc
Add cup sid to debug printfs
2021-03-05 23:38:28 -05:00
Tom Stellard
347d74a3c4
Load all league and team names at the beginning of the game
...
This way we don't have to reload the country xml definitions every time
we have to generate a new team.
2021-03-05 23:38:28 -05:00
Tom Stellard
f928273875
Add first_team and reserve_level tags to team element
...
The first_team tag can be used to indicate that a team is a 'reserve
team'. The value for this new tag is the name of the first team
for this reserve team. The reserve_level is used to indicate if this
is the 2nd, 3rd, 4th, etc. team for the first team. For example:
<team>
<team_name>Blue</team_name>
</team>
<team>
<team_name>Blue 2</team_name>
<first_team>Blue</first_team>
<reserve_level>2</reserve_level>
</team>
<team>
<team_name>Blue 3</team_name>
<first_team>Blue</first_team>
<reserve_level>3</reserve_level>
</team>
2020-12-24 10:43:39 -08:00
Tom Stellard
a31ea36c08
Cache some commonly used constants
...
All constants were stored in a g_datalist structure, which has very slow
lookups. This was not ideally for constansts used during game play
which are accessed thousands of times. Caching these values makes the
game simulations about 2 times faster.
2020-12-24 10:43:39 -08:00
Tom Stellard
5dc2c6ab46
Optimize team_get_fixture()
...
When searching for a team's next fixture, only search in leagues that the team
is actually in. This improves performance a lot in countries with many leagues.
I see about a 7x speed up simulating the first 6 weeks of English leagues using
billys_boots 2019/2020 definitions from the forums.
2020-12-24 10:43:39 -08:00
Tom Stellard
c1bc51a33b
Simplify team_get_fixture() with an early continue
2020-12-24 10:43:39 -08:00
Tom Stellard
d2a82fe888
Simplify code in team_get_fixture() to make it more readable
2020-12-24 10:43:39 -08:00
Tom Stellard
863fefd371
Make team_get_fixture() return const pointer
2020-12-24 10:43:39 -08:00
gyboth
078b70a1ea
Added debug logging.
2009-04-29 17:18:54 +00:00
gyboth
dd7c288da9
Added won/lost/drawn display in match preview.
2009-02-21 16:43:53 +00:00
gyboth
5e2c67c570
Load save bugfix.
2009-01-13 21:47:52 +00:00
gyboth
0c90e95f3a
Streak tokens for newspaper.
2008-12-07 12:45:33 +00:00
gyboth
64d556f3c1
Corrected pointer warnings.
2008-12-07 11:28:18 +00:00
gyboth
23cfbb3f0c
Added function name output when compiled with DEBUG.
2008-11-25 13:50:07 +00:00
gyboth
9e9f33093e
Joined league bugfix.
2008-11-25 10:09:58 +00:00
gyboth
945c4d1093
Added league properties and changed league active status to property.
2008-11-24 11:16:36 +00:00
gyboth
b9415b186e
Multiple tables for leagues feature completed.
2008-11-22 16:51:31 +00:00
gyboth
a535439936
Added multiple tables for leagues.
2008-11-21 17:00:47 +00:00
gyboth
73d4cc6795
Added joined leagues to defs system (e.g. for US conferences).
2008-11-20 20:20:18 +00:00
gyboth
9bcccd7b21
Added talents from leagues to cup definitions.
2008-11-18 13:26:57 +00:00
gunnar_g
beff044999
Ticket prices are saved. They are also moved to team.stadium instead of user.
2008-10-28 15:27:28 +00:00
gyboth
fdb268e001
"Added luck."
2006-12-10 14:43:16 +00:00
gyboth
55c6a7546a
"2.0.0"
2006-06-04 17:10:08 +00:00
gyboth
0c43ca39a4
"Swdish def."
2006-03-20 18:41:44 +00:00
gyboth
9cabaa9eb3
"Release 1.9.3"
2005-12-14 14:05:59 +00:00
gyboth
c53c413837
"Money bug fixed, translations."
2005-12-13 13:01:52 +00:00
gyboth
15ad0cbb01
"Job exchange, first buggy draft with lots of debugging output."
2005-12-01 11:50:54 +00:00
gyboth
6f61b20f96
"Minor bugfix in query_cup_begins."
2005-11-26 16:52:51 +00:00
gyboth
2e9476b04c
"Minor changes."
2005-11-01 21:20:24 +00:00
gyboth
54132543c4
"Betting bugfix."
2005-10-31 16:19:14 +00:00
gyboth
b1c539abe0
"Betting improvements, opponent display in live game."
2005-10-28 09:11:33 +00:00
gyboth
79f1fea94e
"Betting, first draft."
2005-10-27 21:10:15 +00:00
gyboth
3b23bb353f
"CPU strategies, first draft."
2005-10-24 20:50:48 +00:00
gyboth
fa0b06f39d
"Randomise teams option added."
2005-10-20 15:45:00 +00:00
gyboth
87dee34151
Cup talents bug fixed.
2005-10-13 08:55:09 +00:00
gyboth
6b176972bb
"Cup talent diff bug fixed."
2005-10-13 08:52:33 +00:00
gyboth
53131dd2e9
"Switched most GStrings to gchar."
2005-10-09 09:35:44 +00:00
gyboth
6c959586c7
"Minor string array improvements."
2005-10-05 19:59:37 +00:00
gyboth
72f53bb109
"Spanish translation added."
2005-09-27 16:23:34 +00:00
gyboth
2c1c98bbec
"Minor improvements."
2005-09-27 12:18:46 +00:00
gyboth
52091f9e4a
"WC improvements, Netherlands added."
2005-09-22 16:41:07 +00:00
gyboth
63e471da3f
"World cup first try."
2005-09-21 17:42:41 +00:00
gyboth
6b4a11c8f1
"Player streaks first draft implemented."
2005-09-18 10:02:10 +00:00
gyboth
08d169daf3
"Player skill system changed."
2005-09-14 21:16:22 +00:00
gyboth
0498ec1f3e
"Update script improvements."
2005-09-07 19:33:03 +00:00
gyboth
ee104567bd
"MemMatches export/import."
2005-08-21 19:58:51 +00:00
gyboth
6d7e810828
"I18n support for binary package."
2005-07-19 15:55:34 +00:00
gyboth
bbf5ecec70
"Minor lg bugs."
2005-07-18 19:53:40 +00:00
gyboth
1292db317c
"YA first draft."
2005-07-08 09:26:00 +00:00
gyboth
9e55218a2a
"Live game commentary in xml files."
2005-06-26 11:42:01 +00:00