Posts by yahwho

    Many thanks for your input Minotorious always appreciated :thumbup:


    I think I may just remove the final modifier - they are private after all!


    Scratch that! Removing the final then gives me even more warnings saying the fields can be final! :lol:


    I'll just use ints X(

    I would recommend using switch anyway as it is faster than if

    Yeah I tend to write the statements as chained ifs and then use the IDE to convert to switch once they are completed. It's just I can follow the ifs easier when coding as it's what I'm used to 😁




    btw removing the final flags from the variables fixes the warning but no idea why tbh.

    Very strange! Maybe it is an IDE "bug"?

    Hmm by the sounds of it I should just return to using the int then or ignore the warning. As I said, the code does compile and does work correctly. I just dislike seeing the IDE underlining "problems".


    I suppose I'm interested in the "why" of the IDE message. Because as far as I can tell the message is wrong not me. Normally, I'm wrong, so there must be a reason for the message. 😂


    The message refers to a null constant but the constants are declared with values, so not a null in sight.


    If I do b ==1 b == 2 etc. I don't get the "warning message". It appears to be related to me using the named constants.

    Thanks Minotorious thing is the code compiles and works as expected. But the IDE gives me that strange warning. :monocle:


    I don't really want to use public static int compare(byte x, byte y) because that by nature is creating another int


    byte 1 byte Stores whole numbers from -128 to 127

    int 4 bytes Stores whole numbers from -2,147,483,648 to 2,147,483,647


    I know I'm saving quite literally bytes of memory, this is more an exercise in optimisation.

    Hi folk!


    So I am rewriting my dice system at the moment, optimizing along the way. In this case changing ints to bytes... and although it appears to be working fine (it is working). I'm getting the IDE underlining telling me something isn't right?


    I've pulled out the "offending" code into a test class to show you here without all the unnecessaries.


    You'll see I get a message saying "The constant value `null` used in comparison appears earlier in the chained if-else statement. The condition never evaluates to true"


    Question; is the IDE wrong or am I wrong? :wat:



    I'm not sure if this should be in this forum? But I don't want to spam the Discussion form with something technical that possibly regards the API.


    Currently in RW, if an event such as onPlayerPlaceBlock is cancelled the player placing the block is still "charged" for placing the block. I.e. their block count is decremented by a block, or multiple blocks if multiple block placement.


    Will this still be the case in the new version? I.e. I will need to use the API to replace the used (but at the same time not used) blocks?

    I think the main reason against dev blogs, and even more so dev vlogs, is that they take a huge amount of time.


    There's a indie developer I follow who makes vlogs on YouTube about the game he's making. Each video takes him a week to script, record, and edit.


    I think it's a "not enough hours in the day" kind of problem.

    Inside you RisingWorldDedicatedServer directory where you have the win_startscript.bat post here your most recent error log (something like errorlog_1611843590545.log).


    If you are running win_startscript.bat and it closes instantly, it's because the script is failing. The error log will tell us why.

    The server would not need any graphics card as the server would never do any graphical output.


    You could use Windows Server Core for this or a Linux server without the GUI.


    The benefit of such a system is that you don't lose any resources to (effectively useless) user interfaces.

    A headless server is one that does not use a monitor, mouse and keyboard. I.e. it is headless.


    You would therefore connect to the server using a terminal and not a RDC (or equivalent).

    wa130983 I don't think you can add plugins to the demo. I've not tried myself. This is a forum for the new API (Application Programming Interface). I suspect when plugins can be used in the new version a Plugins forum will be created, or if the compatibility is not an issue then the old Plugins forum will remain your go to place to get plugins.