R48 – An alternative editor compatible with RPG Maker 2000 and 2003

This post is part of a series about interesting developments in the community related to EasyRPG & RPG Maker 2000/2003. If you have anything interesting to show, please prepare a draft and send it to us, then we will consider publishing it.

Most work on EasyRPG is focused on EasyRPG Player. It’s the engine to run the games, equivalent to RPG_RT.exe. But the games need to be created before they can be played.

In the future, EasyRPG will include its own game editor. But this is a lot of work, and it’s not a priority right now. So, when creating games you have to rely on external editors. Most popular ones are RPG Maker 2000 and 2003, because EasyRPG is compatible with them. But there is a new option to try out: R48.

R48 is a relatively new editor, created by t20kdc and compatible with EasyRPG. Why use it over RPG Maker? Well, there are quite a few things that set R48 apart:

  • Full-colour image support. No more need to convert your images to 256-colour format.
  • It’s multi-platform thanks to Java. You can run it on Windows, Linux and macOS. There’s also an Android build but it is not optimized for touch input.
  • Support for many languages, thanks to Unicode. You want to create a game in Greek, Georgian or Kazakh? We’ve got you covered. Unicode is optional: you can edit games in legacy encodings, too.
  • It’s free software placed into public domain.

So, do we even need EasyRPG Editor if we have R48? The answer is yes. There are some differences:

  • EasyRPG Editor aims to be a drop-in replacement for RPG Maker 2000/2003: intuitive and easy-to-use.
  • R48 aims to be powerful, allowing to edit many complex internal details and different formats (it even has a mode for editing RPG Maker XP and VX Ace games!).

Also, R48 is just different. It implements the same feature set, but does it in a different way from RPG Maker.

But this shouldn’t discourage you from trying out R48! It’s free so you’ve got little to lose anyway. Below are a few simple steps that can get you started with this editor.

Installing and running R48

To install R48, get the latest .jar or .apk from https://github.com/20kdc/gabien-app-r48/releases

The JAR file is for desktop computers. To run the JAR file, you would need a Java runtime environment (aka Java virtual machine). You would need to install the JVM for your operating system and open the JAR file with it.

Running R48 on Windows

If you use Windows, you can download the JRE for Java 8 from Oracle. After installing it, you will be able to run the .jar file by double-clicking it in the Explorer.

Running R48 on GNU/Linux

If you use GNU/Linux, you can install JRE from your package manager. They usually provide a version of OpenJDK, a free-software analog of Java. In Ubuntu, you can run the following code in the command-line:

sudo apt install default-jre

After installing the JRE, you will be able to run R48 by opening the terminal and running something along these lines:

cd "/folder/where/your/r48/is/located"
java -jar gabien-app-r48.jar

Alternatively, you can set up your system to open JAR files by double-clicking, see the instructions here.

Running R48 on Android

The APK file is for Android. Allow installing applications from third-party sources in the settings. Note that the Android version is pretty preliminary, and it might be hard to use: the buttons are too small and clicking on them might be difficult.

R48 doesn’t come with the engine: you need to use EasyRPG Player for that. It doesn’t even have a “Run”-button. Instead, you’ll need to run EasyRPG Player like you normally do in your operating system.

In Windows, you can download EasyRPG Player and place the Player.exe in your game folder.

Choosing the game folder and game engine

What is a game directory

First, you need a game directory. That is, a folder where your game will reside.

If you want to create a new project, then just make an empty directory that will hold your game. Once opened in an empty directory, R48 will offer to create a “skeleton project”: a bare-bones game that you will build upon. R48 creates quite a lot files and subdirectories, so make sure your initial directory is empty.

If you want to edit an existing game, your game directory is a directory where RPG_RT.ldb and maps (Map0001.lmu, Map0002.lmu, etc.) are located.

Note that existing games made in RPG Maker 2000 and 2003 might depend on the default set of graphics and sounds called RTP. R48 doesn’t come with its own RTP, and doesn’t have a direct RTP support at all. If you want to edit a game with R48, all its resources should be inside the game folder. Note that it might be illegal to edit games made with RTP in R48, because RTP license only allows to use it with RPG Makers and R48 is not an RPG Maker. Consult the RTP license and your local laws before doing that.

Choosing the game directory for R48

R48 has two ways of choosing the game folder.

First, you can just drop the .jar file into the folder where you’ll edit the game, then run R48 without specifying path to game and it will use the folder where the .jar file is located.

Second, you can use the “Path to Game” field after opening R48. Note that you need to click on the field under “Path to Game (if you aren’t running R48 in the game folder)” label, enter your path, and press Enter. The last bit is important: Whenever you type text in R48, you need to confirm your input by pressing Enter. Otherwise, your text will be ignored.

After choosing the game folder (or leaving it blank, if you have placed R48 in the game directory), choose the target engine. For games that are compatible with EasyRPG Player, choose the “RPG Maker 2000, 2003, or EasyRPG” option.

Choosing the text encoding for the game

After this, you will be presented with a choice of how the text is stored in your game:

  • If you plan to edit your game with RPG Maker 2000 or 2003 in the future, choose the legacy encoding relevant for your language (the official engine from Steam only supports “English/French/CP1252”; the official Japanese version used “Japanese/MS932” and fan translations used different other options). If you’re editing an existing RPG Maker game, you should use the legacy encoding relevant to the language of the game.
  • If you don’t need RPG Maker compatibility, try the UTF-8 encoding. This is a modern encoding supporting all kinds of languages. If your language was not supported by RPG Maker, it’s your only choice (e.g. Armenian, Georgian, Greek).

Remember the language choice you’ve made in this step. You will need to choose the same encoding each time you edit the game later.

If you’re starting R48 in an empty folder, it will offer you to create a bare-bones project compatible with RPG Maker 2000 or 2003. Agree to this and you’ll have a number of subfolders created in your empty folder. After creating an empty project, press the Save button in the top right corner of the screen to save all the modified files.

Making EasyRPG Player recognize your language

If you’re creating a game in English or in most Western European languages you can skip this part: your language will be recognized automatically.

But if you’re creating a new game in some other language (e.g. Russian or Japanese), EasyRPG Player might not know the language of your game and will display the text incorrectly. There are two ways to make sure the language is recognised:

  • You can edit the main text strings in the game.
  • You can edit the RPG_RT.ini file in the game folder.

Let’s take the first and route. EasyRPG Player determines the language of the game by looking at the text in the menus, so you need to edit the “Begin”, “Load” and “Exit” buttons that allow to start, load and exit the game. EasyRPG Player determines the language based on these interface elements and the filenames of the system sound effects, so make sure at least some of these buttons are not in English. For this:

  • Click on the ‘Database Objects’ tab in the top.
  • Click on RPG_RT.ldb button — this is the file containing most game data.
  • Find @terms and click on the button to the right of it (it would have a number in brackets, like [127] — click on that number).
  • Scroll the list down to optStart, optLoad and optExitApp, and edit the text of these buttons: they are shown on the main screen. Click on the current text (e.g. “Begin”) to start editing the button. Edit it, and press Enter to confirm your changes (this is important: if you don’t press Enter, your text will be removed!).
  • Replace “Load” and “Exit” text with text in your language similarly.
  • Press the “Save” button (either in the RPG_RT.ldb window, or at the top right corner of the main window) to save your changes. Voilà! Now EasyRPG Player will be able to determine the language of your game by checking these buttons.

Yay! Now you can run EasyRPG Player in your game folder to ensure that the main menu correctly displays the text.

If it’s still incorrect, you can edit .ini file and add the following lines to it:

[EasyRPG]
Encoding=65001

65001 means “UTF-8”. For the legacy Japanese encoding, use Encoding=932. For the legacy English, French and Swedish encoding, use Encoding=1252. For the legacy Cyrillic encoding, use Encoding=1251 line.

After you’ve done this, you can start editing the actual game content in your language.

Interface overview

R48 is being actively developed, so different versions might look somewhat different. But all of them should have a tab bar in the top, where you can choose one of the following:

  • Database Objects contain game-wide settings. RPG_RT.lmt specifies the player’s starting point (where the game starts), and RPG_RT.ldb specifies most game-related things (available actors, skills, items, enemies and enemy troops, tilesets to create maps from, and more).
  • MapInfos allows to select an active map and add new maps.
  • Map allows to edit the active map. You can edit the map by laying your tiles on two levels (L0 and L1), by placing Events (that represent everything non-static, e.g. passages between maps or non-playable characters). There is also a Resize option (hidden behind the … button) that allows to change the map size.
The R48 Map Editor

There are a few things to note:

  • Most changes are not saved by default. Use the Save button at the top right corner of the window (represented either by a floppy disk icon, or by a text “Save All Modified Files”) to save all your changes.
  • When you edit a text, your changes will not be applied until you press Enter. Moving to another field without pressing Enter will revert your changed text!

Basically, this interface allows you to change anything in the game. There’s much more to R48 (it even has a simple image editor), but the things above should be enough to get you started.

The R48 Event Editor

Where to go now?

If you need more graphics or sounds, you can get them from EasyRPG’s RTP Replacement: https://github.com/EasyRPG/RTP (direct download). The folders in the RTP Replacement are the same as in your game’s folder (e.g. ChipSet holds map tiles, CharSet holds event/NPC graphics, etc.), so you can just copy the files over to your game’s folder, and they will become available for you to use in R48.

If you need help with game creation, feel free to ask in EasyRPG’s community forum the #easyrpg IRC channel at irc.libera.chat. A more user friendly way to reach the IRC channel is via Matrix/Element or Discord. Please search the Discord invite link because we don’t want to actively advertise non-free protocols.

R48 is not yet known enough to have its own forum or chat, but you can get help in the EasyRPG-related places.

Author info: This blog post was written by Demetrius.

EasyRPG Player 0.6.0 “Preemptive Attack”

It is this time again! After 30 months since 0.5.0 we present you: The next major release: 0.6.0 “Preemptive Attack”. As the codename tells you already: This release focuses on battles and battles were always really lacking in EasyRPG Player – until now.

First we have to tell you: We are sorry! This blog post will not do 0.6 justice. In these 4 months more code was added more than in the previous 12 months. There were so many minor detail changes especially in battle and the savegame system, you can’t write this all down without getting burned out, because typing this is pretty boring and reading it is even worse. That means sometimes this blog post will simply sum up 10 minor changes in one sentence. If you are curious about more details, simply write us a message or read the linked GitHub issues.

Especially the battle system was in an interesting situation: In August we received ca. 100 commits by a new developer and they fixed many issues in the battle system and the algorithms but unfortunately this developer had no time anymore and left us alone with these commits. How shall we handle this? Luckily a new developer appeared shortly after and helped us fighting through the mess. We had many long discussions spread over 3 months, some commits were simple, some controversial (will this break games?) and some just wrong. Getting all these patches in was a nightmare and we could not wake up by pressing “9” but in the end we got them all in and now and you can enjoy them in this release!

New startup logo

You know the EasyRPG Player Logo from day one! For the first time we updated it and gave it a more modern look that is consistent with other well-known engines. (#624)

The EasyRPG Player Logo as of 0.6

Known regressions in this release

This new release of EasyRPG Player contains lots of savegame compatibility improvements with RPG_RT, but this also means the Player is now incompatible with saves of old versions! You can still load them, but you will see visual glitches: To fix them, simply change the map. If this doesn’t help: You must restart the game, sorry. This should be the first and last time such a compatibility nightmare occurs, because from now on we save the EasyRPG Player version in all savegames. This allows us to ensure savegame compatibility, because we can determine exactly which version created the savefile (#1656) and fix incompatibilities while loading.

When in a battle it is possible that battle animations created with the “Show Battle Animation” event command are not properly working, because the interpreter is not waiting for completion. We believe that this is more correct than the previous behaviour, but it breaks the animations in the game Alter A.I.L.A. Genesis.

Pictures are now updated before the events. By comparing with RPG_RT we are sure this behaviour is correct but it completely breaks picture zoom in the Smash Bros. clone もしもスマブラだったら. This will be fixed in 0.6.1 when a new, more accurate interpreter is implemented.

Regressions fixed

  • The ChangeEquipment event command crashed when a two-handed actor got the weapon in the first slot removed while the second slot was empty. This broke many effects in Yume2kki.
  • On some platforms all events on the map flickered while scrolling
  • The Android version crashed when attempting to report a bug (how ironic!) (#1477)
  • Our internal RTP translation table which maps Japanese to other RTP versions didn’t work anymore. (#1579)
  • Removing the Class with ChangeClass command did not work anymore. (#1657)

Events/Interpreter

The RPG Maker 2000 demo for the Tokyo Demo Fest 2018 Wild compo (search for tdf2018wildcompodemo) was hanging or skipping parts of the demo sequence. If you are familiar with the Demo scene you know that the synchronisation of video with audio is very important. Therefore this game used an undocumented feature: “Get MIDI Ticks” of the Change Variable command works for non-MIDI files: It returns the track position in seconds. With this implemented the demo plays perfectly. (#1517, #1523)

Enjoy the demo in our web player

Sprites are now properly rendered at borders of small looping maps (20×15, which is the minimal map size) . When a sprite overlaps the border of a looping map it is rendered two times or four times, depending on the corner. Before Player only rendered the sprite once. Contrary to RPG_RT we support proper looped rendering for the airship and fixed a visual glitch: When the Pan is locked events on the most bottom row become invisible. (#1216, #1541).

This video is a glitch exhibition of RPG_RT panning bugs. We don’t emulate them, EasyRPG Player will behave correctly in all these cases.

Screen/Picture Tint, Shake and Flash:

  • The “affected by Tint” flag is now fully supported for Pictures. (#1545, #1546)
  • The screen shake effect is now fully implemented and matches RPG_RT completely. (#1547)
  • The “affected by flash” flag is now partially supported for Pictures. When the Picture is below the weather plane the screen flash will be always applied, we plan a fix for a later release. (#1549)
  • All screen effects were applied one frame too late, you probably never noticed this but as we become more compatible we care more about timing.

With these bugs fixed the game Desolate City: The Bloody Dawn (Enhanced Edition) becomes fully enjoyable.

Panoramas are now matching RPG_RT completely. There are too many ugly details to explain here, just try it. They work perfectly! Try it with pan or on looping maps or on maps with scrolling backgrounds, it will work everywhere. Additionally the new savegame fields panorama X/Y from RPG Maker 2003 English edition are now supported which means the panorama position is preserved in savegames. Pan is also correctly saved and restored now. (#1485, #1498, #1531, #1534, #1551, #1554)

The Change HP command didn’t work when the whole party was being damaged. (#1558)

RPG_RT only does Game Over checks after certain event commands executed. We already supported this but lacked some commands, e.g. Change EXP, Change Level and Change Equipment. (#1583)

Parallel events did not halt execution when an “Input Number Message` Command was used resulting in the number input being skipped. (#1598)

Move event related fixes (Spoiler: 0.6.1 will have a gigantic amount of movement fixes, we postponed them because they need testing first):

  • The facing direction is now correctly calculated for jumps. (#1113)
  • Menu calls through event commands (Menu, Shop, etc.) happen now immediately instead of waiting until a movement finishes. (#1559)
  • Movement commands targeting vehicles that are not on the map are now queued until the vehicle appears on a map, before the Player would hang when Proceed with movement was used. (#1580)

ChangeHP, AddState and RemoveState match now the RPG_RT behaviour: (#1481)

  • HP changing is not possible when an actor is dead
  • If ChangeHP kills a character, it adds the Death state to that battler
  • When Death state is cured it always sets the HP to 1
  • When a character dies, all the other states are erased, the defense, charge, gauge and stat modifiers are reset, and the current attribute shifts erased.
  • When a state is added, all states with priority <= max_priority – 10
    are cleared. (#1489)

When the default cancel option in a `Show Choice` is an unused choice, e.g. when you have a Yes/No Answer and Cancel is the 3rd, non-existing, the Player does not crash anymore (#1634).

The ChangeClass command removes now the equipment. (#1657)

Battle

This release features a gigantic amount of battle changes especially to the algorithms and the RPG Maker 2000 battle UI. The RPG Maker 2003 battle UI did not receive many improvements. We want to handle 2003 in a later release but all the algorithm changes also apply to RPG Maker 2003 battles.

List of issues / pull requests: #1102, #1371, #1447#1448#1449#1451#1539

RPG Maker 2000 only

There was a gigantic amount of cosmetic changes to the RPG Maker 2000 battle system, so we cannot list all of them:

Dual attack and dual weapons are now implemented (#480#1540)

The victory message has correct amount of delays.

In some cases the amount of SP recovered reported -1 instead of the real value.

When an ally receives damage the screen shakes now.

Dead enemies cannot attack anymore.

When you hold Cancel while a battle executes the battle will stop.

The battle message box was completely rewritten. All the messages generated should now match the RPG Maker 2000 behaviour. including most of the delays. We won’t list them here as the old message box was completely incorrect.

When an ally is targeted no battle animation is displayed. Instead the sound effects of the first 20 frames are played, everything else is cut off. (#1377)

The battle state machine we use to handle the battle state execution was completely refactored. This makes the code more maintainable. (#1573)

The word-wrapping algorithm of RPG Maker 2000 v1.61 hung the game when the word was longer than the line. (#1570)

Auto battle supports now attack-all weapons. (#1540)

The Defend command ignores the agility and is executed first. (#1560)

Restriction changes are now applied even during turns. This means an actor who just received a “No Move” restriction won’t attack in this turn anymore. The same applies when the actor runs out of SP before invoking a selected skill. (#1538#1560)

When a state was healed right before an attack the state can be caused again.

While holding the Decision key the battle execution speed will be doubled.

RPG Maker 2003 only

States which resulted in the inability to move (Sleep, paralyse, etc.) never auto-healed because the turn count was not increased. This made many games, OFF and Mother: Cognitive Dissonance among them, much harder. This already worked in 2k. (#1276)

Various visual fixes for the RPG Maker 2003 Battle system improve the experience in Mother: Cognitive Dissonance: (#1605)

  • Battle backgrounds are now animated
  • Background or Terrain loading is now correctly handled, including battle tests
  • The traditional battle style shows now a SP box in the skill selection and hides the SP in the actor list
Both

When a monster is killed by an event command the death sound plays now. (#1439)

Battles, victories, escapes and defeats are counted now. (#1439)

The skill “Life gift” heals now the correct amount in Vampires Dawn. (#1128) A similar issue with incorrect MP recovery was fixed in DBZ: The Legend of Z. (#1374, #1480)

Status effect immunity of items is now supported.

Battle Animations don’t block the battle interpreter anymore.

Battle music starts playing now when the transition from the map starts, before it started after.

In many places the sound effects were wrong, some examples:

  • Confirm and cancel sounds were missing or played twice
  • Confirm sound was played when you pressed enter while a battle action was executed
  • Items didn’t play the item use sound

The custom skill name of the actor is only displayed when the “rename skill” checkbox is selected.

Weapons that inflict states inflicted the wrong states.

The Skill menu remembers now the cursor position.

Buffs and Debuffs stack now correctly.

Items and Skills that affect groups only reduce the SP once.

State probability respects now the armor resistance.

The battle is over when the whole party has a “No Move” restriction and the chance of recovery is 0%.

When having an ability that halves SP cost the halved SP are rounded up.

Equipment that protects against an element works now like a buff and shifts the attribute.

All states with a recovery rate of >0% autoheal now after a battle is finished even if they can persist on the map. (#1392)

Attacks that target all enemies do not hit hidden enemies anymore.

The battle windows are now animated and slide from left to right.

Self-destruct shows now a zoom-fade-out. (#1452)

Medicine is now usable by any actor in battle, but when the target cannot use the medicine it will silently fail. (#1482)

Automatic state heal happened one turn too early. (#1504)

The Random Encounter algorithm was redone and matches now the RPG_RT implementation. (#1455)

The critical hit algorithm combines now the critical percentage for actor and weapon correctly and equipment that prevents critical hits is supported. (#1487)

The algorithm for physical attacks matches now the RPG_RT algorithm. (#1511)

The RPG Maker 2000 battle uses now the correct algorithm to determine the turn order. (#1519)

The SP required to use a weapon or a skill are now correctly calculated. (#1511)

The skill window remembers now the last selection per actor. (#1525)

Fixed equipment (curse) is now implemented for items and states. (#1562)

States that grant 100% dodge are supported now. (#1563)

Savegames

Jump and Crouch didn’t work anymore in Ara Fell after loading a RPG_RT savegame in Player. (#787)

After loading a savegame in Peuteris Grey the scrolling began to induce motion sickness (#1026).

The save count fields are now respected: When the database save count mismatches all common events are reloaded from the database and when the event save count mismatches all map events are reloaded from the map. (#1203, #1441)

Saving of tile substitution is now supported. (#1266)

Reading switches or variables does not resize the array anymore. Only write operations will do this. This fixes Witch’s Heart when the savegame was written by RPG_RT. (#1360, #1475

Steps are now counted and stored in the savegame. They are only used for applying damage when an actor is poisoned. (#1472)

Continuous Flash effects are supported now and the flash state is correctly saved and restored. (#1501)

Many party and event related fields are now correctly saved. This is the main cause of the regressions in loading old Player saves. (#1499, #1502#1522)

The player character was not visible in Makoto Mobius because the last actor in the savegame was not initialized. (#1514)

When loading a savegame that had no events running the event running on the main interpreter was not deleted. (#1565)

When the title screen was disabled in a RPG Maker 2003 v1.10+ game pictures were not restored when loading a savegame. (#1571)

Various gameplay changes

The ExFont resource is now automatically extracted from RPG_RT.exe and used as the ExFont graphic in Player. This will help a lot of games that use custom ExFont like Alter A.I.L.A. Genesis and Mother: Cognitive Dissonance and (#605)

The debug scene, accessible through F9 when TestPlay mode is active, got new features: Besides variables and switches you can now change gold, items, start battles (#1431) and it is now accessible in battles. (#1432)

The improved debug scene is full of new features for your testing (and cheating) pleasure.

Many minor text alignment issues across many scenes were resolved. (#1512, #1520)

The load/save screen has now animated scrolling. (#1520)

Escape & Teleport play now the skill sound. (#1591)

The window showing a description at the top in many scenes has a special behaviour: Whitespace is only half the normal size. (#1611)

The Shop scene received multiple fixes:

  • FaceSets are now displayed in the message window (#1614)
  • It was possible to sell items in an empty inventory which crashed the Player (#1615)
  • The arrows which indicate if a new equipment is better or worse use now the correct algorithm (#1590, #1615)

The unpopular 2k3 Status scene uses now the terms from the official RPG Maker 2003 release instead of the RPG advocate translation. (#1616)

Vehicle BGM plays now correctly: When you enter a vehicle the old map BGM is stored and when you switch the map the vehicle BGM continues playing. After leaving the vehicle the stored BGM is restored, except when the map changed, then the map BGM plays. (#1619)

The Equipment scene shows now a “>”-arrow between the old and the new parameter value. (#1660)

Items that invoke skills behave now correctly in the menu. (#1526)

Moving the entire party in the back row is not allowed anymore. (#1444)

The Items Tab in the RPG Maker Editor has a very obscure behaviour: The equipment settings where you can choose between Actor and Class are a global setting! This means when you change it to Class, the class check applies to all items (same for Actors). We find this highly counter-intuitive but support it now for compatibility reasons. (#1438)

The radio button in the red circle is a global setting! This changes the usability for all skills to either actor or class.

The logic for skill usability on the map and in battles is very chaotic and we should document it someday. We found one more edge cases: Skills that only affect states which end after battle are not usable on the map anymore. (#1439)

Changes to the Walk through wall (hold CTRL) feature in Test Play mode (#1439):

  • You can’t walk out of the map bounds anymore
  • While an event move route is active the feature is disabled
  • The feature is disabled while in vehicles

The bush transparency effect only applies to characters on the “same as hero” layer.  (#1465)

Our image cache didn’t differentiate between transparent and non-transparent images: When a picture was loaded twice, once with transparency and once without, both were transparent. (#1576)

When a map has save/escape/teleport flags set to “inherit from parent” and the map is moved to the root of the tree the flags are now handled like “enabled” even though there is no parent. (#1597)

FileFinder

Because Windows is case insensitive we must emulate this behaviour on all platforms, otherwise files are not found when the case doesn’t match. Until now we only supported this for A-Z, but the game Blue Star Story required it for Ś->ś. We switched from our naive algorithm to the ICU library which supports lower-casing for the whole Unicode range. (#839)

More fun with Unicode: There are multiple ways to store many glyphs in Unicode, e.g. ä can be stored as the codepoint ä or as a+” and OSX uses the second option which breaks loading of almost all files because the game and the filesystem name mismatch. The Player normalizes now all strings, again using ICU. (#1530)

The popular game Violated Heroine was unable to load assets in subdirectories on Windows because the directory separator was handled incorrectly. (#1383)

The macOS version will not crash anymore when a directory is accessed that is not readable. (#1476)

Via hex editing it is possible to put assets in subdirectories or even navigate upwards with “..”. The Player attempts to convert these to a canonical path by removing redundant path components. The VIPRPG game エターナリ草 referenced “Picture\map\\block01” and we did not to convert \\ into \ before, resulting in “image not found” errors. (#1542)

When the path to pictures contained a slash “/” (only possible with hex editing) the path separator was not properly transformed on Windows which meant many assets failed to in Violated Heroine. (#1629)

When the RTP is not installed or only partially installed the Player will always emit now a noisy warning when any RTP asset is requested. The warning displayed on Player start is gone. (#1630)

Building

Building for Windows (with vcpkg) is now supported by our CMake script. Which means this is the only supported way to build for Windows now. The Visual Studio project files were removed. (#1270, #1536, #1537)

The install path for manpages on UNIX is now customizable. (#1533)

The Android port was updated to SDL 2.0.9. This fixes startup crashes on multiple devices with broken Adreno GPU drivers. (#1609)

Ports

BSzili ported the Player to AROS (#1492). Check out his website for obtaining the Player.

The Nintendo Switch port received a major update: The port compiles now with the latest version of devkitA64 and supports hardware acceleration which gives a huge performance boost. Debug tracing is now possible with nxlink. (#1607)

Other

On certain hardware configurations the audio on Windows was broken when the WASAPI backend was used. This only affected our nightlies after 0.5.4, because for this release we used an older version of SDL. (#1405)

The seed used to initialize the Random number generator is now written into the logfile, making game recordings/replays more deterministic. (#1446)

The WildMidi library searches now first for /etc/wildmidi/wildmidi.cfg because the timidity.cfg contains soundfonts on many distributions which WildMidi does not support. (#1467)

liblcf

Our library for reading and writing RPG Maker files got major updates! When you load any RPG Maker file (there are LDB – Database, LMU – Map, LMT – Map Tree or LSD – Savegame) with liblcf and save them without modifications the result will be now perfect down to the byte for 99.9% of all files. The exceptions are files with custom modifications due to patches. We cannot handle them, but we support custom headers and they are preserved.

The reading and writing was tested against 1500 games and we hope that this gave us enough coverage to say: Our read and write code is now perfect!

Additionally we handle now all the default value corner cases, e.g. there is in some cases a difference between a missing and an empty field. E.g. when the party field is missing it means that Actor 1 is in the party, when it is empty it means the party is empty. (#229, #234, #242, #268, #277, #279, #283, #284)

liblcf will not choke anymore on corrupted chunks. This makes a few games playable for the first time in EasyRPG Player, because when liblcf cannot parse it, Player will not play it. Games that start now are Der Sinn des Lebens, Devil or Angel, Kroetenstuhl, Rick Jones Hunters and Monster World RPG. (#249, #250)

All chunks are now identified which means there is no field left anymore whose purpose is unknown. This allows us to make saving in EasyRPG Player match RPG_RT behaviour but we are not fully there yet! (#261, #264)

Music and sound effects are now correctly restored from savegames. Before pitch and volume changes were ignored. (#262)

String parsing was optimized which gives a minor parsing speedup mostly noticeable on slow systems. (#273)

This affects some users and developers: Our gigantic RAM eater reader_struct was split in smaller files. This means you will not run out of memory anymore when building e.g. on a Raspberry Pi and the compile speed was increased. (#289)

The new animation type “Step frame fix” added in RPG2k3E is supported now. (#306)

liblcf for Developers

A new helper function PrepareSave was added which can be used before writing LDB, LMU and LSD to increase the save count. (#266)

Most of our liblcf code is generated through scripts but one part still used a boost preprocessor macro. This was now replaced with a jinja2-template, too which removes the last usage of boost in our code. (#238)

When the CMake version used for compiling liblcf is older than 3.10 the bundled EXPAT and ICU CMake files are now used for finding the libraries. In newer versions of CMake they are provided by the host system. (#275)

The Save chunks for Player, Event and Vehicle inherit now from a common base class SaveMapEventBase. This matches the RPG_RT behaviour and allowed us to remove many code duplication in Player. (#282)

Our code generator supports now emitting of constants. (#287)

All liblcf structs are now equality comparable. (#291)

As for Player building for Windows (with vcpkg) is now supported by our CMake script. Which means this is the only supported way to build liblcf for Windows now. The Visual Studio project files were removed. (#294)

The tarball created by autotools contains now the CMakeLists.txt. (#297)

Headers and Sources are now sorted and listed in both Makefile.am and CMakeLists. The CMake generator supports now creating of logical groups you should know from the Visual Studio project. (#298)

Mimetypes are now provided and install for the RPG Maker files on GNU/Linux. (#301)

EasyRPG Player 0.5.4 “Antidote”

This release took us far longer than we expected last year and as you can see the changelog is a bit short for 1 year and a few days of development time. We are always critical low on developers and this year we all had a serious lack of time and other personal issues. Though don’t worry we can still provide you with some cool additions that will improve playing a lot of games.

There are tons of battle fixes in the queue but due to there sheer complexity we decided to delay them for the upcoming 0.6 release, hopefully also in 2018. Sorry!

Why you should use EasyRPG Player

A few hours ago we were notified that the author of Deep 8, Independent Art, created a video for us which lists all the advantages of EasyRPG Player over RPG_RT. Thanks for this nice video, it is really a great summary!

Watch the Video (Link goes to Youtube)

Regressions fixed

Due to a change in our shutdown code the Player crashed when closing the Player while in a battle (#1298).

Technically this was not our fault, but because of a bug in the libpng library we used on Android the loading of some graphics failed in Violated Heroine ( ͡° ͜ʖ ͡°) (#1311).

The support for RPG Maker 2000 1.61 placeholders erroneously prefixed the “Critical Hit” message with the name of the actor in older RPG Maker 2000 versions (#1291).

Transitions

All missing transition effects are now implemented (#900). This includes:

  • Random Blocks
  • Random Blocks Up/Down
  • Zoom
  • Mosaic
  • Wave effect

Furthermore Transitions are now implemented as “Drawables” (Graphics rendered by our engine) which means frameskip and fast-forward works now as expected while a transition is active (#1094). The timing of transitions is now also adjusted, e.g. the Game Over scene has slow ones but menu to map is fast.

As in RPG Maker when a battle starts the screen flashes now twice and then a zoom effect onto the actor happens (#1369).

We would like to thank our new developer Sormat for this significant contribution.

Performance

The Tone effect performance was significantly improved and is now 50% faster for single effects (Tone or saturation) and 100% faster when both are enabled at the same time (#1380). This change is mostly noticeable on our CPU constrained ports (3DS).

Audio

All sound effects are now stopped when the sound “(OFF)” is played. As a bonus this also applies to inofficial translations where this string was translated to e.g. “(Brak)” or “(Kein Sound)” (#1120).

Battle

Monsters with the “flying” attribute move now up and down in the RPG Maker 2003 battle system (#1220).

Flying enemies are now really flying

A bug in the alpha channel handling in the Tone Blit code resulted in strange looking weather effects and colored boxes when a battler had an effect in the RPG Maker 2003 battle system (#1225).

Due to a bogus check fleeing from random encounters was not possible in RPG Maker 2000 battles (#1350).

The placement for party members was incorrect in RPG Maker 2003 battles (#1399).

The RPG Maker 2000 battle system reported hidden enemies in the initial enemy appearance message (#1370).

Turning a switch OFF after an enemy action contained a bug and turned the switch ON instead. The switch toggling was also broken for some types of enemy actions (#1419).

The turn counter for RPG Maker 2000 battles did not increment before determining the enemy actions. This means all enemy actions that depended on the turn counter were executed one turn too late. Together with the previous bug this fixes the battles in Heaven and Hell Episode 3 (#1419).

Our Player crashed when using Switch Skills in 2k battle, when there was no target. Now we show “???”, like RPG_RT does (#1440). This only affected games made with the English RM2k release.

Map and interpreter

The game COLORS: Lost Memories uses a modified database with actors of level 0 (normally the minimum level is 1). This corner case is now supported though the game is still unplayable due to interpreter timing issues (#1248).

In Razas standing characters were shown with the incorrect movement frame “left” instead of “center” (#1198).

When a move route was active while boarding the Airship, the shadow of the Airship already moved with the route while the ship itself was still playing the ascend animation (#1268).

Battle commands were incorrectly loaded from RPG_RT save files and the handling of classes was updated (once again) because we figured out that one field in the save game is not “class_changed” but “battle_commands_changed” (#1287).

The “Change Class” and “Change Battle Command” event commands support now range based operations on multiple actors. This is an undocumented feature not exposed by the RPG Maker editor interface (#1288).

The charset animation frame was not reset to “Middle” when a Jump happens or “Stop Animation” is used (#1289).

Pictures with “Scrolls with Map” setting were rendered at the wrong position after a savegame was loaded (#1296) and the last picture of a savegame was not restored at all (#1299).

The viewport got misaligned by 2 pixels when the map reached the map border (#1300). This is a strange bug which we already fixed twice before but it reappears under different circumstances.

After the strange “Set Vehicle Location” behavior encountered last time which allows moving the party when outside of vehicles (#1257) we got another report. The game 呪いのこうもりさん uses this command for changing maps. This usually crashed RPG_RT but when the event ID is valid on the new map it will magically work. Our Player emulates this now with a teleport, this doesn’t fully match RPG_RT behaviour but is close enough (#1303).

A black screen occurred after using the Portable Portal given by the Witch in Violated Heroine. This was a timing issue caused by the use of “SetMoveRoute” with an empty route. An empty route was processed like a normal move route, therefore the interpreter was off-by-one frame and this race condition broke the code. Empty move routes clear now existing move routes and result in a delay of 0 frames (#1308).

Spritesheets (a new RPG Maker 1.12 feature) were broken and only worked once (#1331).

For implementing screen shake, tiles that were outside of the map were rendered black to avoid graphical glitches, but Frozen Triggers uses a modified 1×1 tile map, therefore the whole screen was drawn black. The implementation was changed and combined with the previous fix the game is now fully playable!

Frozen Triggers went from completely unplayable to fully playable. The scripting in this game is insane, a must play!

Here a longer gameplay video, they are desynched, which can have various reasons, but you see the difference ;).

In Touhou Mother party members became solid after battles or scene transitions. The issue was that the max_stop_count (used to measure how long to wait between move commands) was overwritten on event page changes even when a custom route was executed by an event command  (#1344).

In Witch’s Heart the Hero was moved to the top-left corner when landing while on the broom. The broom is implemented as the airship vehicle and the Player reported “Not in Vehicle” already while the airship was still descending which caused timing issues (#1349).

Play Memorized BGM did not work after a BGM fade-out (remained silent, #1354). This is the 2nd bug fixed in Witch’s Heart.

When a new map loads all events have one frame of execution time before the fade-in happens. This behaviour was already implemented but event sprites were not being updated, resulting in visual issues like e.g. instant visual changes after the transition is finished (#1358). This is the 3rd bug fixed in Witch’s Heart.

Message substitutions of e.g. \n[1] with a hero of name \n[1] resulted in an endless recursion/hang (#1379).

Terrain damage is supported now. Furthermore when the party steps on dangerous terrain a red flash appears now when the receive damage (#1389, #1393). Items that prevent terrain damage are also supported. Therefore you get the full game experience now when you walk in the desert of Vampires Dawn without sun protection.

When a vehicle is entered and no further movement happens, the vehicle still faces to the left but the hero actually faces forward. The facing of the vehicle is now updated to match the hero facing direction. This change does not match the RPG_RT behaviour but slightly improves the user experience and has no possible regressions (#1403).

When the boat or ship is on walkable terrain (usually not the case for water) the airship can land on the boat or ship. This seems like an RPG_RT bug and we don’t know a single game that depends on this feature (#1404).

Calling the menu is disabled now while the player has an active move route (#1404).

Events with “Same as character” layer priority can’t move through boats and ships anymore (#1404).

Two handed weapons are now fully supported in the equipment scene and by the “Change equipment” event command (#1397).

When a monster rapes the heroine in Shitigadianzu the progress bar is now filling up. This was due touch events not triggering while a move route was active. For this change we will not provide a video, because we would need to censor three quarter of the screen and disable the sound (#1412).

The movement was glitchy in the currently unreleased game Super Crystal Hunter because “Fixed direction” movements were not handled correctly (#1413).

Using the computer multiple times in log.[in] does not result in a black screen anymore (#1416). Our interpreter executed the wrong event commands after “Show/Hide screen”.

Ports

All our ports support now all music formats and libraries, however, 3DS may have performance issues with some formats (#1332, #1339).

The 3DS was migrated from the deprecated graphic library sf2dlib to the official library citro3d. This fixes flickering issues and gives a minor speedup (#1422).

You can play now the most memory hungry game on PS Vita: Hero’s Realm (#1340).

The Player runs now as homebrew on the Nintendo Switch  (#1337). See the previous blog post for more information.

BSzili ported the Player to MorphOS and AmigaOS4 (#1415). Check out his website for obtaining the Player.

Misc

The Player checks the dimensions of assets and issues a debug log in the console/log file when they don’t match the expected dimensions. To reduce the amount of useless debug output this check was disabled for Monsters, Panoramas and Pictures (#1333).

The name input scene supports now Traditional Chinese (#1307).

Traditional Chinese in the Name Input Scene

Loading of custom ExFont files is supported now. ExFont is an embedded resource in RPG_RT and is substituted when using the strings $a-$z and $A-$Z in messages. When an ExFont.bmp/png/xyz is in the game directory, EasyRPG Player will load now this file. Vgperson already bundles a ExFont in their game translations (e.g. The Grey Garden, Witch’s Heart and Wadanohara), we hope other game creators/translators will join soon ? (#1352).

Witch’s Heart uses a custom ExFont around the actor names
The dead skull was before highly misleading
By far the worst: The font of Mr. Saturn is completely unreadable. This game bundles currently no ExFont, you have to provide it by your own!

The Skill Menu of a character can’t be accessed anymore when they have a “Do Nothing” restriction (#1395).

When a skill is used in the menu the first sound effect of the corresponding battle animation is now played (#1397).

The actor target scene used to select a skill target did not render the skill costs correctly (#1397).

The hero class is now checked when determining if an item is usable (#1397).

When accessing LCF data structures, sanity checks were added to ensure that no invalid objects are referenced which result in crashes. Most of these checks won’t be ever encountered, because otherwise games in RPG_RT would simply fail in most cases. We do not recommend running games from untrusted sources in EasyRPG Player but this change should reduce the exploitable attack surface a lot (#1259, #1345).

Due to multiple bugs in the SDL2 library concerning fullscreen mode, the Player starts now always in windowed mode and immediately toggles fullscreen mode. This fixes missing title bar icons under Windows and incorrect/pixelated graphics when switching back to windowed mode under macOS. Additionally, the zoom hotkey determines now the desktop resolution which allows higher zooming levels (#1364, #1406).

Two new System database chunks have been identified. One can be neglected, but the other can be used for the equipment usage in 2k3 mode (#252).

For developers

The CMake build scripts for Player, liblcf and the Tools were completely rewritten to use modern CMake. These scripts support now compiling for all major platforms (Windows, Linux and macOS). We slowly plan to migrate most of our targets to CMake to reduce the maintenance burden. This includes deleting the Visual Studio project files and most of the platform dependent Makefiles (#1365).

The SDL UI class was refactored and split into separate files for both legacy SDL and SDL2. This makes the SDL2 UI code much cleaner, because we have lots of workarounds in the legacy SDL code which were not needed anymore in the newer versions (#1327).

Building against SDL2 mixer version 2.0.2 is supported (also recommended because of better mp3 support) now (#1297).

Compiling on platforms that do not have a “d_type” field in the directory entry structure is supported now (#1334).

Our App works now with “targetSdkversion=26” on Android. All apps updated after October 2018 must support this (#1323).

Compiling on platforms where int32_t is not defined as int (but for example as long int) is supported now in both liblcf and Player (#1326).

liblcf (mostly for developers)

Our data access library (liblcf) can now better decide which fields and flags it needs to write for different database versions (#237, #240).

Bugs in the writing of RPG::Actor chunks were resolved  which increases the compatibility with RPG_RT (#235). There are further works in progress which will result in perfect reading and writing of all LCF files but we were afraid of regressions, therefore this must wait until the next release, sorry. :)

The defaults for the terrain grid values were fixed, this should solve some overlapping battler issues which occured in RPG Maker 2003 games (#247).

All enumerations provide now a string representation (#241).