Page 1 of 2 12 LastLast
Results 1 to 15 of 20

Thread: New decode.cpp and opcodes for 7/10 patch

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    93

    New decode.cpp and opcodes for 7/10 patch

    This patch is very very simple. There is an addition to the player packet that I don't have time to look at, but it is unlikely to cause much trouble (besides whining about bad size every time you zone). Plenty of folks out there can work it out I'm sure.

    Here are the new opcodes (Note that basically everything over opcode 0x40ish or so is simply one digit lower than it used to be):
    ZoneEntryCode 0x0253
    CharProfileCode 0x006a
    ConsiderCode 0x0174
    ZoneSpawnsCode 0x0188
    ClientTargetCode 0x018b
    CPlayerItemsCode 0x01dc
    NewSpawnCode 0x0228
    NewZoneCode 0x00ef
    DeleteSpawnCode 0x00f7
    EmoteTextCode 0x00f6
    MakeDropCode 0x00fe
    DoorSpawnsCode 0x01dd
    SpawnUpdateCode 0x0159
    NewCorpseCode 0x0114
    RemDropCode 0x00fd

    There are probably bunches more, but these will get folks rollin.


    Here is the new decode.cpp:
    /*
    * Decode.cpp
    *
    * ShowEQ Distributed under GPL
    * http://www.hackersquest.gomp.ch/
    */

    #include "main.h"
    #include "decode.h"

    uint16_t implicitlen (uint16_t opcode)
    {
    switch (opcode) {
    case 0x0017: // 23
    return 0x08; // 8
    case 0x0022: // 34
    return 0x12; // 18
    case 0x0039: // 57
    return 0x0c; // 12
    case 0x00c6: // 198
    return 0x08; // 8
    case 0x00e6: // 230
    return 0x17; // 23
    case 0x00f7: // 247
    return 0x04; // 4
    case 0x010f: // 271
    return 0x88; // 136
    case 0x0110: // 272
    return 0x1f; // 31
    case 0x0144: // 324
    return 0x09; // 9
    case 0x0153: // 339
    return 0x04; // 4
    case 0x0159: // 345
    return 0x08; // 8
    case 0x0242: // 578
    return 0x03; // 3
    case 0x0243: // 579
    return 0x03; // 3
    case 0x025c: // 604
    return 0x06; // 6
    case 0x025d: // 605
    return 0x06; // 6
    default:
    return 0;
    }
    }



    My SO's father has just been diagnosed with brain cancer. They are cutting open his skull to try to carve it out on Tuesday, but he will most likely die. It appears that even if he survives the operation, the survival rate goes to zero in only 5 years.

    As such, I will be out of town visiting him and not working on seq for a while. Please be kind to each other....you never know how long you've got.

    --piggy

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    93
    Zoolander posted the same decode.cpp and a (presumeably) better opcode list a few weeks back based on the Test server. I hadn't read the general discussion forum, so I missed it and ended up reinventing the wheel. <sigh>


    -piggy

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    152
    Always good that 2 people come up with the same answers.

    --------
    - Catt

    >SELECT * FROM users WHERE clue > 0;
    0 rows returned
    /em sigh

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    22
    I'll say a prayer for your SO's father and your SO. Maybe he can make it the 5 years ....

    Thanks for your work!

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    849
    Good Luck to you and yours Codepig, I hope everything works out in the best way possible.
    "What you've just said is one of the most insanely, idiotic things i've ever heard. At no point in your rambling, incoherant response were you even close to anything that could be considered a rational thought. Everyone in this room is now dumber for having listened to it. I award you NO points, and may god have mercy on your soul."

  6. #6
    Registered User
    Join Date
    Oct 2002
    Posts
    56
    Piggy - Hoping for the best for a bad situation. Life is short and very fragile -- your comments hit home in many ways.

  7. #7
    Registered User
    Join Date
    Apr 2002
    Posts
    149
    Thank you for the fix. And good luck to you and yours Codepig.

    /em gropes vainly for something to say that does not trivialize the nature of the situation or sound like a Hallmark card.

    /em gives up and shuffles off to meditate on the ephemeral nature of conciousness.
    To search, or not to search,--that is the question:--
    Whether 'tis nobler in the mind to suffer
    The slings and arrows of outrageous flaming
    Or to take a look at the search function,
    And by using it, end them?

  8. #8
    Registered User
    Join Date
    Jul 2003
    Posts
    3

    Make fails with this patch

    Tried this patches but the compile fails when I run make with the following error. It seems to be related to the changes in the opcodes.h file. Anyone know how to correct this? Thanks.

    Hope all goes well


    g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -I/usr/X11R6/include -DMAPDIR=\"/usr/local/share/showeq\" -DLOGDIR=\"/usr/local/share/showeq\" -I/usr/include/pcap -D_REENTRANT -O2 -Wall -g -ggdb -DDEBUG -finline-functions -DQT_THREAD_SUPPORT=1 -DDISPLAY_ICONS=false -DICON_DIR=\"/eq-icons/\" -c -o packet.o `test -f 'packet.cpp' || echo './'`packet.cpp
    packet.cpp: In member function `void EQPacket::dispatchZoneData(unsigned int,
    uint8_t*, unsigned char)':
    packet.cpp:2936: duplicate case value
    packet.cpp:2091: previously used here

  9. #9
    Registered User
    Join Date
    Oct 2002
    Posts
    235

    Re: Make fails with this patch

    Originally posted by nycjpm
    Anyone know how to correct this? Thanks.
    packet.cpp:2936: duplicate case value
    packet.cpp:2091: previously used here
    Didn't bother searching I see.

  10. #10
    Registered User
    Join Date
    Jul 2003
    Posts
    3
    Search for what? could you please help clarify what is meant by a "duplicate" in this case? I am still learning this stuff. I searched the through the sorce code referenced during make but after 3 hours of fiddling around looking for obvious errors I still can't make heads or tails of what this means - sorry


    packet.cpp:2936: duplicate case value
    packet.cpp:2091: previously used here

    What might it be that I didn't bother searching for?

    Regards
    JM

  11. #11
    Registered User Elyon's Avatar
    Join Date
    Mar 2002
    Posts
    139
    Originally posted by nycjpm
    Search for what?
    Regards
    JM
    For this....

    http://seq.sourceforge.net/forums/sh...&threadid=3671


    Look at the second message with a PATCH file attached to it. Replace the 2 files in your src directory that come in this patch and recompile.....

  12. #12
    Registered User
    Join Date
    Oct 2002
    Posts
    2
    ive patched those files and recompiled. but i get lots of segementation faults and seq closes, any ideas?

  13. #13
    Registered User
    Join Date
    Jul 2003
    Posts
    9
    Same here, sometimes it stays up for a while, sometimes closes after the zone or in the middle.
    Gotta wait for the fix or fix it yourself if you are into it.

  14. #14
    Registered User Elyon's Avatar
    Join Date
    Mar 2002
    Posts
    139
    This works fine for me and I am sure a lot of others too. Try erasing your showeq source and redownloading it from the CVS and then copying the patch files. Then do the recompile process...

    P.S. I use RH9.x

  15. #15
    Registered User AlphaBeta's Avatar
    Join Date
    Jan 2002
    Posts
    90
    Please see my post here on how I made mine work. hope it helps.
    -AlphaBeta

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On