Posts by yahwho

    Hi,


    It would be really great if I could have API access to hud stuff. I would like to hide things like the health bar, sprint bar, hunger and thirst (I know Red you've said inventory hide show API will be really - which is awesome!). I would also like to change where the block id info is shown. I.e. not in the bottom left when using a block.


    I would like to hide the 'default' game hud and replace it with a sever specific "themed" one.

    Yep that's correct.


    Download pnb and rwgui


    https://forum.rising-world.net…nt/12336-rwgui-0-5-0-zip/
    https://forum.rising-world.net…ment/18645-pnb-0-5-4-zip/


    Extract these zip files. Then importantly move the folder within the extracted zip folder to C:\Program Files (x86)\Steam\SteamApps\common\RisingWorld\Plugins


    i.e You need C:\Program Files (x86)\Steam\SteamApps\common\RisingWorld\Plugins\pnb and NOT C:\Program Files (x86)\Steam\SteamApps\common\RisingWorld\Plugins\pnb_0_5_4\pnb


    and C:\Program Files (x86)\Steam\SteamApps\common\RisingWorld\Plugins\rwgui and NOT C:\Program Files (x86)\Steam\SteamApps\common\RisingWorld\Plugins\rwgui_0_5_0\rwgui



    Happy plank and beaming :D

    as @Devidian said most plugins work on single-player.


    I believe you need to add the plugins into your RisingWorld directory, into a directory called plugins (you will need to create this folder if you haven't got one).


    C:\Program Files (x86)\Steam\SteamApps\common\RisingWorld\Plugins


    I will check this now for you. . .

    Hi @red51 I'm trying to insert clothing and object kits to an inventory via plugin,


    I'm using https://javadoc.rising-world.n…em-short-int-int-int-int- as a reference as how this is achieved.


    This is how I'm doing it (the clothes bit - objects obviously different)


    Problem is, when I first call this, i.e. add an item of clothing to the player inventory I get a "broken" item. Which strangely gets fixed when I call the code a second time, OR equip another working item of clothes.


    For visualisation:


    Here I have moved a medieval armour over to my inventory, cancelling the event, then called the above code. As you can see in the inventory slot 1 there is a "broken" item.




    I did the same thing again (no changes to code) inserting the rag clothes into slot 2. At this point slot 1 magically became the working item it was supposed to be and slot 2 was broken.



    This behaviour continues with each added item.



    It also appears that equipping an item fixes the broken inventory items. For example, in the above screenshot, as soon as I equip the armour the rag clothing in slot 2 appears normal.




    Any idea what's going on here? ?(

    Haha I think I know what the problem might be. . .


    When a player initialises a popup I register a new event listener. I *think* I need to somehow kill the event listener once it's been used.


    I'm looking now, but do you know if there is something like "unregisterEventListenter(this);" ?


    I was calling this.destroy(); but it may not be killing the event listener? I dunno. lol

    This is confusing me a little. So I hope it's a bug that can be squashed. . . (or me doing it wrong ;) )

    Code
    Inventory inventory = player.getInventory();
    inventory.insertNewItem(itemID, variation, 1, playerInventorySlot, slotType );


    When this code is called the first time, I get 1 of the items added to players inventory and message saying 1 added - all good.


    The second time I call it I get 2 added to the inventory and a messages saying 3 added


    The third time I call it I get 3 added to the inventory and a messages saying 6 added


    The fourth time I call it I get 4 added to the inventory and a messages saying 10 added


    The fifth time I call it I get 5 added to the inventory and a messages saying 15 added


    The sixth time I call it I get 6 added to the inventory and a messages saying 21 added


    The seventh time I call it I get 7 added to the inventory and a messages saying 28 added



    I've also tried:

    Code
    Inventory inventory = player.getInventory();
    inventory.insertNewItem( itemID, variation, 1)

    This still results in weird behaviour.


    (I put a literal 1 int in to make sure it wasn't my cache file spewing out garbage.)



    p.s. I know pnb works so I'm even more confused :)

    Just for reference you can actually turn off most stream features like cloud syncing:


    1) In your Steam Library, right-click on a game and select "Properties."
    2) Click the "Updates" tab.
    3) Uncheck "Enable Steam Cloud synchronization."
    4) Click "Close."



    Turn off updates


    • Open your Steam client.
    • Head over to the Library tab present at the top of the screen. Now all your games will be listed in the left column of the screen.
    • Right click on the game you want to change the settings of and select Properties.
    • Once Properties is opened, head to the Updates tab located on the top of the window. Now you will see an option regarding automatic updates. After you click Automatic Updates, a drop down menu will appear and you will be able to choose from three options available.