Posts by yahwho

    Hi guys,


    I used to use NetBean 8.2 when building my plugin for the old version of RW - with no issues with Javadoc


    However, since moving to NetBeans 17 (a long time now) I've never been able to get the RW Javadoc to work correctly. Here's an example;





    In Tools > Java Platforms > both in 1.8 and 20 SE's > Javadoc URL is added.



    I've also tried adding is at a ZIP from the Server\Data\SDK\javadoc.zip file.


    Any ideas? Having the javadoc information in the IDE would be super useful... ;)




    P.S. Also tried https://javadoc.rising-world.net/latest/ and https://javadoc.rising-world.net/latest/net/risingworld/api/ as the API URL

    I'm going to throw my two cent in.


    How about a player must craft a new workbench - a renovation workbench. The renovation workbench must be placed within the location where the renovations are going to take place, the renovation workbench itself has a chest (action key on renovation bench to open up a regular chest window) where you then must load materials into, then the player uses a chisel to change the textures/materials of blocks. Consuing the materials in the renovation bench as you go depending on what textures/materials you chose to change an existing construction block to.


    When you want to move the renovation bench, open up the bench's chest, remove all items, then press action key and hold to pickup the renovation bench. If you try to pick up the renovation bench whilst it contains materials you get a message similar to that of trying to pick up a regular chest that has materials in it.


    The chisel then can be used within a max radius of the renovation workbench. Otherwise a warning message such as: "you're too far away from a renovation workbench to use this tool" appears.

    Unfortunately it prevents npcs from dropping their equipped item, but I'd still recommend to disable it for now

    Hmm I assume this would be until the next update?


    Do you still experience this issue?

    I haven't seen this happen myself for some time. I know this used to happen on JMonkey engine.


    in this case a server log would be very helpful)

    I don't think there is any need for this. Sounds to me like this isn't the cause of the issue Bamse is describing.

    Yes it was only primitive data types I was adding to NPCs as Attributes. If it's easy from your side to implement then please do so.


    However, if it's not going to be a quick fix, please don't waste time on it - I'm sure I could write my own NPC handler for this.

    This is NPC attributes. I don't really want to have to save them manually lol


    Edit: I mean, I have to save them manually, why bother with attributes in the first place? :P

    Hi Red,


    On the next API update, can we get access to an event that is triggered when the game starts to play music to a player?


    I'm thinking things like:


    Hi Red,

    and the 2nd number is the total amount of living npcs in the world


    My thoughts here. I've set the dead bodies despawn time very high.


    I have in the past seen NPCs fall through the world particularly during chunk loading or if a player has a bad ping/connection.


    The fact that there are more dead NPCs in the area than living NPCs in the world may indicate that the NPCs are dying, falling through the world, and then triggering a loop of NPC spawns and deaths. This in conjunction with the dead NPCs not being "garbage collected" would cause an NPC "memory leak". Big air quotes here.


    I may be able to detect this via the API and delete the NPC.


    I am thinking, onNPCDeathEvent, grab the y value, start a short timer, then check the y value again. If the y value is say for example -10 units down on the originally recorded y value on the event, we could make an assertion from this that the NPC has fallen through the world and then call the npc.delete() method to remove it?


    Maybe this might work :thinking:

    Hi, does anyone know what the console command is now to set an npc to invincible?


    It used to be


    Code
    setnpcinvincible 1 || setnpcinvincible 0

    Hi Red, I've been looking in the permissions - https://forum.rising-world.net/thread/11483-permissions-new-version/


    There is a permission - createown - under blueprints. "Determines whether or not a player is allowed to create new blueprints which only contain his own buildings"


    How does this work? Does it require that the land is protected using the built-in area protection, or, does it simply look at who created the construction elements within the area being blueprinted?

    i also have that setting set to true

    Weird. No idea then. I do know that the issue was happening *all the time*. After setting to false the issue went away.


    Certainly not resources, the server has plenty.


    It was Oz who gave me the idea. He mentioned when the server got stuck at 10% loads - he noticed that the world was "rolled back" - sometimes up to an hour (when the database in memory should be writing to file every minute).


    Having just written this, maybe it was the AV software that was causing it? :thinking:


    It would be nice to test this theory, but I don't like the idea of almost intentionally putting the server in a position where folk could loose an hours build work.


    I know I would be aggrieved.


    Edit: *all the time* means at least once if not twice a day.