Medieval Realms 0.0.4

Feb 9, 2018

Medieval Realms 0.0.4 may not bring many immediately visible changes, but it does represent a significant “under-the-hood” improvement to the MR Plugin. Some of you may have noticed that the server had been crashing a couple of times each day. These crashes were tied to the initial implementation of the AXES system. Originally, AXES used a SQLite database, and that approach caused a Java Virtual Machine crash in native code—likely due to a race condition. The more people who joined, the more frequently the server would crash. Not good.

Rolling back the plugin wasn’t an option I was willing to consider, as many players had already established their AXES protections. Instead, I quickly rewrote the database handling code over the course of eighteen hours, switching from SQLite to MySQL. I also created a migration tool to transfer all existing AXES data from SQLite into MySQL, ensuring that everyone’s protected areas carried over seamlessly.

The good news is that the server is now completely stable. Not a single crash has occurred since deploying the updated code. The downside is that everything else I had been working on had to be put on hold to fix this critical issue.

You may have noticed I started introducing a currency system using ingots. Re-establishing this system is now my top priority, as players will need currency to buy and sell land on the server. Keep in mind that I’m just one person doing this in my spare time, on top of a full-time job, a mortgage, and family commitments. Please be patient while I get everything back on track.

It may take a few weeks to complete the currency system, but I want to ensure it’s done correctly and won’t cause further problems. In the meantime, protect your most valuable creations with your four initial AXES claims. If you see me in-game, I can also help you set up temporary protections using the LUA Area Protection script. Once the new currency system is ready in MR 0.0.5, these temporary areas will be removed, and you’ll need to secure them yourselves using AXES.

Additional Changes

  1. Migration from Player Files to MySQL:
    Until now, player statistics were stored in serialized binary files, which are difficult to manage, extend, and update. By moving all player data into MySQL, we can more easily maintain and expand the system. Unfortunately, this shift means that all player statistics have been reset. I promise this is a one-time occurrence. On the bright side, if you’ve died in Medieval Realms before, your “times died” counter now reads zero again.
  2. A New Currency: Crowns
    After testing Mithril Ingots as a currency and listening to player feedback, I’ve decided on a better way to handle land transactions. Don’t worry—your Ingots still have value, and I’ll explain exactly how in version 0.0.5. For now, 0.0.4 introduces a preview of the new medieval-style currency system: Crowns.Previously, you earned one Mithril Ingot every six hours of game time (though serialization issues meant not everyone received them consistently). Now, players will be awarded Crowns on a much shorter time interval. Initially, land chunks will cost 1,000 Crowns each, and every player will start with 4,000 Crowns—just like the original four ingots. Please note that exchange rates and values will be adjusted as the system matures. If you still have Ingots, I recommend using them by Friday so you don’t miss out.

Thanks for hanging in there, and I’ll see you in the Realms!

 

ChangeLog 0.0.4 (09-02-2018):

  • [Bugfix] Server stability improved through a complete code rewrite