Posts by Devidian

    Ok ich habe zwei fehler in den logs gesehen, ausschalggebend war wohl dieser hier:


    Code
    [ERROR] [10:07:31] [JNI exception] java.lang.NullPointerException: Cannot invoke "net.risingworld.api.objects.Area.getStartChunkPosition()" because "area" is null
    UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    JIW.JNI.Wrapper.Env.JNIEnv:CheckException()
    RisingWorld.PluginAPI.Types.UI.JUIElement:OnClick(JNIEnv, JObject)
    RisingWorld.Server.Network.Listeners.ServerAPIListener:APIClickUIElementReceived(IPacket, AbstractConnection)
    JIW.Network.Core.Common.Event.ReceiveServerPacketEvent:Execute(AbstractNetworkServer, NetworkEvent)
    JIW.Network.Core.Common.Event.NetworkEvent:Execute(AbstractNetworkServer, AbstractNetworkClient)
    JIW.Network.Core.Common.Channel:Run()
    System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)


    Hast du evtl zu schnell hintereinander erweitert? das er quasi mit dem erweitern noch nicht fertig war ? Ich werde dafür auf jeden fall einen fix einspielen, muss nur herausfinden wieso an der ensprechenden stelle überhaupt area null war...

    Ein weiterer Fehler war noch etwas weiter vorne, da weiss ich aber nicht wo der passiert sein soll:


    Code
    [ERROR] IndexOutOfRangeException: Invalid offset (WorldPart): -310 (length: 532512)
    RisingWorld.Common.World.Dungeons.DungeonElement..cctor () (at <00000000000000000000000000000000>:0)
    RisingWorld.Common.World.Dungeons.DungeonElement..cctor () (at <00000000000000000000000000000000>:0)
    RisingWorld.Server.Npc.Threading.ServerNpcManagerThread.SpawnSurfaceNpcs (RisingWorld.Server.Chunks.ServerChunkPart chunkPart, RisingWorld.Common.Definitions.Biomes+Region region, RisingWorld.Common.Definitions.Biomes+Biome biome, System.Single spawnProximity) (at <00000000000000000000000000000000>:0)
    RisingWorld.Server.Npc.Threading.ServerNpcManagerThread.Run () (at <00000000000000000000000000000000>:0)
    System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) (at <00000000000000000000000000000000>:0)
    ExceptionExtensions:PrintStackTrace(Exception)
    RisingWorld.Server.Npc.Threading.ServerNpcManagerThread:Run()
    System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)


    WorldPart verwende ich meines Wissens nirgends

    Hey, danke erstmal für dein Feedback.

    Ist das mit dem Crash immer wieder reproduzierbar? Könntest du das auf dem testserver mal gucken ob das auch dort passiert?


    Wenn du mit der Anzeige der Bereiche die generelle Anzeige oben links meinst, dann hat diese eigentlich genau die Funktion zu zeigen in welchem Bereich man sich befindet oder ob man diesen einnehmen kann oder halt nicht. Wenn ich die Anzeige ausblenden lasse wenn man den Bereich nicht einnehmen kann, könnte das andere wieder verwirren weil sie nicht wissen warum sie dann jetzt den Bereich nicht einnehmen können 😅


    Allerdings hatte ich mir für mein neuestes Plugin schon überlegt, dass ich sowas wie Einstellungen für die Spieler selber brauche. Wenn ich das implementiert habe, kann ich auch speichern ob jemand die Anzeige oben sehen möchte oder nicht und dann ein kleines overlay machen indem man die Einstellungen einstellen kann halt 😅


    Ja das mit den stats wollte ich selber schon in ein Fenster umwandeln dass man über das Menü öffnen kann. Ich werde nach und nach wahrscheinlich alle konsolenbefehle bzw Chat Befehle irgendwie durch menüpunkte ersetzen. Wahrscheinlich werde ich das mit dem allgemeinen mod-info zusammengelegt in so ein infofenster packen dass man über das Menü öffnen kann.

    Hey i was asked to implement some "Player xyz is going to bed" message so everybody on the server knows that players want to skip night but i cant find any event in the api i could use for that. There is only a skipnight event but i think thats fired after or before skipping.

    Anyone else have an idea?

    Hey red51 i'm currently experiencing some more issues with the Area API.


    I noticed that my rename-area code is only temporary setting the new area name.


    area.setName(v);


    Also if i do a Server.addArea(area, true); afterwards, it is not reflected in the db file and gone after restart.


    The only way i currently experimenting with is to do

    Code
    area.setName(v);
    Server.removeArea(area);
    Server.addArea(area, true);

    But this comes with an even bigger downside (bug)
    The area is removed and readded to the database with the correct name but ingame it is not found by Server.getAllAreas() until the server restarts.

    I'm thinking of using my own SQL to update the area names as workaround to fix that but i dont know yet if thats causing any other side-effects.
    Using SQL to update name works for now.

    Another bug: when deleting an area where the player itself is standing in, the non-area area gets the name of the deleted area instead of "wildernes" for example. Everytime you leave an area the old area name pops up.

    NOW FIRST OFFICIAL RELEASE: v0.1.5


    https://github.com/Devidian/rw-plugin-oz-land-claim/releases


    Remember also to install latest OZ - Tools from

    https://github.com/Devidian/rw-plugin-oz-tools/releases

    Patchnotes:


    - feat: player gets message if area is renamed [0.1.4]
    - refactor: now `/lc` opens the menu too (instead of doing nothing) [0.1.2]
    - refactor: default area permissions adjusted [0.1.4]
    - refactor: moved area3d methods to dedicated class [0.1.5]
    - fix: missing translation for changing player permissions of a zone [0.1.1]
    - fix: expanding area did not take origin permisssions into account [0.1.3]
    - fix: Dropdown z-index issue workaround in PermissionPanel [0.1.3]
    - fix: rename area now using direct SQL to Area db [0.1.5]
    - fix: default-permissions in permissions panel from other area types are hidden now [0.1.5]
    - fix: use `area.setName` before `Server.addArea`, `area.setPlayerPermission` after [0.1.5]
    - fix: some more possible null pointer exceptions with area names [0.1.5]

    ok, good to know but for my LC plugin the player usually is in the zone that is released=destroyed. Maybe thats the same reason why set and the other methods are not working and throwing that exception. I'll try to get a workaround for that, thanks for the hint james.✅

    hey, im sorry to hear you have any trouble. So im trying to help.


    First your configuration:


    - botEnable must be true

    - botToken looks ok

    - webHookEventUrl looks okay BUT events are only stuff like, weather changes, user interaction with objects

    - at least you should set postStatus=true and setup webHookStatusUrl (can be the same webhook) then you see the bot enabled message


    Then some more troubleshooting questions:

    • is your bot in discord online?
      • if not did you check the server-logs?
    • check general server log if Discord Connect and Tools plugins were loaded correctly
      • if you dont see any errors plugins sould be loaded
    • check subdirectories in Logs directory starting with OZ.DiscordConnect if you find any errors.

    Hey there,


    before the great shutdown (when unity version was announced) i already started to create my own LandClaim plugin as i was not satisfied with the areaprotection we were using in the Java version. But as i did with all my (planned) plugins i stopped working on it.
    When i setup my unity server i tried some existing plugins but they were not working as expected, so i started with my own plugin again. It is still not 100% where i want it to have but the main features needed as MVP are working so far.
    So i want to invite some players to test it on my public development Server. The server is called

    Omega Zirkel - Plugin development & Testing, current test: OZ LandClaim

    NOW FIRST OFFICIAL RELEASE:


    https://github.com/Devidian/rw-plugin-oz-land-claim/releases

    Remember also to install latest OZ - Tools from

    https://github.com/Devidian/rw-plugin-oz-tools/releases

    ====================================================================================================


    I recommend to bind the command `/lc open` to a key or mouse, this is almost everything you need to do using it.

    Current features:


    • Claiming by players themself based on Chunks
      • Players have a basic claim limit (can be configured)
      • Players get more claims if they have more playtime on a server (rate configured by admins)
      • Players have to stay a configurable time in a chunk before they can clime (prevents new players to grief areas
        • (Planned: "soft decay" of chunks / protection based on playtime)
      • Players can turn on "chunk view" where they can see chunks
        • Current view: shows the current chunk borders in yellow
        • Owned view: shows the chunks owned by the player in green
        • Other view: shows chunks owned by others in blue (and other colors in the future)
          • (Planned: color for special areas, areas for sale, pvp areas?)
      • Players that claim a chunk become "owner" of that chunk
        • all other players are "guests" by default
      • Players can give other players different permissions for their claim
        • Resident: mostly the same rights as owner in the area but cant change area stuff
        • Friend: can build and destroy own stuff, cant terraform, can use chests
        • Guest: default level, can enter and leave the area but has no overall rights
        • Prisoner: you need slaves? this is the permission you need, but they cant do anything (like guests that cant leave)
        • Exiled: someone is unwanted? exile him!
      • Players can release their claims - if they don't want it anymore (!anyone else can claim then)
      • Players can rename their claims
      • Players can expand claims (i don't want to have a 3 by 3 area of 9 single area chunks, i want to have a single big area 3 by 3 )
        • Claims can be expanded up,down,north,south,west,east
        • expansion will respect claim limits and time in chunks but it will sum up all time so you only need to stay in one chunk)
        • you cant expand if a chunk in direction is claimed by other players
      • Players can split claims with more than 1 chunk into single-chunk claims
    • Admins can change permissions on any claim
    • Admins can release any claim
    • Admins can rename any claim
    • Admins don't have claim limits (configurable)
    • Admins don't need to wait to claim (configurable)
    • Admins can create special areas with special permissionsets
      • rest-area (resting area with no hunger and thirst, no pvp etc.
      • pvp area
      • trap area (go in and never find out (Jail)
      • general special area (name public places block areas from claiming)
    • Other features:
      • Plugin is fully translated to german + English, more languages possible (just ask)
      • An overlay shows up current chunk status and time needed to claim
      • Claimed areas will work even if plugin gets uninstalled as it uses ingame area functionality
      • Connections to discord for claim/release announcements using my Discord Connect Plugin (optional feature, no need for Discord Plugin)
      • In game announcements
      • confirmation window when expanding, splitting or release areas to avoid mistakes

    Features in progress (what im still working on) before i release first version to public


    • currently only bugfixing

    Features planned after first release:


    • Players can sell their claims to other Players (first version wont use any currency, i plan to create a seperate plugin for that)
      • other players can buy claims if they have enought free claims
      • selling and buying will be announced ingame (and optional in discord)

    Screenshots:








    Now is the best time to test and give any feedback. Hope to see anyone testing next days.

    Best regards
    Devidian

    PS: You are welcome to join my Discord if you speak english or german if you need any live support with my plugins or have any feedback. => http://discord.gg/8h3yhUT

    I'm currently working on my own LandClaim plugin and noticed some things:

    - if you use `area.setPlayerPermission` before `Server.addArea`, the permissions are not persisted to the database.
    - if you use `Server.removeArea` before removing all player permissions from the area, the permissions stay in the database with no valid area.

    Might not be critical but it cost me much time to figure this out :lol: