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>
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>
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>
- 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>
Referees are staff rows with role referee. Imported ones keep their
original property byte; added ones (attributes strictness and the new
perception, 0-3 each) follow the 49 originals in table order, up to 255.
The matchday draw uses the pool size; a second match per day remains the
fallback when the pool runs out. The season sim gains
MODERN_EXTRA_REFEREES=N for testing before data revision 1.4 exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Modern saves (save_profile modern-career-v1) name their world by id and
data revision and hold the career only; loading reinstalls the world
dimensions. Club names now follow promotion and relegation. The season
sim gains MODERN_SAVE_CHECK for a save/load round trip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
M3 - Modern world loader:
- modern/content/world: typed view of the world tables (leagues, clubs,
players, nations, league dates, training camp catalogue).
- modern/content/world_package: opens a Modern world (runtime:modern-v1, or
editor:world-v1 until data revision 1.4), reads only the engine entries and
decodes the Classic payload (import: load_classic_payload).
- modern/content/world_expand: turns the Classic start into the world: club
ids in the order of the world's leagues, per-club tables remapped (added
clubs copy an original club of their league), added players from their
attributes, 24 squad slots per league club, pools kept, layout, league
sizes and league dates installed; UTF-8 names and OBW ids in ModernState.
- Fixes found by playing the Modern data set: referee pool exhausted on days
with German and larger international leagues (Modern deviation), card
table per league club grown, slot-to-team lookup via WorldLayout, form
history stride from the layout, remaining slot literals.
- Classic UI projections used by the session read the layout instead of
executable constants (Classic values unchanged).
- modern_season_sim opens .obw worlds; MODERN_DEBUG / MODERN_WATCH tracing.
M4 - training camps:
- Catalogue in ModernState (built-in 18 fictional camps on three maps, or the
world's extended catalogue); price, booking and effect use it.
- Six-star grades: step index capped, limit +1 from pitch 5 and +1 with pitch
and fitness 6, catering 6 one more point of condition, lodging 6 one week
less injury. Classic data behaves as before. modern_camp_tests.
Verified: 190 tests pass; Classic replay regression identical to the M0
baseline; season_sim and modern_season_sim identical with Classic data; the
Modern data set plays full seasons (leagues 34/38/34 rounds).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- src/modern/game: the season modules as bmh::modern, working on ModernState
(a GameState). Data types stay shared with Classic; Modern code calls its
season functions qualified (modern::...), so a missing Modern function is a
compile error instead of a silent call into Classic.
- src/modern/app/modern_session: the session on the Modern core. It still uses
the Classic UI projections until the Modern projections exist.
- SeasonHooks: the shared match core reaches player statistics and the table
prediction of the season core that owns the game (Classic: unchanged).
- WorldLayout: team ranges, squad slots and pools of the running world. Shared
code and the Modern fork read them; Classic keeps the original numbers.
- Transfer list views moved to game/transfer_offer_view.hpp (shared).
- tools/modern/check_fork_calls.sh, modern_season_sim and world_layout_tests.
Verified: Classic tests and replay regression unchanged; season_sim and
modern_season_sim produce identical output with Classic data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>