Results 1 to 5 of 5

Thread: 05/14/2013 changes

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    113

    05/14/2013 changes

    Wasn't expecting a Tuesday patch, so didn't get started till late. This should get you working. Only minimal op-codes done so far, but enough to work. Still need to flush out the rest. Changes to coords again. Didn't see anything else broken besides that.

    The diff is from latest SVN
    Code:
    Index: conf/zoneopcodes.xml
    ===================================================================
    --- conf/zoneopcodes.xml	(revision 786)
    +++ conf/zoneopcodes.xml	(working copy)
    @@ -3,33 +3,33 @@
     <seqopcodes>
     
         <!-- Critical opcodes used directly by ShowEQ -->
    -    <opcode id="6b5b" name="OP_PlayerProfile" updated="04/17/13">
    +    <opcode id="6506" name="OP_PlayerProfile" updated="05/14/13">
             <comment>CharProfileCode</comment>
             <payload dir="server" typename="uint8_t" sizechecktype="none"/>
         </opcode>
    -    <opcode id="31d8" name="OP_ZoneEntry" updated="04/17/13">
    +    <opcode id="5089" name="OP_ZoneEntry" updated="05/14/13">
             <comment>ZoneEntryCode</comment>
             <payload dir="client" typename="ClientZoneEntryStruct" sizechecktype="match"/>
         <payload dir="server" typename="uint8_t" sizechecktype="none"/>
         </opcode>
    -    <opcode id="3377" name="OP_TimeOfDay" updated="04/17/13">
    +    <opcode id="5070" name="OP_TimeOfDay" updated="05/14/13">
             <comment>TimeOfDayCode</comment>
             <payload dir="server" typename="timeOfDayStruct" sizechecktype="match"/>
         </opcode>
    -    <opcode id="0bf6" name="OP_NewZone" updated="04/17/13">
    +    <opcode id="1795" name="OP_NewZone" updated="05/14/13">
             <comment>NewZoneCode</comment>
             <payload dir="server" typename="newZoneStruct" sizechecktype="match"/>
         </opcode>
    -    <opcode id="375d" name="OP_SpawnDoor" updated="04/17/13">
    +    <opcode id="7291" name="OP_SpawnDoor" updated="05/14/13">
             <comment>DoorSpawnsCode</comment>
             <payload dir="server" typename="doorStruct" sizechecktype="modulus"/>
         </opcode>
    -    <opcode id="3a2b" name="OP_GroundSpawn" updated="04/17/13">
    +    <opcode id="6fca" name="OP_GroundSpawn" updated="05/14/13">
             <comment>MakeDropCode</comment>
             <payload dir="server" typename="makeDropStruct" sizechecktype="none"/>
             <payload dir="client" typename="uint8_t" sizechecktype="none"/>
         </opcode>
    -    <opcode id="41b8" name="OP_SendZonePoints" updated="04/17/13">
    +    <opcode id="69a4" name="OP_SendZonePoints" updated="05/14/13">
             <comment>Coords in a zone that will port you to another zone</comment>
             <payload dir="server" typename="zonePointsStruct" sizechecktype="none"/>
         </opcode>
    @@ -41,40 +41,40 @@
             <comment>ExpUpdateCode</comment>
             <payload dir="server" typename="expUpdateStruct" sizechecktype="match"/>
         </opcode>
    -    <opcode id="4e44" name="OP_GuildMOTD" updated="04/17/13">
    +    <opcode id="3e13" name="OP_GuildMOTD" updated="05/14/13">
             <comment>GuildMOTD</comment>
             <payload dir="server" typename="guildMOTDStruct" sizechecktype="none"/>
         </opcode>
    -    <opcode id="6962" name="OP_ClientUpdate" updated="04/17/13">
    +    <opcode id="7dfc" name="OP_ClientUpdate" updated="05/14/13">
             <comment>Position updates</comment>
             <payload dir="server" typename="playerSpawnPosStruct" sizechecktype="match"/>
             <payload dir="both" typename="playerSelfPosStruct" sizechecktype="match"/>
         </opcode>
    -    <opcode id="5a39" name="OP_NpcMoveUpdate" updated="04/17/13">
    +    <opcode id="5892" name="OP_NpcMoveUpdate" updated="05/14/13">
             <comment>Position updates</comment>
             <payload dir="server" typename="uint8_t" sizechecktype="none"/>
         </opcode>
    -    <opcode id="6d4b" name="OP_MobUpdate" updated="04/17/13">
    +    <opcode id="2c84" name="OP_MobUpdate" updated="05/14/13">
             <comment>MobUpdateCode</comment>
             <payload dir="both" typename="spawnPositionUpdate" sizechecktype="match"/>
         </opcode>
    -    <opcode id="0b78" name="OP_DeleteSpawn" updated="04/17/13">
    +    <opcode id="67fc" name="OP_DeleteSpawn" updated="05/14/13">
             <comment>DeleteSpawnCode</comment>
             <payload dir="both" typename="deleteSpawnStruct" sizechecktype="match"/>
         </opcode>
    -    <opcode id="5279" name="OP_RemoveSpawn" updated="04/17/13">
    +    <opcode id="7280" name="OP_RemoveSpawn" updated="05/14/13">
             <comment>Remove spawn from zone</comment>
         <payload dir="both" typename="removeSpawnStruct" sizechecktype="none"/>
         </opcode>
    -    <opcode id="1aa0" name="OP_Death" updated="04/17/13">
    +    <opcode id="6517" name="OP_Death" updated="05/14/13">
             <comment>old NewCorpseCode</comment>
             <payload dir="server" typename="newCorpseStruct" sizechecktype="match"/>
         </opcode>
    -    <opcode id="1ff6" name="OP_WearChange" updated="04/17/13">
    +    <opcode id="7994" name="OP_WearChange" updated="05/14/13">
             <comment>SpawnUpdateCode</comment>
             <payload dir="both" typename="SpawnUpdateStruct" sizechecktype="match"/>
         </opcode>
    -    <opcode id="130f" name="OP_SpawnAppearance" updated="04/17/13">
    +    <opcode id="0971" name="OP_SpawnAppearance" updated="05/14/13">
             <comment>SpawnAppearanceCode</comment>
             <payload dir="both" typename="spawnAppearanceStruct" sizechecktype="match"/>
         </opcode>
    @@ -86,7 +86,7 @@
             <comment>NpcHpUpdateCode Update HP % of a PC or NPC</comment>
             <payload dir="both" typename="hpNpcUpdateStruct" sizechecktype="match"/>
         </opcode>
    -    <opcode id="665a" name="OP_GuildMemberUpdate" updated="04/17/13">
    +    <opcode id="69b9" name="OP_GuildMemberUpdate" updated="05/14/13">
             <comment>Info regarding guild members</comment>
             <payload dir="server" typename="GuildMemberUpdate" sizechecktype="match"/>
         </opcode>
    @@ -94,12 +94,12 @@
             <comment>Items dropped on the ground</comment>
             <payload dir="both" typename="remDropStruct" sizechecktype="match"/>
         </opcode>
    -    <opcode id="7329" name="OP_Action" updated="04/17/13">
    +    <opcode id="744c" name="OP_Action" updated="05/14/13">
             <comment>Spells cast etc</comment>
             <payload dir="both" typename="actionStruct" sizechecktype="match"/>
             <payload dir="both" typename="actionAltStruct" sizechecktype="match"/>
         </opcode>
    -    <opcode id="4725" name="OP_Action2" updated="04/17/13">
    +    <opcode id="6f15" name="OP_Action2" updated="05/14/13">
             <comment>Combat actions i.e. bash, kick etc</comment>
             <payload dir="both" typename="action2Struct" sizechecktype="match"/>
         </opcode>
    Index: src/spawnshell.cpp
    ===================================================================
    --- src/spawnshell.cpp	(revision 786)
    +++ src/spawnshell.cpp	(working copy)
    @@ -911,29 +911,31 @@
         	/*0002*/ uint16_t spawnId2;
         	/*0004*/ unsigned pitch:12;
         	         signed   y:19;           // y coord
    -    	         unsigned padding03:01;
    -    	/*0008*/ signed   z:19;           // z coord
    +    	         unsigned padding01:01;
    +    	/*0008*/ signed   deltaZ:13;      // change in z
         	         signed   deltaX:13;      // change in x
    -    	/*0012*/ signed   deltaZ:13;      // change in z
    +    	         unsigned padding02:06;
    +    	/*0012*/ signed   x:19;           // x coord
         	         unsigned heading:12;     // heading
    -    	         unsigned padding01:07;
    -    	/*0016*/ signed   deltaY:13;      // change in y
    -    	         signed   x:19;           // x coord
    +    	         unsigned padding03:01;
    +    	/*0016*/ signed   deltaHeading:10; // change in heading
    +    	         signed   z:19;           // z coord
    +    	         unsigned padding04:03;
         	/*0020*/ signed   animation:10;   // velocity
    -    	         signed   deltaHeading:10; // change in heading
    -    	         unsigned padding02:12;
    +    	         signed   deltaY:13;      // change in y
    +                 unsigned padding05:9;
         	/*0024*/
     };
     #pragma pack(0)
         struct pos *p = (struct pos *)data;
         if (p->spawnId == 0x1234)
    -        printf("[%.2x](%f, %f, %f), dx %f dy %f dz %f\n  head %d dhead %d anim %d pitch %d (%x, %x, %x)\n",
    +        printf("[%.2x](%f, %f, %f), dx %f dy %f dz %f\n  head %d dhead %d anim %d pitch %d (%x, %x, %x, %x, %x)\n",
                     p->spawnId, float(p->x)/8.0, float(p->y/8.0), float(p->z)/8.0,
                     float(p->deltaX)/4.0, float(p->deltaY)/4.0,
                     float(p->deltaZ)/4.0,
                     p->heading, p->deltaHeading,
                     p->animation, p->pitch,
    -                p->padding01, p->padding02, p->padding03);
    +                p->padding01, p->padding02, p->padding03, p->padding04, p->padding05);
     #endif
     
         updateSpawn(pupdate->spawnId, x, y, z, dx, dy, dz,
    Index: src/player.cpp
    ===================================================================
    --- src/player.cpp	(revision 786)
    +++ src/player.cpp	(working copy)
    @@ -854,19 +854,19 @@
     	  /*0006*/ unsigned pitch:12;                      // pitch (up/down heading)
     	           unsigned padding1:20;                    // ***Placeholder
     	  /*0010*/ float deltaX;                           // Change in x
    -	  /*0014*/ signed animation:10;                    // velocity
    -               unsigned padding2:12;                   // ***Placeholder
    +	  /*0014*/ unsigned heading:12;                    // Directional heading
    +               unsigned padding2:10;                   // ***Placeholder
                    unsigned padding3:10;                   // ***Placeholder
     	  /*0018*/ float x;                                // x coord (1st loc value)
    -	  /*0022*/ unsigned heading:12;                    // Directional heading
    -	           unsigned padding6:20;                   // **Placeholder
    +	  /*0022*/ float deltaZ;                           // Change in z
     	  /*0026*/ float z;                                // z coord (3rd loc value)
    -	  /*0030*/ signed deltaHeading:10;                 // change in heading
    +	  /*0030*/ float y;                                // y coord (2nd loc value)
    +	  /*0034*/ signed animation:10;                    // velocity
           	  	   unsigned padding4:10;                   // ***Placeholder
           	  	   unsigned padding5:12;                   // ***Placeholder
    -	  /*0034*/ float deltaZ;                           // Change in z
     	  /*0038*/ float deltaY;                           // Change in y
    -	  /*0042*/ float y;                                // y coord (2nd loc value)
    +	  /*0042*/ signed deltaHeading:10;                 // change in heading
    +	           unsigned padding6:22;                   // **Placeholder
     	  /*0046*/
     };
     #pragma pack(0)
    Index: src/everquest.h
    ===================================================================
    --- src/everquest.h	(revision 786)
    +++ src/everquest.h	(working copy)
    @@ -1092,17 +1092,19 @@
                {
             	   unsigned pitch:12;
             	   signed   y:19;           // y coord
    -        	   unsigned padding03:01;
    -        	   signed   z:19;           // z coord
    -        	   signed   deltaX:13;      // change in x
    +        	   unsigned padding01:01;
             	   signed   deltaZ:13;      // change in z
    -        	   unsigned heading:12;     // heading
    -        	   unsigned padding01:07;
    -        	   signed   deltaY:13;      // change in y
    +        	   signed   deltaX:13;      // change in x
    +        	   unsigned padding02:06;
             	   signed   x:19;           // x coord
    -        	   signed   animation:10;   // velocity
    +        	   unsigned heading:12;     // heading
    +        	   unsigned padding03:01;
             	   signed   deltaHeading:10; // change in heading
    -        	   unsigned padding02:12;
    +        	   signed   z:19;           // z coord
    +        	   unsigned padding04:03;
    +        	   signed   animation:10;   // velocity
    +        	   signed   deltaY:13;      // change in y
    +        	   unsigned padding05:9;
                };
                int32_t posData[5];
              };
    @@ -2352,17 +2354,19 @@
     /*0002*/ uint16_t spawnId2;
     /*0004*/ unsigned pitch:12;
              signed   y:19;           // y coord
    -         unsigned padding03:01;
    -/*0008*/ signed   z:19;           // z coord
    +         unsigned padding01:01;
    +/*0008*/ signed   deltaZ:13;      // change in z
              signed   deltaX:13;      // change in x
    -/*0012*/ signed   deltaZ:13;      // change in z
    +         unsigned padding02:06;
    +/*0012*/ signed   x:19;           // x coord
              unsigned heading:12;     // heading
    -         unsigned padding01:07;
    -/*0016*/ signed   deltaY:13;      // change in y
    -         signed   x:19;           // x coord
    +         unsigned padding03:01;
    +/*0016*/ signed   deltaHeading:10; // change in heading
    +         signed   z:19;           // z coord
    +         unsigned padding04:03;
     /*0020*/ signed   animation:10;   // velocity
    -         signed   deltaHeading:10; // change in heading
    -         unsigned padding02:12;
    +         signed   deltaY:13;      // change in y
    +         unsigned padding05:9;
     /*0024*/
     };
     
    @@ -2380,19 +2384,19 @@
     /*0006*/ unsigned pitch:12;                      // pitch (up/down heading)
              unsigned padding1:20;                    // ***Placeholder
     /*0010*/ float deltaX;                           // Change in x
    -/*0014*/ signed animation:10;                    // velocity
    -         unsigned padding2:12;                   // ***Placeholder
    +/*0014*/ unsigned heading:12;                    // Directional heading
    +         unsigned padding2:10;                   // ***Placeholder
              unsigned padding3:10;                   // ***Placeholder
     /*0018*/ float x;                                // x coord (1st loc value)
    -/*0022*/ unsigned heading:12;                    // Directional heading
    -         unsigned padding6:20;                   // **Placeholder
    +/*0022*/ float deltaZ;                           // Change in z
     /*0026*/ float z;                                // z coord (3rd loc value)
    -/*0030*/ signed deltaHeading:10;                 // change in heading
    -   	     unsigned padding4:10;                   // ***Placeholder
    -    	 unsigned padding5:12;                   // ***Placeholder
    -/*0034*/ float deltaZ;                           // Change in z
    +/*0030*/ float y;                                // y coord (2nd loc value)
    +/*0034*/ signed animation:10;                    // velocity
    +         unsigned padding4:10;                   // ***Placeholder
    +         unsigned padding5:12;                   // ***Placeholder
     /*0038*/ float deltaY;                           // Change in y
    -/*0042*/ float y;                                // y coord (2nd loc value)
    +/*0042*/ signed deltaHeading:10;                 // change in heading
    +         unsigned padding6:22;                   // **Placeholder
     /*0046*/
     };

  2. #2
    Registered User
    Join Date
    Oct 2008
    Posts
    24

    Re: 05/14/2013 changes

    <3<3

  3. #3
    Registered User
    Join Date
    Mar 2013
    Posts
    4

    Re: 05/14/2013 changes

    Thanks for getting us working !

  4. #4
    Registered User
    Join Date
    Mar 2007
    Posts
    32

    Re: 05/14/2013 changes

    I think the targeting may still be wrong. I'm not getting highlight updates when I select mobs.

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    113

    Re: 05/14/2013 changes

    I had only done a minimum set of op-codes. There are still several to flush out. You can fix target and consider with these two:

    <opcode id="742b" name="OP_Consider" updated="05/14/13">
    <opcode id="075d" name="OP_TargetMouse" updated="05/14/13">

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