feliwir / feliwir/AptConverter
Issue with ScoreScreen APT from BFME1 EDIT: Now fixed and tool updated
- Dominant language
- C++
- Stars
- 2
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Hey, i am trying to use your tool for editing ScoreScreen.APT/CONST from bfme1, it's the screen that appear at the end of a game and list your stats
It needs to be edited to display new factions icons (and images for the campaign)
However it's seems to get corrupted somehow, after edit, in skirmish/multiplayer i get the campaign stats screen instead of the skirmish one
EDIT READ FOR SOLUTION:
I managed to fix the issue in the source code and so i also built a fully up to date version of the tool for those needing it that include this fix + what Feliwir had fixed before (eg WordWrap fix) so this is more up to date than the version from ModdingUnion
[AptEditor.zip](https://github.com/user-attachments/files/25826756/AptEditor.zip)
For the Source Code fix:
in ActionHelper.cpp this
else if (actionname == "pushvalue")
{
unsigned int val = entryt->IntAttribute("val");
AddByteAction(EA_PUSHVALUEOFVAR, ab, (unsigned char)val);
}
was replaced by this
else if (actionname == "pushvalue")
{
unsigned int val = entryt->UnsignedAttribute("val"); // Use unsigned for larger range
if (val < 256) {
AddByteAction(EA_PUSHVALUEOFVAR, ab, (unsigned char)val);
} else {
AddLongAction(EA_PUSHLONG, ab, val);
}
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.