A Modern layout gives every national team after no_team 24 squad slots.
On each national team day, after the German nomination, the strongest fit
players of each nationality (quotas 3/5/7/5, the German strength measure)
fill its squad and get a computer line-up; a nation without a goalkeeper
or with fewer than 14 nominees keeps its drawn rating. The shared match
core asks fields_players() instead of 'league club or no_team', which is
the same set in Classic. National squads get no cards or injuries, their
players develop after the match like Germany's, and the almanac records
their line-ups.
Diamond data 1.5: 24 of 61 nations play with players. Classic regression
(game 1 and two-player) unchanged, Classic-data season identical, save
round trip identical, ctest passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each match field of a season is stored as its own column and every player
of a line-up as his slot in the club's previous line-up. Deflate then
finds the repeats: a half season shrinks from 294 to 218 KB in the save.
Versions 1 and 2 are still read; tests cover a hand-built version 2 season
and a reordered line-up with a new player.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The German national team shares its team number 357 with no_team, and the
recorder skipped it as a placeholder, so no international match of Germany
reached the almanac. Its line-up comes from the national squad while a
human is the national coach, as in the match engine. modern_season_sim
MODERN_ALMANAC_TEAM=<name> lists a team's recorded matches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ListPeriphery called the traffic access built only at stage 3 (condition
byte 171 and above, the offer limit) and hid stages 1 and 2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The main CI stops at the public history check on 0.3, so the Modern season
core was only ever built on Windows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
modern_season_sim MODERN_BALANCE=1 prints strength, squad size, age,
injuries, market value and salary per league at every season end. Five
12-season runs on data revision 1.5 against three Classic runs show the
same trends and no drift; documented in balance.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The engine's nationality is six bits: w368 bits 27-31 plus bit 7 of the
player bonus (0-63). The expansion wrote only the five low bits and
sent every nation from index 32 on (Brazil, Argentina, USA, Japan, ...)
to 31, Wales. Added players now get their index with the high bit;
nations without an original index get 63, a code no nation or national
team uses. Data set 1.4: 80 players without an original index (223
before). Data format F11 lists two duplicate nations for revision 1.5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured with twice the offer, four boards brought a top club about 5 million a year and the dearest camp paid off clearly on average; at 150 % it is about 3.8-4 million, roughly break-even for Dubai with luck on top. Default sponsor_bonus is now 150 (data format F4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Middle East camps share their grades but differ in price; a stay
can now bring an exclusive sponsor: 15 / 30 / 45 % per stay (Doha /
Abu Dhabi / Dubai), a shirt (about every third offer) or four boards at
twice the club's best regular offer for 12 months. Accepted on a free
place it starts at once, otherwise it is queued and starts at a month
change once the place is free. The offer goes through the regular
advertising acceptance.
Camp fields sponsor_chance / sponsor_bonus / sponsor_months (data
format F4, editable; built-in values for the Middle East camps), state
saved in state/modern.json, read query {kind: "sponsor"}, session action
dispatch_exclusive_sponsor, tests in modern_camp_tests, SIM_SPONSOR=1.
Sponsor artwork does not exist yet (asset: null, documented).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Revision 1.4 of the Modern data set brings birth dates for every
player, the camp catalogue with its maps and 100 referees. The
expansion now takes the age from a birth date for the original players
as well (WorldPlayer::born); before, only the added players kept their
data age. The yearly aging stops at 47, the most the age bits hold, so
real ages (a goalkeeper of 40) cannot run into the bits above. The
season sim counts second referee assignments per day.
Two seasons and ten seasons run through; the save round trip is
identical; second referee assignments drop to about 7 a season.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
club_text/player_text replace the console's utf8(g.club_name(..)) and
utf8(g.player_name(..)); in openbmh_modern_cli they give the world's
names (players with first names), in openbmh_cli the engine's names as
before. The Modern session resolves the matchday results with the
world's club names. The live match keeps a pointer to the session state
type, so the names are read from the full Modern state.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The console and its desk/window actions are compiled a second time
against ModernSession (src/app/session.hpp, OPENBMH_MODERN_SESSION), so
a Modern world can be played before the new interface is connected:
new career, club picker, desk, live matchday, results, save and load.
- The CLI opens a Modern world like the season sim and keys its save
folder by the SHA-256 of the world id.
- Rollbacks keep the whole session state (app::SessionState) instead
of slicing it to GameState, which would drop Modern data.
- Club picker: clubs a world adds get unused master ids so the
original picker's order stays unique; only German clubs can be
confirmed in Modern.
Classic openbmh_cli is unchanged (same sources without the switch).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The six texts the engine posts from the game image (contract warning,
Masters, indoor entry bonus, league title bonus, friendly share) were
set only by the career sessions. week_check and the other standalone
tools left them empty, so the indoor entry bonus mail held only the
venue and the replays failed from the first public commit on.
install_message_texts(exe) now sets them for both sessions and in the
test executable loader.
Classic regression: the ten turns of #14 (game 1: 18, 21, 65, 88, 109,
201, 247; 2P: 24, 29, 34) pass again; no other turn changed against the
0.3 M0 baseline. The divergence the issue saw in the youth teams block
(bd4bc, since 310e3e2) is among the tolerated block differences.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each column costs the stake (10,000-400,000) and is settled on its own
with the original quotas; all columns stake 400,000 at most, every
column beyond the first adds a 10 % fee, no two columns alike. Column 1
stays on the original coupon; columns 2-6 and the last settlement live
in ModernState::pools and are saved. Session action
dispatch_pools_columns, read query {kind: "toto"}, unit test
modern_toto_tests, SIM_TOTO=<columns> in the season sim.
Measured over two seasons: 1 column returns 30-71 %, 6 columns 12-49 %
of the stakes; more columns win more often, never on average.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ModernSession::read(request): status, leagues, table, fixtures and
squad as JSON with the same club/player/league objects everywhere
(docs/new_engine/ui-abfragen.md); the statistics answer through it.
Further queries follow per menu once the GUI is finished.
- Ages: data set 1.3 gives ages only for the 840 added players (birth
dates); the 2574 original players carry the placeholder 16 and now
get their age drawn as in the original (human squad 20-25) instead
of all being 16. Birth dates for all players go into data 1.4.
- Saves of Modern matchdays with more than six match groups (nine
leagues on one day) were refused on loading; Classic keeps six.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The data set gives no skills (all 0, x-legacy skill words included): the
original draws them at the career start. Keeping them left every player
without skills and cost 0.1-0.5 goals per match in every competition.
Data set players keep their age; their skills are drawn unless a data
set provides some. Goals per competition now match Classic data.
MODERN_VALUES=1 prints form, skills and market values per league; the
almanac summary shows goals per match per competition. Market values,
the added players' values and the human club's finances are measured
in balance.md (no change needed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The original lets foreign clubs (16 squad slots) take players up to 15;
Modern foreign clubs have 20 players in 24 slots and never bought, so
after about five seasons the German squads were full and a transfer
found no club. Clubs with 24 slots now take players up to 21 like the
German ones; Classic squads keep the original limit.
Three ten-season Modern careers now run through without errors; goals
per match 2.70-2.77, league drift as with Classic data (documented in
balance.md). MODERN_ALMANAC_SUMMARY=1 prints the almanac on Classic data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Players of the data set keep their age and seven skills at the career
start; the original draws new ones (and OR-ed ages produced players
of 46 and a crash once the draws were skipped).
- Training camps: the session allowed only resorts 0-7; the manager's
club was read as a signed byte (clubs above 127 crashed); at the
national coach's desk no camp can be booked.
- SIM_CAMP=<resort> in the season sim; the human club's final place is
taken from the almanac. Twelve seeds: five stars +1.7 places, six
stars +2.5 (about +0.8 over five stars at three times the price), so
the six-star rules stay as they are.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The original draws new values for every league player at the career
start, so the data set's values were never calibrated for play; taken
as they are they give clubs far outside their league's strength
(spread 14-21 instead of about 6, 3.3 goals per match). In a Modern
world the clubs of a league now take the places of the league's
strength band in the order of the data set, and their players keep
their distances to the club level, compressed to the spread of
generated players. The human club and swapped clubs move as a whole.
Two seasons: 2.77 goals per match (original 2.67), plausible tables.
MODERN_SPREAD=1 prints the club strengths per league at the start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ModernSession::read_statistics answers JSON requests evaluated from the
almanac: the competitions with results, the winners of every
competition by season, and player statistics per competition and season
or all-time (goals, assists, yellow, second yellow and red cards,
appearances). Replays of postponed league matches are now recorded as
matches of their league and original matchday. Engine texts with code
page 437 umlauts convert to UTF-8.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At the start of the season transition, before promotion moves the
clubs, the almanac stores the final table of every league (rank, games,
wins, draws, defeats, goals, points) and each league's champion and
runner-up. Every decided cup (national cup, European cups, supercup,
play-off, national tournaments, each indoor tournament and the Masters)
is noted with its date, last stage and runner-up. Almanac format
version 2; version 1 seasons are still read.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>