Author Topic: Project Orpheus [Last updated 4-6-2011]  (Read 627 times)

Offline Chandlermaki

  • Rune Member
  • *
  • Posts: 129
  • Rep 6
  • You's trollin'.
  • Location: USA
    • View Profile
Re: Project Orpheus
« Reply #15 on: March 15, 2011, 12:45:15 am »
Don't rush it, take your time and make sure all bugs are gone!
Those few more days it takes to remove the bugs can make or break a server!

If you need a tester for your server before you open it publicly, I can come and ...'test' for you.  :hurr:

Thanks. I've got a strange bug that has me really stumped, so it'll probably be awhile before I'm ready for any testing.

For some reason the server likes to randomly DC players. No errors server or client sided, just random DCs.
And don't even get me started on the hitpoint bar. I've done loads of work on it, and I still can't get it updating correctly.

Anybody want to take a look at my appendHitUpdate void and see if they find anything wrong with it?

Code: [Select]
    protected void appendHitUpdate(Stream str) {
        try {
            str.writeByte(hitDiff);
            if (hitDiff > 0 && !newhptype && !poisondmg) {
                str.writeByteS(1);
            } else if (hitDiff > 0 && poisondmg) {
                str.writeByteS(2);
            } else if (hitDiff > 0 && newhptype) {
                str.writeByteS(hptype);
            } else {
                str.writeByteS(0);
            }
            if (hitDiff > 0) {
                NewHP = playerLevel[3] - hitDiff;
                if (NewHP <= 0) {
                    NewHP = 0;
                }
                UpdateHP = true;
            }
            str.writeByte(playerLevel[playerHitpoints]);
            str.writeByteC(getLevelForXP(playerXP[playerHitpoints]));
            //poisondmg = false;
            //newhptype = false;
            //hptype = 0;
            inCombat = true;
            CombatDelay = System.currentTimeMillis();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
Insert clever signature here.