Posts by red51

The next update will be available on Friday, October 31, towards the evening (GMT+1)

    Was sprechen die Backdoor Bandits eig. für eine Sprache?

    Keine spezielle Sprache, aber vielleicht kann @waveshapr den Entstehungsprozess etwas beleuchten :D


    Oft ist es auch so, dass ich den Banditen definitiv im Visier habe, aber wenn er nicht vollständig zu sehen ist (und auch in manchen anderen Situationen), hat der Treffer keine Wirkung (oft mit dem Geräusch eines "Querschlägers"), außer dass ich ggf. angegriffen werde

    Hmm... tritt das seit dem letzten Hotfix auch noch auf?


    der Körper selbst ist selbst aus kurzer Distanz im Gras nicht zu sehen

    Das ist nicht gewollt, ich packe das auf unsere Todo-Liste ;)

    Do you mean the lamps do not emit light (i.e. the room is still dark after placing a lamp), or is the lamp itself unlit (i.e. the bulb appears to be black)? The latter issue is unfortunately a limitation of how the lamps are currently rendered, this will be changed in the near future :)

    Was hoping to use strawberries and corn to make candy, to then consume it, but I guess that may prove to be "difficult", or just "messy". Hopefully I can figure it out later....

    It's really not that complicated, basically it just requires a few lines of code. If you have any questions, don't hesitate to ask :) I can provide some example code if you want ;)

    I like this plugin you made @red51 I know it's only an example but wow the inventory can now be sorted with various backpacks. Can you please make this a vanilla feature with more textures?

    Hehe, I'm glad to hear you like it! ;) Well, I'm thinking about that. I'm still not sure if backpacks should be part of the vanilla game, but if we add them, they will work slightly different than in this plugin (in this case, they will probably become an actual "clothing item")^^

    DE: Wenn du dich auf CustomItems beziehst, dann kannst du folgendermaßen "eigene Werte" pro Item speichern: Beim Hinzufügen des Items zum Inventar (zB mit Player.Inventory.insertNewCustomItem()) erhälst du das neu hinzugefügte Item zurück. Für manche Items ist ein sog. "Item.Attribute" Objekt hinterlegt, in welchem Zusatzdaten gespeichert sind (zB bei Kleidung die ID des repräsentierten Kleidungsstücks usw) - so auch für CustomItems (hier ist ein CustomItemAttribute hinterlegt). Diesem wiederum können einzelne Attribute zugewiesen werden (auch wenn die Bezeichnungen jetzt irritieren), u.a. mit CustomItemAttribute.setAttribute(), welche dann auch dauerhaft gespeichert werden können.
    Dieser Beitrag enthält ein paar Code-Schnipsel dazu ;)


    EN: If you're referring to CustomItems, you can add "custom values" per item this way: When adding the item to the inventory (e.g. by calling Player.Inventory.insertNewCustomItem()), you will get a reference to the newly added Item. Certain items have a so called "Item.Attribute" object, which contains additional data (e.g. clothes contain the actual clothing ID etc) - in this case, CustomItems have a "CustomItemAttribute". This can be used to add individual attributes (with CustomItemAttribute.setAttribute()), which are stored permanently.
    This post contains some code snippets about that ;)

    A new hotfix (0.9.5.7) is now available, which fixes a few small bugs. It's necessary to update multiplayer servers accordingly ;)


    Changelog 2019-04-16 (0.9.5.7):

    • [Bugfix] Fixed player inventory not always being saved correctly when disconnecting from a server
    • [Bugfix] Fixed some desync issues with npcs in multiplayer
    • [Bugfix] Fixed "black flicker" on dirt blocks

    Ein neuer Hotfix (0.9.5.7) ist jetzt verfügbar. Damit werden einige kleinere Probleme behoben. Es ist notwendig, Multiplayer-Server für dieses Update zu aktualisieren ;)


    Changelog 16.04.2019 (0.9.5.7):

    • [Behoben] Behoben, dass Spielerinventar beim Disconnect von einem Server manchmal nicht korrekt gespeichert wurde
    • [Behoben] Einige Desync Probleme mit NPCs im Multiplayer behoben
    • [Behoben] Schwarzes Flackern auf Erde-Blöcken behoben

    Hmm... ich könnte mir vorstellen, dass diese falsche Spiegelung durch die Badewanne verursacht wird. Wir können die Spiegelung leider nicht für alle Wasseroberflächen gleichzeitig berechnen, da das einen viel zu großen (unverhältnismäßigen) Einfluss auf die Performance hätte. Daher wird wie gesagt immer nur die nächstgelegene Wasseroberfläche genommen. Wir müssen aber mal schauen, ob wir das noch ein wenig verfeinern können ;)

    Hmm... also was sein könnte: Wenn das Spiel beendet wird, dann wird die Welt nochmal vollständig gespeichert. Dafür steht dem Spiel aber nur wenig Zeit zur Verfügung - damit das Beenden des Spiels nicht unnötig lange dauert. Wenn nicht alles in dieser Zeit gespeichert werden konnte, wird im Zweifelsfall abgebrochen (im schlimmsten Fall gehen dadurch nur teilweise die letzten 10-20 Sekunden verloren, denn in dem Takt wird die Welt generell gespeichert). Inventare und Spielerdaten haben die höchste Priorität beim Speichern. Es kann also passieren, dass die Inventare zwar noch gespeichert wurden, das Speichern der Öfen aber zu lange dauert.


    Das Problem sollte *eigentlich* nicht auftreten, wenn du nach dem Entleeren der Öfen noch mind. 10-20 Sekunden wartest, bis du das Spiel beendest. Ich packe das aber trotzdem mal auf unsere Liste, vielleicht finden wir da noch eine schönere Lösung für :)

    RW unterstützt leider momentan keine Normal Maps oder Occlusion Texturen, allerdings kannst du die in die normale Textur "backen". Dafür brauchst du ein oassendes Grafikbearbeitungsprogramm, zB Photoshop. Um zB die Normal Map in die normale Textur zu "backen", kannst du bspw. einfach den Rot-, Grün- und/oder Blau-Kanal kopieren und als neue Ebene zur normalen Textur hinzufügen. Als Mischmodus kannst du dann "Dunklere Farbe" oder "Multiplizieren" auswählen, ggf. muss noch etwas die Helligkeit angepasst werden, und schon ist der Effekt der Normal Map (oder auch Occlusion Map) in der Haupttextur integriert (wenngleich das bei Normal Maps natürlich nicht ganz dasselbe ist, da die Informationen dieser Textur eigentlich zur Laufzeit benötigt werden, aber das Resultat der "gebackenen" Textur ist dennoch schon sehr gut).

    Danke für den Link zum Gebäude! Ich werde mir den Blueprint mal genauer anschauen, dann kann ich etwas mehr dazu sagen :)


    @Larsen: Das mit den Spiegelungen ist schon etwas eigenartig... befindet sich ggf. unter dem Haus (bzw. unmittelbar unter dem Spieler) oder irgendwo im Haus ebenfalls eine Wasserquelle? Um die Spiegelungen zu berechnen, sucht das Spiel die nächstgelegene Wasserquelle, und rendert von dem Punkt aus die Landschaft für das Spiegelbild (da die Welt dynamisch ist, können wir leider keine vorgefertigten "Spiegelbilder" verwenden).

    Danke für die Log Datei! Dort sieht eigentlich alles soweit i.O. aus... d.h. bei dem Problem bleibt das Spiel tatatsächlich "stehen" bzw. hängt kurz? Tritt das auch beim Umschauen auf, oder nur beim Laufen (bzw. beim Generieren von neuen Chunks)? Auf welche Einstellungen ist die Sichtweite (und vor allem die "Detail Sichtweite") bei dir gestellt? Vor allem die Detail Sichtweite kann einen gewaltigen Einfluss auf die Performance haben. Evtl. kannst du auch probieren, etwas die Gras-Sichtweite zu reduzieren (diese Einstellung ist tatsächlich erst mit dem letzten Update hinzugekommen).

    Thanks for the log! According to the log, there are 8 GB assigned to the game (it seems you've used the launch option +memory 4096 4096?). The game cannot use that much RAM, since your OS and other background programs also use some RAM, but as long as you don't experience any crashes, that should be fine :)

    It's working fine. Just one thing: I can NOT make a name for my item, when i try to use spaces in the name. Is this intended?

    Yes and no. Basically this is just a limitation of the CustomItemLoader, to keep the code as simple as possible (since the main purpose of this plugin is to serve as an example plugin) ;) But if you create a custom plugin, you can change the name with this function (which supports spaces as well as multiple languages): CustomItem.setLocalizedNames()


    Oh one more: is there a way to copy the text from the console?

    Unfortunately that's not possible, however, if you want to copy the coordinates from the debugitem or debugplayerbody commands, you can just press Return (press Shift+Return to copy the rotation to clipboard) :)


    Can we get some more documentation so we can add in food items, among other things?

    Unfortunately this can't be done with the CustomItemLoader. This plugin only works for very basic tools and weapons. If you want to create food or more complex items, you have to create a new plugin for that. You could use the Backpacks plugin as a reference, since it works in a similar way (instead of opening the backpack, you just have to remove the food item from the inventory, update the health/hunger/thirst of the player and maybe play an eating sound effect).
    You can also check out the documentation, it also contains some example code: https://javadoc.rising-world.n…ts/custom/CustomItem.html


    A list of animations currently in Rising World, and etc. How do we consume the candy, what animation do I use, and etc?

    The CustomItemLoader plugin contains a list of all animations (as a txt file) ;) Alternatively you can find all animations here: https://javadoc.rising-world.n…/api/utils/Animation.html


    yes right and how can we add another bow,crossbow or rifle? Maybe new clothes too?

    Unfortunately clothes cannot be added through the API at the moment, since they would require some additional preparation (you have to set up proper rigging / skin weighting, which would only work if you have access to the player model skeleton)...
    However, if you want to add firearms, you can check out the potato cannon example plugin. Instead of firing a potato, you can use the World.spawnProjectile() method to fire an actual projectile ;)

    Sorry for another posting but I seem to be having an issue where these blueprints keeps prompting me without giving me a chance to exit

    Hmm... maybe it interfers with another plugin? 8| Can you get rid of the upload dialog when pressing ESC?


    @red51 besteht die möglichkeit, dass das .db file im weltordner gespeichert wird ?

    Ja, das ist vermutlich sogar sinnvoller. Wie @Devidian schon erläutert, müsste dafür im Grunde nur Zeile 83 im Code geändert werden. Falls es im Weltordner gespeichert werden soll, müsste die Zeile so aussehen: database = getSQLiteConnection(getWorld().getWorldFolder() + "/" + "WorldModels.db");


    Ich habe aber den StaticModelLoader nichtsdestotrotz geupdated ;) Jetzt werden die Modelle standardmäßig im Weltordner gespeichert. Um bereits bestehende Modelle mitzunehmen, müsstest du einfach die "WorldModels.db" Datei aus dem Plugin-Ordner in den entsprechenden Welt-Ordner verschieben :)

    Just however wish we had a list of items, clothing, an animations. Even a full documentation so I can make full use of the item loader plugin

    Actually I'm currently preparing a Steam guide which covers all console commands, item names, object names, clothes etc. I just ran into a stupid character limitation :thumbdown: However, the guide should be ready soon^^


    But if you want to make full use of the custom items, you have to create a new plugin for that. You can check out the API documentation to find some example code, or alternatively check out my latest example plugins :)


    and another bug of sorts. The heat protection suit actually makes my body warmer. Maybe the insulation value needs to be negative? Hell just got a lot hotter.

    Thanks for letting me know, I'll put that on our to-do list ;)

    How much RAM do you have exactly? Maybe you can create a report file and upload it here, to do that, open the ingame console (by pressing ` or ~) and type "report", then a file called "report" shows up in your game directory (to get there, rightclick on Rising World in Steam -> Properties -> Local files -> Browse local files). Please post the file content, or alternatively upload it here ;)