Posts by yahwho

A new update is now available, introducing "Points of interest" and many more changes!
Latest hotfix: 0.9 (2025-10-31)

    Hmm the problem there is that giving access to *every* spawnnpc command, allowing players to spawn not just the "dummies" :(


    I had wanted to control the amount on an individual (automated) basis.


    Tbh I would like to have console access or at least all the console commands available through the API too.

    I totally agree there!


    I would also like to map certain commands to keys, like setr/setl/setp that you mentioned. Would be so time saving when building with planks and beams using a key press rather than typing in setr 1 setr15 all the time (which I seem to be doing more and more often).


    I *think* it may be possible to do what I'm asking with direct database writes to the main world database ( <X x1000 ) . . . but that will require a LOT of work and LOT of testing on a none-live server before I would even consider adding it to a live world.


    Hopefully @red51 will heed our calls and add API calls for all the console commands in the near future ;):saint::D

    It would be great to have some kind of access the games console via the API.


    I'm imagining something like this sudocode:


    Code
    Console c = this.server.getConsole();
    int id = 1;
    c.execute("spawnnpc dummy id " + id);


    Why? Well I would like to let people spawn NPCs dummies into their builds, but I want to *limit* this (depending on game time). I don't want to allow a new player, who may just be on the server to cause chaos to go around spawning 100's (if not 1000's) of NPCs (which someone could do with a script if blanket access was allowed).


    I would also like to be able to easily write a plugin to spawn NPC animals. I've had a look at the API and I can't see any calls in there that would allow me to do this. The only way round I can see is to directly add new NPCs via the main database. Something I don't like doing hence my own database and own tables for Medieval Realms!


    Something like this would be great!



    Code
    for ( int i = 0 ; i < TOTAL ; i++ ) {
    c.execute("spawnnpc cow id " + some_id_number);
    }


    P.s. I know this is sudocode; I'm not sure how you can spawn anything with an ID number as I've not looked into it yet, but we'll defo need ID numbers on the spawns if we are to keep track of them :saint:

    Thanks for the code snippets Minotorious! I will digest what you have suggested and see if I can add implement it! :rolleyes:


    No worries about the delay pal - I've been busy pondering animal spawning; it looks to me like there is no API call so a direct database write is in order. Much testing and experimentation will need to be done! :/

    Are you running anything else at the same time? You might want to try running the Rising World in Safe Mode with networking (just to test).


    I have found on my rig that Rising World will fail to start if I'm using Window Media player when it is playing certain video files with certain codecs.


    Conflict of resources. . .


    Just an idea you could try whilst waiting for the expert!

    Your log files say "WARNING: Selected display mode: 1920 x 1080 x 0 @0Hz" that may be your problem?


    There is a config file in the games root that contains settings where you can change the resolution.


    If you're not comfortable editing config files I would suggest uninstalling the game, deleting any leftover files (particular the config file), reboot, and reinstall.


    Or you could wait to see what Red says.


    P.s. when deleting files it's always best practice to rename the file to filename.extension.old - just in case you need to reverse what you did!


    Hope that helps.

    A simple solution to this (for server owners) is to log the chat messages and include the name and UID. My server does this and if someone is using inappropriate language and is reported by another player a simple log search will reveal the offenders UID.

    Something odd is happening. Probably relating to my lack of understanding.



    Code
    GuiLabel Label1 = new GuiLabel("TEXT", 10.0f, 25.0f, false);
    Label1.setClickable(true);

    This works fine, but it appears that when someone logs off, everyone's labels stop being clickable. :/


    Does anyone have a complete mini/simple example of how I should be using "clickable labels" ?

    Update: I've had a player have this happen to them and they told me what happened - might be useful in tracking it down @red51. They fell through the world down to hell; where the graphics appeared to be glitching ( falling through hell multiple times). This is where (I believe) the event call "onPlayerDeath" gets called multiple times.

    For some strange reason , I got banned for just looking around a server a year or 2 ago. I never picked a fruit or even swung a pic or axe on that server.


    The server owner must have just been having a bad day.

    They may have seen your activity as suspicious for the reason that you didn't start building? I had someone log and simply just started committing suicide a dozen times. I'm assuming to get the starter inventory items. He wouldn't respond to chats and the username was mildly offensive - he got banned.


    There are a few "dedicated" rising world servers out there. I can totally empathize with you, my first experience with rising world was to build a castle on a server only for it not to be there the next day :/ so I setup my own dedicated server. Multiplayer does enrich your game experience.

    The only lua script on the server is the (unmodified) area protection one. I will post up a section of my log shortly.


    My plugin uses a logger to log the username and UID of every login and logoff method event call. Here's what I found in the log. . . (I've changed the UID and username to protect the user - I'm not saying they've done this deliberately. . .)


    What happened was my plugin works out experience points at this point, and the user suddenly jumped up a few million points =O (I'm working on using semaphores to try to prevent this happening again?).


    But I have seen two instances of this happening (multiple log off calls)