Install the engine's message texts in standalone tools (fixes #14)
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>
This commit is contained in:
1 parent
6a3e51038c
commit
b879d5be00
4 files changed
+21
-7
No files matched your search
@@ -16,6 +16,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "formats/le.hpp"
|
||||
#include "game/state.hpp"
|
||||
|
||||
namespace bmh {
|
||||
@@ -59,6 +60,11 @@ inline std::string kIndoorInvitationText;
|
||||
inline std::string kChampionshipBonusText;
|
||||
inline std::string kFriendlyPayerPrefixText;
|
||||
|
||||
// Installs the six texts above from the game image (the English game uses its own wording).
|
||||
// Both career sessions call it at start; standalone engine tools (week_check, the season sims)
|
||||
// must call it too, or these messages lose their text (#14: the indoor entry bonus mail).
|
||||
void install_message_texts(const LeImage& exe);
|
||||
|
||||
// FormatNumber(buf, value, 0x101, ""): an amount of money as the messages show it: the
|
||||
// value converted with CurrencyMultiplier / CurrencyDivisor, digits grouped by dots, then " EU".
|
||||
std::string format_amount(const GameState& g, int32_t value);
|
||||
|
||||
Reference in new issue
Block a user