Commit Graph
16 Commits
Author SHA1 Message Date
Codex 0fc26624d9 Keep mailbox flags safe and no-op updates unchanged (by Codex) 2026-10-29 10:21:32 +01:00
Codex ce1535fe2d Create real careers from the native wizard and preserve manager presentation (by Codex) 2026-10-29 01:11:41 +01:00
ClaudeandClaude Opus 5.5 7ed048d935 Mark the duplicate nations (F11) as consolidated in data revision 1.5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:32:55 +01:00
ClaudeandClaude Opus 5.5 ec1d804d08 Give added players their nation index 32-61 (sixth nationality bit)
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>
2026-10-25 09:34:13 +01:00
ClaudeandClaude Opus 5.5 0cace5a984 Lower the exclusive sponsor to 1.5 times the best regular offer
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>
2026-10-25 09:25:17 +01:00
ClaudeandClaude Opus 5.5 77d1f93e8f Exclusive sponsor from training camp stays (Modern)
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>
2026-10-25 09:15:38 +01:00
Codex 7de6f644f2 Support playable Modern data worlds in the editor (by Codex) 2026-10-25 08:23:02 +01:00
ClaudeandClaude Opus 5.5 0a6be70046 Hand the data revision 1.4 task package to the data migration (M5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 09:16:52 +02:00
ClaudeandClaude Opus 5.5 201eef88e4 Record every match in a football almanac (Modern, M8)
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>
2026-10-23 23:49:13 +02:00
ClaudeandClaude Opus 5.5 57d75ab2f5 Read the referee pool from the world (M5, data format F9)
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>
2026-10-23 23:28:43 +02:00
ClaudeandClaude Opus 5.5 28b59d9890 Save and load Modern careers (M6)
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>
2026-10-23 23:22:13 +02:00
ClaudeandClaude Opus 5.5 6f55622307 Load Modern worlds and add Modern training camps (M3, M4)
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>
2026-10-23 22:43:25 +02:00
ClaudeandClaude Opus 5.5 a4a37f1cb2 Modern: fixture table per league size, league dates and finished leagues (M2)
- 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>
2026-10-23 18:24:43 +02:00
Codex 96203aea20 Separate Modern GUI artwork from world-owned assets (by Codex) 2026-10-23 17:05:40 +02:00
ClaudeandClaude Opus 5.5 d6a929534b Place training camps by map and x/y instead of geographic coordinates
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>
2026-10-23 16:15:04 +02:00
ClaudeandClaude Opus 5.5 d856000780 Document the OBW changes of the Modern engine for the editor
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>
2026-10-23 16:09:53 +02:00