Server upgrade progress

I will add here the current server upgrade progress. Stand by for more updates in the future. I am using that to update you as well as a to-do list for myself.

Monday 02-24:

  • I installed a (hidden) development server to test stuff and installed only the websend plugin. All others are still up for testing.
  • I managed to upgrade the Websend plugin after several iterations using AI coding tools to get it running, ditching several old parts of the code that are not compatible or safe anymore. Websend processes all our custom commands, economy etc. It seems to work fine sending and receiving commands.
  • There is an issue (I expected that) with displaying enchanted stuff from the shop. The new version of websend had to ditch some very old legacy code that managed the handling of enchantments and now uses a different process. Right now I could identify a correct syntax for the code to display e.g. deposited enchanted items. I still need to get the backend code to format it correctly.
  • I also found out that minecraft is now getting pickier about displaying text. All the nice formatted shop text is at risk of breaking somewhere now. I could fix some obvious issues but expect to find more.
  • I also then need to see if stuff currently in the shop or deposit would break with the current websend version.

Tuesday 02-25:

  • I found out how to program websend so that items in the inventory can be converted into a text to store in a database and that the text is able to be converted back in the game in order to be given to a user.
  • What is currently broken is to actually remove the item from the user inventory after it has been deposited or sent to the shop.
  • What is also broken right now is how to get stuff from the deposit and give it to the user if it was deposited with the old minecraft version. There are several ways to fix it, I just have to find the most time-efficient and reliable way.

Wednesday 02-26

In order to translate old deposit enchantments into ones that can be accepted by the current minecraft version, I need to be able to translate them. Do do that, I have created a version of Websend that knows both the old and new minecraft version and can accept both enchantment versions. The issue is now to find out how to convert them. In the past, all enchantment <-> database transfer was done through the inventory of a users. So either I have to start a temp server and then write a code that takes every item in the inventory with enchantments, gives it to a dummy user with the old method and then takes it away immediately again with the new method. Or I need to find a java code that can somehow handle items without the user being there – but I do not know how that would work. So I likely need to test the first method and see how fast and practical that would be.

Friday 02-28

After a LOT of tinkering yesterdey, I came to the conclusion that there is no automated way to translate the enchanted items in the store and deposit through a native in-game mechanic for use in the new version of minecraft. The old format has been discontinued in version 1.17 and the new version has been introduced in version 1.18. It’s not possible to integrate both versions in one plugin.If we want to have the current store and deposit enchanted items (including potions, enchanted books, books with text in them, mob heads etc etc) we have the following options:

  • Find a programmatic way that goes through the text and translates it. The text is similar but not the same, and a program has to be made for every type of item. Workload: 2-3 days
  • Do it manually, only on request. I.e. I will give manually people a few important items in-game, we delete the rest (a lot of the items in the deposit are by users that have not been around for a while). Workload: Not too much, but tedious.
  • We re-open the old server for a short while, let everyone withdraw those items and delete what was not withdrawn later
  • We just delete everyhing.

I am also working already to upgrade a lot of other custom plugins to 1.21.4 with one proving to be quite difficult. But there is progress in general. The main biggest progress is that the Websend plugin is now 100% finished and works very well.

7 thoughts on “Server upgrade progress

  1. Talking about enchanted things – the question is, how much efforts will take re-obtaining them.

    Dropping all the enchanted items in my case, provided my “tamed” villagers survive and retain their skills:

    – I have enough netherite ingots (most tedious thing to obtain) to re-create the netherite stuff, so it will be just a matter of trading with villagers and buying the books
    – potions are just concocted anew, also not a problem

    If villagers are gone AND enchanted XP bottles (in one of my deposit slots) are gone as well, well, I will spend some time to regain both, but it’s also not a joy killer.

    If netherite ingots are all gone, well, it would mean weeks of scavenging Nether depths to get that all back.

    So, basically, if all the other stashes survive, it’s not a catastrophe at all, just some time to re-obtain useful stuff.

    • I am on Stayen side on this one, if the items are only in the shops and not my current inventory on my plots or my person I am ok, if I have to recreate and recover that would make me sad.

      Since you were talking about the ahop

      All my items are in my chests in the empire and kingdom plots. Besides the items I use on my person.

  2. I agree to TorresFury.

    I could take every valuable item of mine on the character, or into its inventory – those I invested very much time into obtaining. The books, in fact, are relatively easy to re-obtain.

    That includes, for example, not only enchanted netherite armor, but also such things as conduits and beacons (both very tedious to re-obtain).

    The rest can be crafted/traded/whatever from scratch.

    Thanks!

    • I don’t undestand exactly?

      On the website under Worlds it says since ever it would not make sense to build (and possibly store) too much in darklands (now on that temp server…) IT WILL BE DELETED every couple of months (or even weeks, depending on Minecraft updates). Deletions will be announced at least a week in advance and it will instead delete and regenerate completly? Now it just took a little longer than a couple of monthes… to update… and we had the chance to take out stuff.

      So why panicing now over a fact that’s well know and written down since long time?
      More important is that the server is going to run properly and all little things a working fine – no?

      Give Unc that time – than run for your enchanted stuff over there or create it from scratch.

      • Come on, what panic are we talking about?

        Personally, I am OK to start completely from scratch. It will be mostly tedious in the beginning, but the latest Minecraft version has quite a number of new entities, minor bosses and challenges to make the advancement quite a thrill. Also, regaining the useful stuff, with all the collected experience, is also a fine challenge.

        And of course, I can only thank Unc for all his efforts.

Leave a Reply