Posts by angriff

A new update is now available, introducing seasons and more!
Latest hotfix: 0.8.0.2 (2024-12-30)

    public ImageInformation y = new ImageInformation(this, "singleyes.png");
    public ImageInformation n = new ImageInformation(this.getPath() + "/singleno.png");



    Neither one find the image and presents it. The image is just a white rectangle that is shown not the button .png

    I am trying to figure out if stutters are caused by the server I am on or my local machine. Sometimes I experience really dramatic stutters or stops then suddenly move 30 feet. Seems the keys are still registering the movement but the screen is not. Is this an update issue from the server or my computer? :/ If players experience this on my server is it the server?


    I was also seeing sudden loss of connections. Thoughts?

    What do you mean with "local" and "global" event? If you're using the PlayerConnectEvent: It's triggered every time a player joins the server. The player object that can be retrieved from the event is always the player who triggered this event (i.e. the player who established the connection to the server).
    If you want to send messages to the player, the PlayerConnectEvent isn't very suitable for that, since the player still sees the loading screen at that time and probably won't see the message at all. Instead, you can use the PlayerSpawnEvent, which is called when the loading process is completed (i.e. when the player actually spawns on the server), so there is no artificial delay needed if you want to send a message to the player ;)

    Thanks will change it and use that. That one of the problems with testing things alone you don't see these things in testing. Also not having the knowledge of the innerworkings like you do.. lol. Thanks I assume the same API for Player events applies.


    Local was to the player.. Global is relative to what the server is seeing. To me a global event was the server is tracking the variable do it changed as two players logged in the variable was update with the last player who logged in. I think the playerspawnevent might be more individualized.. I was trying to come up with another way of storing the different connection events in an array but that I guess would have been silly.



    Hmm.. will it trigger everytime they spawn? Even after they die or sleep?

    I have a on connection routine that tells you some status items about your gameplay but in testing I see that on connection is not a local event. It is a global event. That is if two people log on at relatively the same time the last guy that logs on sees his status ok but the first one loggin on sees the latter as the variable playername obviously becomes updated prior to the delayed output of this data. I delayed it because if you took a few seconds to log / come into game fully then you would not see the data at all.


    So I am asking if I can write this information to the client then delay its output? That way two people logging on a close time can see their own data.

    Ok I now sleeping sets a respawn place. It can change the time to daylight really fast if everyone on the server is asleep suddenly it is daylight.. but ... but the Weather does not change.. go to sleep dark and raining .. wake up light and raining. ?(

    What you can do is create a custom GuiLabel with the desired size and color, and display it only for a given amount of time (by using a Timer) ;)

    ooh nice work around and was just beginning to study GUIs too.. 8|:thumbsup:

    yell messages do not support colour, they are only white.


    and no you cannot change the fonts size but the default should be big enough for anyone to read

    Boo.. X( Can you change the time it is viewed or do you just have to set it up on a repeat timer the command?

    When I want color for a broadcastYellMessage(java.lang.String message) Is the [FF3339] inside or outside the quotes for the message? I cant seem to get anything but White.


    Can you change font size?

    Tbh i am surprised this plugin still works :D


    I haven't had time yet to update it for the steam UID integration :(

    if you want me to take a crack at just let me know. I really like it. Since my server is sort of a work in progress people are off and on . but we still communicate with the mail system on issues. so I find it convenient.

    I have loved this plugin for sometime now. It makes communication with players a must have.


    FYI
    I wanted to point out that it has the same issue as the console commands like "goto" in that it does not recognize a space in a game name. The search string will bring the name up but if you try to send to Paul Austin as an example it will error.
    The next patch is supposed to fix this by allowing a renaming on the server of the player so it might not need patching if a routine is developed that can autologon fix their names.

    I am glad this is going to be fixed next patch. I found that not only the console for goto but the in game Mail plugin will not accept that space. I wanted to tell a player to change his name and some other features about class advancement on my server and the mail routine didnt see the space in the send. Though is does pull it up on the search. So I cannot send him in game mail next time he logs on to help him play the class struggle game better on my server and to fix his name.


    I will post in the plugin forum on this issue but there will not be a need to fix that plugin if a routine after next patch can autocorrect onLogon.

    ??? RW-Gui has nothing to do with data base management

    Which structure?

    DB read? case1 case2? I cannot understand what you are referring to.

    This is highly advisable! To program in a programming language, studying it to some proficiency helps greatly!

    ROFL



    ok looking for advice how to communicate here..


    I have a DB capture/write/read with display function that works fine if I send it to chat. However I wanted to display it slicker in a GUI instead. What is the best method to call this using your GUI example as a teaching start point? If you dont have the time I understand. I will plug along.


    Unfortunately not everyone is as proficient as the career java writers that write some of these plugin but it does not mean we lowly beginners cannot have fun, albeit sometimes frustrating ourselves. So a lecture on studying is not highly advisable but a natural occurrence if one is to begin. Saying a poor person needs money is somewhat redundant. :|

    @angriff: there is plenty of documentation; look in the top post, you'll find the Java docs, a sample client plug-in and the link to the sources on github. I believe it should be enough to get you started.

    Yes thanks I got that, it is pretty advanced I will have to read up/study on java a bit more. I am looking for a way to interface a yes no question and/or display some stats from a database but the structure is unfamiliar to me. So does the main code that executes the db reads get put into the case1 case2 area or is that just a call?

    Hey are they some instructions on how this GUI can execute code are do you have to set it to call other routines or classes?


    I get an error when I tried to put up a simple database lookup. Mind that I am a noob programmer so it is me not this plugin. I just want to call a few routines and display information in the GUI


    Oh by the way i never installed PNB on my server until i tried this backend and PNB now works great. nice in all regards.