Posts by angriff

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

    Thanks Red ..as always ask the expert. It was driving me crazy. I have not read/come across about reserved words in SQL . That is the trouble with learning programming by ear. :S:thumbup:


    Not one of the tutorials I looked at talked about that. I thought it was a Java syntax thing going on. But now doing a Keyword/Reserved SQL search they fall out of the sky like dogs and cats.. thanks again

    Ok I am having trouble getting a query accepting an AND statement with a literal 'string' in it. I have no trouble with either condition on its own but I cant get to an AND statement. Any good examples?


    try (ResultSet result = db1.executeQuery("SELECT playerID FROM Plowner WHERE ID = ' " +areaID+ " ' AND group = 'Red' ") ){


    If I cut down to just the Where and one of the conditions it works fine.

    I suspect what happened here is that the player changed his Steam name, not the RW IGN. I've had that happen a few times so now I spell out that they need to return to the main menu and edit their Profile to change the name.

    I saw the guy on another server and saw that he had corrected this name. That server operator made a comment about the same subject. I have since made it a rule in the Journal that the name should be changed or face temporary ban which is done by UID. I think the ability to change the players name with a benign character is ok but I am sure it is easier than changing the code to strip the spaces in the console. It will be used in a variety of ways but as Red says there are much more ways that a plugin can infuriate a player including placing a visible tag on them.

    Not a problem Minos.. thanks for the confirmation. What I am doing is pretty ugly code and it would take a bit to explain why this pause vs this start if this pause is on .. so I am sure it is/was a sequencing error. It is working on my server now so I dont want to touch it. Thanks again.. you guys are/have been really helpful.

    ok I am confused ?( Why don't you do something as simple as this:

    Just make sure the Init method is definitely called before the check method else you might get an exception (probably null Exception) ;)

    Well thanks for that but what I am doing is not that simple. The detection of the timer being active or paused by of the actions of another player someplace else on the map is important. With a bunch of other imbedded decisions in between. Anyway I have it working <knock on wood>. It is probably that the timer starts once or is not initialized because of a second event. Probably a start and restart of the routine caused the timers to stop in a branch not totally sure. The toggle solved the issue just had to do some extra statements and placement of the actions to make it reliable both in a fast or delayed response. You guys are indicating that it should follow through so seems a branch out a logical the culprit but I get bleary eyed looking at it.


    It is testing fine now. ||8|

    Is the reverse true for pausing then restarting it? The .isActive to see that it is counting down is important. So the routine .isActive sees that it is running and continues to the next statement which .pause() it. The next time I go through the event it should see that it is .isPaused and that is where I was having trouble. The next time it would not jump the .isPaused routine and would execute the routine IF statement trying to detect it with IF (timer.isActive) blah blah. It was as if I did not start the timer but I put a output that said it was started at the correct line. I move the statements around in the logic and it worked better but not reliably until I put the toggle in. When checking for either the timer and the toggle it works. So I was wondering about the ability to toggle the timer off and on and detect it immediately.

    If you pause a timer while the task is still active, the current task will still be completed, but no more tasks will be executed until you restart the timer. E.g. if your task runnable looks like this:

    Java
    System.out.println("before");
    timer.pause();
    System.out.println("after");

    ...the output will be:

    Code
    before
    after

    Even if you kill the timer, the currently active task will still be completed ;) Or did you mean something else?

    Well that was good but, No it was not what I was asking. The routines in the timer always execute when the timer goes off. The question is about detecting a .isPaused. I have a routine that was detecting a paused timer in an if statement just fine but then I enhanced the routine which moved it up in the ladder and it seemed to never detect the paused timer out of the executable never executed. I finally put a toggle variable in and that appears to have remedied it.


    I was asking of the .isPaused detection of a routine is not a reliable IF routine trigger for one. Then if the timer is in .isPaused mode would code below it execute properly this could include turning the timer back on when another event was detected? Because the next time the event detection happened my routine would act if the timer was not paused.


    In any case I have it working good enough but I did not like using a detection boolean variable as it as problematic in the logic. But the reliable detection of .isActive verses .isPaused is the question. Are they reliable detection methods of what the timer is doing or can they be sometimes not detected? And if the timer is paused will the routine detect this and skip it the next time around as if it was not there?

    I am tired of the game giving everything to everyone .. they all dig to the middle of ground get bored and leave for a social setting whether it is a different server or just not playing at all. I think there needs to be more interesting things to do with permissions along character building techniques. While I have started doing in on my server I find the methods tedious in granting group permissions and permission do not create interaction with other players.


    Again I have started putting in character building techniques on my server but it is a tedious process and you do not have many options other than granting increasing rights to weapons or building capabilities.

    GMT (Greenwich Mean Time) does not support daylight saving, it is just like UTC (Coordinated Universal Time), a standard time zone not changing no matter what.


    You are probably confusing it with either CET (Central European Time) that changes to CEST (Central European Summer Time), or BST which is the British Summer Time timezone used in the UK in the summer in place of the GMT one as the latter doesn't support daylight saving.

    No I understand GMT I was deep ocean merchant mariner for 9 years. It is central time US that makes the problem.

    Ok seen that before in another place. Just wanted to make sure before I went off on a tangent that could end in frustrations.. thanks


    except GMT.. I hate GMT. Is it daylight savings or is it not-- oh gawwd?

    Hey Red this may seem basic to you but what is the start date for the millisecond read? In other words how can I extract the actual date?

    On my server we have tried taming jaguars and tigers. After taming them they still attack us. How do we fix this issue without making the wild ones passive?

    put a saddle on them and ride them in circles until they forget they are predator.


    >>> sarcasm off>>>


    That seems incredible that you want to turn the game on its end for a pet tiger... almost border on the incredulous. :S<X Take a picture and hang the poster on your wall. X/:whistling:

    This would be a rather important bug 8o ! If you are aware of systematic world data base "miswrite"s, I think you should report it with the maximum of info for correcting it.

    Depending on the host configuration, world data base editing might be possible or not:*) with a commercial server using MySQL, the data base is usually not accessible directly;
    *) even with SQLite DB, as commercial non-dedicated hosts usually do not allow to run arbitrary software, it may not be possible in loco.


    But even when possible, manually editing the world data base is definitely not advisable: data consistency and referential integrity may be subject to restrictions and constrains unknown to the person editing it and the resulting DB may be in worse conditions than before and even unusable.

    Ok well I do it all the time. I take it locally edit then change it out on the server. I dont edit BLOBs but I do delete entire records.


    Not sure about the number for a giraffe is 13 abd a NPC Dummie is 100. You can find the giraffe locaton in the NPC table of the world database. There is a location there but it is possible to find them. Attached is a typical World Database corruption. I think may be caused by ABM when it switched how it controlled the owned animals and dummies came in. You can find them by name too if you know the animal name as ABM sets the npc name. Some people set the npc name manually through the game


    The dummie Micythos in this example is missing in action/invisible but you can hear him if you are near the area. Notice his rotation.


    Recovery is not appear to be a possibility. You can turn off locked and invincibility if you cant find them. I have not tried to directly edit location but I am sure that is possible. Just notice the space used as a seperator.

    Ghost animals and npcs are common bug. I have a chicken in a particularly uninteresting spot on my sever. I believe it is related to the world database miswrite and not ABM. I is possible to edit the database if you talk to your admin them may be able to remedy it by making it go away permanently.

    Thanks I had both in a script but was not reading the input and noticed that the script never responded. So I was wondering what was hanging it up. I thought I would asked before I spent time looking it it. I know I was looking for a return too but I think my mistake may have been case related. So I will fool with it somemore. Thanks again.