Friday, August 29, 2014

New Websocket implementation

My server is online with a new websocket implementation by java-websocket by TooTallNate. I hope that this will work better for all the people which could not connect. Please try again and comment to tell me about your experience.

Replacing my WS implementation was surprisingly painless. I ran into some problems with my duplicate login prevention, but worked them out eventually. I had to sacrifice my stack for pure TCP sockets, but considering that I haven't regression-tested that code in ages, that's maybe for the better.

On an unrelated note: It's true. You can't put a server online without having it attacked immediately. I already have some IPs from China and Russia trying to brute-force my SSH root password. Good luck with that. It's randomly-generated and far too long to brute-force, especially over the net.

8 comments:

  1. Finally I managed to get into the game. At one time, when I was killing bats, I probably got stuck on the map. After refreshing the page, I got the following messages:
    http://imgur.com/qp9Ylkd
    http://imgur.com/13Rp9ki
    and I cannot log in again.
    I registered another test account, and when I logged in... I had spells from my previous one! When I logged off from test account, the spells were lost. I logged back - they were on again.
    Still can't log in to first account, getting the same error messages.

    ReplyDelete
    Replies
    1. Thank you for the bug report. I will look into it. Would be a lot easier, though, when you would tell me the character names.

      Delete
    2. Since on second test account I skipped the tutorial, I decided to try tutorial map again.
      When I got L0 Vampiric Fire Hex and used it on bat... game froze. Monsters and me couldn't move, but menu still worked. HP Bar and MP Bar were being updated (probably monster was finishing me off).

      Delete
    3. Is that character still working, Anonymous?

      Delete
    4. That character still works (called warom2). I tested again that spell.
      First try: game froze again, but after refreshing page I could go back in again.
      Second try: game didn't froze.
      Third try: game froze again.
      L0 Vampiric Fire Hex seems to be bugged.

      Delete
    5. Hello warom.

      Your character "warom" somehow got into a wall, which caused an error when the server tried to insert it. I have no idea how this could have happened. Anyway, I created a fix which tries to find a new position close to the old one when the insertion position is blocked. That will also fix a bunch of other problems in the future. The fix will be online after the next server restart.

      Regarding that spell: The vampiric spells were bugged on the client-side. I uploaded a fix which should work immediately. When it still doesn't work, please clean your browser cache.

      Delete
  2. Hi this is GotOne, Some Issues:
    ->It would be nice that when I click onto an item (shiny ball, etc.), and its too far away, I start going there, or at least so close I can pick it up.

    -> no WASD, no ←↓→, no hjkl?

    -> In the angel temle, I cant get to the second indoor map

    -> I've crafted shoes but there is no image, and I cant drag them to their place. It would be ok to have a dummy image in the meantime.

    -> When I log out and then log in again, the "Double ..." items are changed, so that the "x 2" has vanished. I haven't tested

    -> I can't apply ice or thunder weapons it sais I'm too inexperienced.

    ReplyDelete
    Replies
    1. Thank you very much for your feedback. It's greatly appreciated.

      > It would be nice that when I click onto an item (shiny ball, etc.), and its too far away, I start going there, or at least so close I can pick it up.

      I know, it's on my todo-list for a while now.

      > no WASD, no ←↓→, no hjkl?

      I had this in the beginning, but decided against it. All objects can move in any angle, so moving with keys would be quite restrictive.

      > In the angel temle, I cant get to the second indoor map

      That's because the second map doesn't exist yet :). But when you are trying to complete a quest, all the items you need can be found on the first map.

      > I've crafted shoes but there is no image, and I cant drag them to their place. It would be ok to have a dummy image in the meantime.

      Thank you for the report. I found the problem and will fix it in the next update. Unfortunately all already crafted items will still be bugged. A placeholder image for broken item graphics is definitely required, but lower priority for now.

      > When I log out and then log in again, the "Double ..." items are changed, so that the "x 2" has vanished. I haven't tested

      Thank you. Bug found and fixed in next update.

      > I can't apply ice or thunder weapons it sais I'm too inexperienced.

      That's likely because you are still level 0 in these disciplines. You need a level 0 spell of either element to get to level 1. A level 0 thunder bolt can be obtained from the shop in Wenibe. A level 0 cold bolt isn't in the game yet - I plan to have a quest for learning cold magic.

      Delete