The lineup read now passes on the prepared match context: surface
(indoor during the indoor tournament, rebuilt from the cup groups when a
save is loaded), durationMinutes and starterCount (always eleven). The
first eleven's pairs come from the board's partner byte (+0x3f) as
stored: pairs lists rows that name each other, every position carries
its partnerId. Nothing is cut or relabelled; lineup.commit keeps owner,
order and pairs (checked at the winter indoor tournament). Refs #27.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The news read carries the desk manager's mailbox as the contract's
messages with ids that survive the original's compaction. news.update
marks a message read or unread, moves it to the trash and back (saved
marks; the message stays in the original mailbox) and archives it as the
original's keep.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The national coach's desk reads the national team's line-up and tactics
(the original's desk has them) instead of no_club, and lineup.commit
prepares the national board without the clubs' designated set-piece
extension, whose records the national team has not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
UndoReschedule of the original clears bit 0x4000 of the calendar day
(high byte & 0xbf) when no replay of another club stays on it; both cores
kept the bit, so the day and its neighbour were no longer offered as
targets after a move was taken back. Tests check the same target days
after the undo.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The recording's ticker matches and the paused live kickoff's matches
carry attendance and weather (temperature, the original's weather
picture; none indoors), as the interface asked in issue 15.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a stand block's construction weeks run out at a kickoff, the
journal notes stadium.expansion_finished with the stadium's places.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At the first kickoff of a new month each club manager's cash change over
the month just ended becomes finance.profit or finance.loss. The month
and the cash at its start are saved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resigning as the only or last human ends the game as the end of the set
duration does: the highscore hook updates and shows the table. The end's
reason and date are saved; the session read follows the contract's
Session schema (archived managers, termination reason, ownership, mode),
managers become archived (resigned or retired) and their employments end
with the career. The resign answer carries the ownership change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TeamRef carries the world's nation and crest asset key, squad rows the
player's photo key. The manager's employments come from the almanac
(clubs and national team side by side), the desk's allowed commands
follow the desk kind. modern_world_info reports the asset coverage.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The season change notes a human club's promotion or relegation; the
confirmed commands note an advertising contract, a loan taken or paid
off and a planned stand expansion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Business events cannot be derived from the almanac later, so a saved
journal notes them once: squad changes of the human clubs at a kickoff
(signed, free, sold, contract ended; clubs compared by identity across
the season's new draw positions), toto settlements, season change,
contract renewals and resigning. The news read merges it with the
almanac events.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The news read lists a team's press events derived from the almanac, so
they are the same on every read with stable occurrence ids: match and cup
results (final, extra time, penalties), send-offs and injuries, runs,
league position, champion and titles, with typed facts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At the national coach's desk the friendly read quotes a match against
another nation on a copy of the Watcom generator (price, payer, ratings,
free dates); friendly.book draws the same ratings and books it. The
opponent bound of the national quote follows the world layout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
club_calendar projects the season calendar of a club: the competitions
of each day and the club's league matches on the day of their round, or
on the replay day when moved or postponed. The calendar read lists a
date range of it with fixtures, status and results.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
live_league_table is shared by the recording and the paused live state;
a paused league match now reports its league with the running scores.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each live frame carries the league tables of the ticker's matches: the
table before the matchday plus every match of that round at the frame's
minute, the final whistle using the recorded result. Frames carry only
changed tables; a single frame read gets the full standing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The credit read previews the loan dialog (bank or another human lender)
with per-field bounds, fees and refund; bank.commit action credit books
the same edits. The bank read now points to it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The scheduling read lists the own league matches that can be moved with
their target dates and the moved ones; the friendly read quotes a friendly
against a club with its free dates. friendly.book books it (the payer
accepts the cost, a human opponent consents), fixture.reschedule moves a
league match or takes a move back. All without random draws.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The surroundings of Diamond 3.6: three youth teams, co-trainer, doctor and
physio with their monthly budget level and cost, the youth teams' strength,
place and league. environment.commit sets a level 0-6.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
quote.request {kind: block, blockId, places, seats?, roof?} builds the stand
block editor's draft (target places, then seats and roof one at a time) and
stadium.commit confirms it with or without the tip, or cancels it. The
stadium read shows the quote with its breakdown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
manager.resign.commit with confirmed true ends the career when the last
human manager resigns (outcome career_ended, sessionState ended, every later
command answers career_ended). Resigning while other humans play needs every
per-manager table moved up a slot and answers resign_not_supported_yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
read_live during a pause lists each live match's goals, misses, cards and
injuries so far from the group's log, as the almanac reads it at the end.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
session.advance {live: true} runs the kickoff on its own thread and stops at
the minutes of a live match of a human manager (not at a voided one).
live.step plays on, live.substitute and live.tactics act as the original's
pitch and tactics screens during a match (open, change, close) on the
kickoff thread, live.finish plays the day to its end. Other commands answer
live_running meanwhile, read_live reports the minute and the live scores.
A missing contract decision rolls the whole live day back. Also: the
recording takes matches up to the day the kickoff ends.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The after-match steps of the last kickoff: every match of it, the matches of
human managers for the report, the Sportschau's eleven of the day as the
engine chooses it (captured during session.advance, only with its replay
option), and the current tables of the day's leagues.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Modern interface shows four stages for the traffic access, the original
has three. A Modern world (WorldLayout::traffic_stages = 4) keeps the
condition byte in steps of 64 (64, 128, 192, 255) and offers a build up to
stage 3; every stage weighs as one original stage. New careers convert the
original start table, older Modern saves are converted on load
(traffic_scale). Classic data keeps three stages; the Classic equivalence is
unchanged. Also: the live ticker takes the matches from the desk day on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ModernSession::read_live answers the ticker's fixture and frame queries with
the engine's recording of the last session.advance: the matches of human
managers with their owners, frames in minute order (kickoff, every event,
half time, the end) with score, chances, cards and players on the pitch, the
event lines, and the day's other matches as the conference.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The transfer read lists the transfer list with asking fee, salary reference,
offers and the own bid, and the own squad. transfer.submit lists an own
player (or offers him for loan) or bids through the original's offer editor
(open, set fee, salary and years, submit); the outcome tells accepted,
pending or rejected. The open editor is part of the rollback.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
toto and sponsor reads in the envelope (amounts as Money), toto.submit with
up to six columns and sponsor.answer for a camp's exclusive sponsor offer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The original's stadium dialog in two commands: quote.request opens it and
gets the building firm's offer (periphery) or selects a facility and levels;
stadium.commit builds - facilities with or without the tip for faster
building - or declines, and closes the dialog. The stadium read shows the
open offer; a refused command also restores the dialog.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stadium read lists the periphery (the traffic access with its stage),
the eight facilities with their level, the eight stand blocks and the ticket
price, with the original names. ticket.commit sets the admission price.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The advertising read lists boards, shirt and TV rights with their contract and
open offers, the three budgets and the finance preview. advertising.accept
takes an offer by id, budget.commit sets a budget, both through the desk's
own checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The original asks for a running-out contract in the middle of the calendar.
session.advance takes the answers in contractExpiry (renew with years and
salary, or release); a contract without an answer rolls the run back and
decision_pending names the player, the interface asks and sends the advance
again. The test plays two seasons of kickoffs answering every request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The contracts read lists remaining months, salary, insurance and bonuses per
player and the open quote. quote.request asks a player's demands for one to
four years (a draw, as at the desk); contract.offer answers applied or
offer_rejected. A refused command also restores the open quote.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Section 1 lists the manager's transfers from the original's own records,
section 2 the six curves of the original (its labels, weekly values and the
absolute scale); the interface scales them itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ModernSession::read_statistics_screen answers the statistics screen's filters
with real data: eternal table, national tournaments (winners, scorers,
history), series and records, winners by season and the own club per five
minutes. Views the engine does not record yet (title chances, transfers,
weekly curves, season finances) answer available false, reason not_recorded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ModernSession::read_almanac answers the almanac screen's request kinds
(index, calendar, day, match) from the engine's almanac in the demo's match
form: competition, sides with human managers, result split into regulation,
extra time (by the goal minutes) and shoot-out, referee, attendance, weather,
line-ups and events. Unknown line-ups stay null.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desk's kickoff as a command: the calendar runs to the next human desk,
the season end desk or the end of the career (matches without live view for
now). A missing desk decision or a failed step answers decision_pending or
advance_failed and leaves the state as it was.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bank read lists account, fixed deposit, credit line, investments, the 12
stocks with their price history and the offered funds as Money. bank.commit
moves money to or from the fixed deposit and buys or sells shares and fund
units through the desk's own checks. Credits follow; the stock tip draws a
random number and will be a quote.request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lineup.commit takes the squad order and swaps rows into place after opening
the board as the desk does; tactics.commit sets the eight values through the
board's checks; training.commit initializes the plan when needed and applies
decreases before increases so every step stays within the limits. Each is one
revision and is rolled back as a whole when the engine refuses a step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ModernSession::ui_command checks careerId, expectedRevision and owner, runs
the engine action and answers command_result or error. A refused command
restores the state and both generators; a repeated requestId gets the stored
answer, a different command under the same id duplicate_request. The camps
read lists maps and camps with a binding, draw-free quote per camp, focus and
the season's stays. Tests cover stale revision, foreign owner, unknown camp,
booking, repeat, conflict and a refused second booking.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The squad read lists a squad (own club, any league club or a national team
with a nominated squad) with ids, positions, values, absences and, for the
manager's own club, monthly salary and remaining contract months.
modern_ui_contract_tests checks envelope, identities, money, errors and
that reads leave the state unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
First engine delivery for the Modern interface handoff (docs/new_ui/integration,
issue #15): ModernSession::ui_read answers in the draft envelope with careerId,
worldId, stateRevision, date, season, scope and Money in minor units. Careers and
human managers get persistent ids (saved in state/modern.json, older saves get
them on load). Reads: session and desktop. Engine decisions on the P0 points in
docs/new_engine/ui-anbindung.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Modern careers keep every match they play: season, date, competition
type, league or cup stage, matchday, both clubs by world id with their
human managers, result with extra time and shoot-out, referee,
attendance, weather, both line-ups and all events (goals with assists
and kind, misses, cards, injuries, substitutions, shoot-out kicks).
Events come from the group event log the engine keeps for every match,
substitutions from the players on the pitch after each minute; nothing
draws random numbers (a 60-turn Modern run is unchanged).
Player indices reused for a new person get a new stable id. Saves hold
finished seasons as immutable history/season-<year>.bin files plus the
running season; modern-state@1.1 adds league names and the id counter.
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>
- schedule: kLeagueTablesPerLeague lets every league use the table of its own
size (international leagues of 20 and 18 side by side); Classic leaves it off.
- Modern: a league that has played all its rounds sits out the remaining dates
of its calendar group.
- modern/game/world_calendar: season days of ISO dates and placing a league
group's dates in the season calendar around special days, with tests.
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>
Every resort names its map (Germany, Europe, Middle East) and carries x/y on
that map; coordinates stay null until the interface defines the map sizes.
Maps are their own list so further maps can be added later.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New docs/new_engine/datenformat.md lists format changes F1-F8 (modern
runtime requirement, league sizes and generators, date-list calendars,
extended training camp rule, names, squads, finances, saves) with the
editor work each needs and the shared Modern validation rules.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Modern starts as a fork of the Classic season core under src/modern/ and
shares formats, GameState (with a world layout) and the match core; Classic
stays unchanged. Covers the fixed Classic sizes to resolve, phases M0-M7
with acceptance criteria, the training camp catalogue with a bounded six-star
tier, and the session interface the Modern UI builds against.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
openbmh_sound --original DATA --export-midi 0..2 OUT.mid [--loops N] [--map FILE]
runs the sequencer offline and records every started note through a new note
observer. One MIDI track per song track (track 9 = samples on the GM drum
channel), sixteenth-note steps, tempo from the IRQ0 divisor, pitches from the
note table of the user's executable, loop markers. Programs and drum notes are
guessed from pitch range, chords and the samples' sound, and written to an
editable OUT.map.txt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Classic Extended is the Classic season engine plus Modern features ported
back one at a time where the bitmap interface can present them. Modern
features are written against small ports in a shared feature library so
they can be backported.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Versioned ZIP+JSON container for worlds, saves, content packs and RmlUi
themes: typed entities, generic competition stages (league phase, groups,
knockout, nations-league tiers), 32-league engine limit, BMH/FLTD import,
asset keys for high-resolution crests and photos, gettext languages and
TrueType/OpenType fonts. Match engine out of scope.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The co-author trailer and the Claude project identity are bot addresses,
not personal data; the check only accepted the Codex identity.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ui_series_records_tests installs the authored fixture tables, since the
public tree no longer carries built-in schedule tables (uncaught throw).
- training_camp_app_tests no longer compares against the removed built-in
resort constants; it checks that the content comes from the EXE.
- make_package.py accepts the api-ms-win-core forwarders that the
app-local UCRT redist installs (Windows CI packaging failure).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>