Various small bug reports regarding Maniacs features

Since I can’t get GitHub to work, for the time being I’ll try to assemble bugs not regarding the battle system in this thread. These were found in EasyRPG Player 0.8.1.1 on Windows 11.

  • Repost from https://github.com/EasyRPG/Player/issues/3493 : When the input values use leading zeros for padding, EasyRPG Player gives very unexpected results with the .toNum operator.
    One TPC example to replicate the error:
t[1] .asg "\E[023]"
t[1] .asg .subs t[1], 3, 3
t[1] .toNum v[1]
@msg.show "\T[1]: \V[1]"

While the Maniacs runtime stores 23 into the variable as expected, in EasyRPG Player it becomes 19 instead, and an input of 099 turns into just 0.

  • Not quite sure if this is considered a bug, but using TPC, it’s possible (and very useful) to use a string variable for specifying a font to be used in a string picture. While the Maniacs runtime handles it correctly, trying to edit the string picture command through the GUI reduces the font input field to just “A”, and EasyRPG Player seems to do the same when interpreting the command.

Found another one, while testing a colorful exfont this happened:


It seems to occur more the stronger the colors are, so my guess is that there’s something off about how the rendering retrieves color information of that particular symbol.
The exfont image used above:
exfont

And in a similar vein, if for some reason you use a traditional exfont in .bmp format, this is the result:

Another small issue with Maniacs:
The conditional “if event exists” doesn’t seem to get recognized.
From what I gathered, it appears to use the 5th value of the command’s numeric parameters set to 1, e.g.
6 23 0 0 1 0
would correspond to a condition checking if event #23 exists.

Thanks for the reports and sorry for ignoring them for so long. Minus the exfont bug they look simple enough and I’ll likely fix them in one go.

Could you do me a last favour and attach a map file containing events with all the broken features:

  • Incorrect number parsing
  • String picture strings as variables
  • Event exists

Thank you

Alright, I whipped up a small sample project to compare behavior between Maniacs runtime (240822) and EasyRPG Player (0.8.1.1) of these features:

  • Converting strings to numbers when they contain leading zeros
  • Using string variables to define fonts in Show String Picture commands
  • Another issue I came across with Show String Picture via Call Command: Character and line spacing values don’t seem to be applied correctly, though this appears to behave the same in both Maniacs and EasyRPG
  • Conditional asking if an event exists

The latter turned out to be somewhat directional for some reason: depending on the position you run the testing event from, the conditional’s output differs.
Also while testing the leading zeros issue, I came across this peculiar inconsistency with the font rendering:


Also included in the project are my Variable Show/Move/String Picture via Call Command common events and text files explaining their composition, for more options and in case anyone finds them useful.
Project Zip Download