Layout constants of the world and league tables named by meaning

Ten constants with generated names (CareerSession_InstallLeagueSizes_RuntimeField*,
CareerSession_DispatchLineup_RuntimeField, CupDraw_FormatError_RuntimeField2/3, ...)
are LeagueClubCount, LeagueEuropeanPlaces, LeagueRelegationPlaces, LeagueNameSuffixes,
PromotionGroupBelowCounts/Leagues, NewcomerClubCount, ForeignCupClubCount and
ManagerRecord0Club/4Club. Values unchanged; the layout reference is regenerated.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude committed 2026-11-11 12:10:30 +01:00
1 parent 33566566ac
commit 205a543b40
44 files changed
+117 -109

No files matched your search

+10 -10
View File
@@ -231,7 +231,7 @@ inline constexpr auto CareerSession_DispatchDesktopLayout_RuntimeField = 0xa250e
inline constexpr auto CareerSession_DispatchDesktopLayout_RuntimeField2 = 0xa2517;
inline constexpr auto CareerSession_DispatchLeagueTableControl_RuntimeField = 0xa454d;
inline constexpr auto CareerSession_DispatchLeagueTableControl_RuntimeField2 = 0xbb834;
inline constexpr auto CareerSession_DispatchLineup_RuntimeField = 0xa2c30;
inline constexpr auto LeagueClubCount = 0xa2c30;
inline constexpr auto CareerSession_DispatchLiveSubstitution_ExecutableField = 0xa366c;
inline constexpr auto CareerSession_DispatchLiveTactic_RuntimeField = 0xa20eb;
inline constexpr auto CareerSession_DispatchLiveTactic_RuntimeField2 = 0xa20f3;
@@ -288,12 +288,12 @@ inline constexpr auto CareerSession_FormatNumber_ExecutableField2 = 0xa1380;
inline constexpr auto CareerSession_FormatNumber_TextPointer = 0xa137e;
inline constexpr auto CareerSession_InitializeClubModalRuntime_ExecutableField = 0xa25c0;
inline constexpr auto CareerSession_InitializeClubModalRuntime_ExecutableFieldUnsigned = 0xa25c0u;
inline constexpr auto CareerSession_InstallLeagueSizes_RuntimeField = 0xa2be9;
inline constexpr auto CareerSession_InstallLeagueSizes_RuntimeField2 = 0xa2bf2;
inline constexpr auto CareerSession_InstallLeagueSizes_RuntimeField3 = 0xa2c00;
inline constexpr auto CareerSession_InstallLeagueSizes_RuntimeField4 = 0xa2c0b;
inline constexpr auto CareerSession_InstallLeagueSizes_RuntimeField5 = 0xa2c13;
inline constexpr auto CareerSession_InstallLeagueSizes_RuntimeField6 = 0xa2c34;
inline constexpr auto LeagueEuropeanPlaces = 0xa2be9;
inline constexpr auto LeagueRelegationPlaces = 0xa2bf2;
inline constexpr auto LeagueNameSuffixes = 0xa2c00;
inline constexpr auto PromotionGroupBelowCounts = 0xa2c0b;
inline constexpr auto PromotionGroupBelowLeagues = 0xa2c13;
inline constexpr auto NewcomerClubCount = 0xa2c34;
inline constexpr auto CareerSession_Int32T_TextPointer = 0xaeffc;
inline constexpr auto CareerSession_Int32T_TextPointer2 = 0xaf21c;
inline constexpr auto CareerSession_Int32T_TextPointer3 = 0xaf228;
@@ -443,7 +443,7 @@ inline constexpr auto ClubKitSelectors = 0xbb68b;
inline constexpr auto ClubKitSelectorsUnsigned = 0xbb68bu;
inline constexpr auto ClubPlayerDetail_ClubPlayerDetailFromGame_RuntimeField = 0xa25bb;
inline constexpr auto ClubPlayerDetail_ClubPlayerDetailFromGame_RuntimeField2 = 0xa25bf;
inline constexpr auto ClubPlayerDetail_ClubPlayerDetailFromGame_RuntimeField3 = 0xa2c36;
inline constexpr auto ForeignCupClubCount = 0xa2c36;
inline constexpr auto ClubPlayerDetail_ClubPlayerDetailFromGame_RuntimeField4 = 0xa364a;
inline constexpr auto ClubPlayerDetail_ClubPlayerDetailRedraw_RuntimeField = 0xa2c4e;
inline constexpr auto ClubPlayerDetail_ClubPlayerDetailRedraw_RuntimeField2 = 0xa3c9b;
@@ -572,8 +572,8 @@ inline constexpr auto CupDraw_FormatError_ExecutableField4 = 0xae6dc;
inline constexpr auto CupDraw_FormatError_ExecutableField5 = 0xae704;
inline constexpr auto CupDraw_FormatError_ExecutableField6 = 0xae70c;
inline constexpr auto CupDraw_FormatError_RuntimeField = 0xa2547;
inline constexpr auto CupDraw_FormatError_RuntimeField2 = 0xb6ea8;
inline constexpr auto CupDraw_FormatError_RuntimeField3 = 0xb9ad8;
inline constexpr auto ManagerRecord0Club = 0xb6ea8;
inline constexpr auto ManagerRecord4Club = 0xb9ad8;
inline constexpr auto CupDraw_FormatError_TextPointer = 0xa1612;
inline constexpr auto CupDraw_FormatError_TextPointer2 = 0xa1619;
inline constexpr auto CupDraw_FormatError_TextPointer3 = 0xa161e;
+3 -3
View File
@@ -30,8 +30,8 @@ struct BlockDef {
// Sizes marked with a Count depend on the master database:
// Clubs = CareerSession_DataDirectory_RuntimeField (419) Players = CareerSession_DataDirectory_RuntimeField3 (2574)
// N42 = CareerSession_DataDirectory_RuntimeField2 (168) N66 = CareerSession_DataDirectory_RuntimeField4 (3096)
// Teams = CareerSession_DispatchLineup_RuntimeField (138, teams in league play)
// TeamsPlusCups = CareerSession_DispatchLineup_RuntimeField + CareerSession_InstallLeagueSizes_RuntimeField6 (138 + 30)
// Teams = LeagueClubCount (138, teams in league play)
// TeamsPlusCups = LeagueClubCount + NewcomerClubCount (138 + 30)
constexpr BlockDef kBlocks[] = {
{::bmh::layout::Cup_AdvanceCup_RuntimeField3, false, 1, Count::None, 0, false}, {::bmh::layout::LiveMatchday_FormatError_RuntimeField14, false, 6, Count::None, 0, false},
{::bmh::layout::ManagerRecords, false, 0x373c, Count::None, 0, false}, // 5 manager records of 0xB0C bytes
@@ -110,7 +110,7 @@ constexpr BlockDef kBlocks[] = {
SaveState::SaveState(const Bytes& stream, const DbCounts& c) : stream_(stream) {
// Teams in league play and cup-only teams are not part of DbCounts yet;
// these are the V2.24 values (CareerSession_DispatchLineup_RuntimeField, CareerSession_InstallLeagueSizes_RuntimeField6).
// these are the V2.24 values (LeagueClubCount, NewcomerClubCount).
constexpr uint32_t kTeams = 138, kCupTeams = 30;
size_t pos = 0;
uint32_t last_pointer = 0;