Build from Source on the server itself

A new update is now available, introducing seasons and more!
Latest hotfix: 0.8.0.2 (2024-12-30)
  • Update: This only happens on a linux/unix server. It works fine on a Windows server.


    What is the Plugin_JDK_Path that should be loaded in server.properties if compiling your plugin live now called? I am running a *nix dedicated server. I have been battling this to get my plugin to load from source. I have been testing and debugging but have to compile and send it to the server every time. Here is what I did which semi worked:1.) Made a directory named my plugin name, RavenTools under plugins and put in a file named projectinfo.txt with contents


    Code
    name: RavenTools
    path: /home/shortybsd/gameservers/risingworld/src


    I put my plugins source under the above path location. Here is the layout

    The server errors with


    It unloads all other plugins on the server. I can see my class file exists under plugins/RavenTools where it compiled it (Class file). If I compile and put on server (Compiled Jar) and get rid of my source it works flawless, zero errors. I am thinking it might be a java issue using the wrong JDK as I have several on my production server. I need to specify Java 20 or direct it to my gameserver risingworld/Data/Java/JDK so it uses that specific version. Any help would be greatly appreciated. Sorry for the wall of text

  • name: RavenTools
    path: /home/shortybsd/gameservers/risingworld/src

    Erweiter mal deine plugin.yml mindestens um:

    main:net.ravenlife.raventools.RavenTools

    ####

    Expanding your plugin.yml by at least:

    main:net.ravenlife.raventools.RavenTools





    Alle Verfügbaren Parameter:

    ####

    All Available Parameters:

    Code: plugin.yml
    name:RavenTools
    main:net.ravenlife.raventools.RavenTools
    version: 0.0.0
    loadorder: 10
    author: shortybsd
    description: "Was mache ich"
    license: BSD 2
    website: https://forum.rising-world.net/thread/


    create-a-plugin

  • I already have that in the yml.

  • Another Update


    I made a new project, named it RavenLifeTools. Clean project, I made test environments for the server both on windows and linux (CentOS 9 Stream) and unix (FreeBSD). Both linux/unix systems give this error yet compiled the Class file. I decompiled the class file to see if any of my code got butchered. It was flawless.

    It works perfect with no issues in a windows environment. If I compile the mod as a Jar it works flawless on both windows and *nix. Here is a screenshot of my console



    here is my windows loading my source fine

    and here is my dev environment

  • Sorry for my late response! It's weird that it works on Windows but doesn't work on Linux :wat: But this indicates that there is an issue with the path... in fact I was able to reproduce this on my end!


    Unfortunately it requires some changes to the way how the class files are located... we will fix this with the next update, however, in the meantime, I've prepared an updated runtime jar file for you. Just download the "Runtime.zip" that you find attached and extract the "Runtime.jar" to your server directory into "/Data/Java" (and replace the existing file there). That should do the trick ^^


    If it still doesn't work, please let me know!


    What is the Plugin_JDK_Path that should be loaded in server.properties if compiling your plugin live now called?

    Oh, actually this setting no longer exists, because the server (and the game) are already shipped with a JDK, so there is no need to define a path to a JDK ^^

  • That should do the trick ^^

    Awesome Red, thank you so much friend. I greatly and my community greatly appreciates you and everything you do sir. Works like a charm!


    Oh, actually this setting no longer exists, because the server (and the game) are already shipped with a JDK, so there is no need to define a path to a JDK ^^

    haha I figured this after seeing the JDK path being stated and manually looking in risingworld/Data/Java/JDK after going thru each of the errors that hit ;)

    Thanks again for the fix, I am back to making a compass HUD that can be used any time, coordinates tracker than can moved at runtime as well as save state of UI (shown or hidden) and save state of position it was last in. Hammering away currently =D

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!