Posts by LordFoobar

A new update is now available, introducing fishing, climbing gear, clothes and more!
Latest hotfix: 0.8.5.3 (2025-05-09)

    It is not possible to convert back J3O files "out of the box". There might be tools to do so, but nothing official. You can find more information about asset management with JMonkeyEngine here. It is important to note that this is so to ensure that models are not easily ripped from a game.


    Bottom line is, you need the original models, or you need to create some from scratch.

    Complete /we plant refactored! Now a lot easier to use with even more options :) Take a look at the README for more information and examples.


    @TutMeistensNix you can make that video, it is very unlikely that anything will change too much regarding the command now.


    Important: The german (DE) locale has not been translated! If anyone care to do that, and/or anyone point out any errors in the EN locale, too! I'm not even a native english person :P


    Note: I installed a distance limit of 64 blocks and a number of total plants planted to 500. These limits may be modified at your own discretion in the "commandListener.lua" file, the first two local variables declared (and commented for you). These limits, I assume are for the better of most servers as placing a single plant requires a few 3D calculations to find the correct terrain height and, if planting too much, will hang the server temporarily. Limiting the amount at once helps limit server lags. Just repeat the same command to plant more than the prescribed limit.


    The "Unknown command" is coming from the area protection script, there's not much I can do about it with world-edit...


    As for the limit of selection, there could be a solution, and I'll see what I can do. But having a "hard" limit (not be able to select passed the limit) would be much much better and I was hoping that this would be a game feature before fiddling with this... (Like when I implemented wordwrap for that chat, then Red implemented it into the game :) )


    (french)
    hahah! Le temps me manque... et sans World-Edit (je n'y ait pas accès sur ton serveur :whistling: ) je suis très limité. Mais j'ai l'intention d'e m'y remettre! Dans tous les cas, merci de l'info! Pour World-Edit, il y aura quelques ajustements mineurs dans la prochaine version, question de ne pas bloquer le serveur... parce qu'il n'y a pas de restrictions sur le nombre de plante et le serveur bloque pendant l'exécution de la commande. Donc, y'a un potentiel de dommage et ça va être réglé en fin de semaine. Il y aura aussi une autre commande pour créer une ligne de plantes dans la direction du joueur (non seulement x et z). D'autant plus que x et z n'est pas vraiment intuitif et on pourrait changer ça pour ns (north-south) et ew (east-west) qui nécessiterait qu'une boussole.


    (english)
    [...] There are some adjustments that need to be made on the plant command, so it does not freeze the server too long... because there are no restriction on the amount of plants that the command can process at once and this can cause the server to freeze during execution. So, there's a potential to cause damage et this should be resolved this weekend. There should also be a command to create a line going in the angle facing the player (so, not limited to x and z). Furthermore, x and z are not intuitive and may be replaced by ns (north-south) and ew (east-west) which only require a compass.



    Sorry, my german is practically non existent and I don't dare messing it up with Google Translate... Someone can tell @hkurzawa that he can get the Chrome extension to perform live translation on english test? It might help. With the extension, just select the text to translate, then click on the "Google Translate" icon in Chrome's toolbar. This is what I use and it's good enough for me to understand what's posted in German :)

    nice work LordFoobar now we need 3d text added i wont use this but i feel some players will want it


    Thanks!


    3D text and world editing?? lol whoever wants it will implement it. There are a few features that are far more important just now. I'd need to have some use case of 3d text usage... right now, the only use I can think of is some sort of showing area names (i.e. area protection), or if anyone wants to create some type of mini-game of some sort...

    Hmm.. I was wondering about this, since the getTerrainData() function should work properly. But I found the issue in this case, "ChunkUtils:getChunkAndBlockPosition()" does not return the expected block position: The x, y and z values of the blockposition have an offset of two (it has technical reasons, since we use this function internally too). I already changed this (the fix will be available with the next update). In the meantime, you could subtract the value "2" from the blockposition as a workaround, like this:
    [lua]local terrainId = world:getTerrainData(chunkPos.x, chunkPos.y, chunkPos.z, blockPos.x - 2, blockPos.y - 2, blockPos.z - 2);[/lua]


    I was wondering why the - 2 as I have seen this at a few places already.


    Cheers!

    I can't wrap my head around this and trying to understand why I can't make it work is nothing but time consuming.


    This is what I try



    The value printed is always 0.

    Just a point to note, "/we clear abs" is pretty much the same as "/we clear all" then "/we fill air". You can see it here, where "fillTerrain(e, 0);" is called if the "clearAll" argument is true (see the command implementation).


    Also, for big areas, the games puts a limit of 127x127 blocks. So, regardless on the selected area, only 127x127 (I don't remember how many block high, but I think it's 64...) blocks will be cleared from the starting x,y,z coordinate of your selection. This limit is to avoid 1) accidental clear, like it happened on one server, because 2) clearing very large area could potentially crash the server and corrupt the world.

    I added this to my Server by GIT - but everytime it shows "Unknown Command" - I'm Admin at the Server.
    Maybe in case of MySQL usage for the mainsystem?


    It should not matter what db engine you are using. The commands have changed since 1.x and are using the same pattern as the "World Edit" script; all command start with /area. If /area help does not work, then the script failed while loading the world. However it should help if you can tell me if you see any error in your debug console.


    I know my last update was about two months ago, but I'm in a middle of another big project and have little time to complete the script just yet. (The only time being at night, when I'm already tired of my long day.) The basics are supposed to work, but it's hardly a finished script (i.e. it is unstable and incomplete). Also, debugging problems with AreaProtection is somewhat long and tedious as the game does not have proper debugging tools yet. But it is not abandoned and will be completed soon enough.


    Bottom line is, and yet again, this is not production ready. Meaning that you should not install this script on a public server just yet.