View Single Post
  #25  
Old 06-14-2008, 01:23 PM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default Diff/patch files for door fix

Scorpious2k, I hope you can use this;

zonedump.h
Code:
--- source-1110/zone/zonedump.h	2008-04-09 04:08:33.000000000 -0400
+++ source-patched/zone/zonedump.h	2008-06-11 06:00:20.000000000 -0400
@@ -189,7 +189,7 @@
 int32	db_id;
 int8	door_id;
 char	zone_name[16];
-char	door_name[16];
+char	door_name[32];
 float	pos_x;
 float	pos_y;
 float	pos_z;
Titanium_structs.h
Code:
--- source-1110/common/patches/Titanium_structs.h	2007-08-27 01:41:44.000000000 -0400
+++ source-patched/common/patches/Titanium_structs.h	2008-06-11 06:05:04.000000000 -0400
@@ -2007,8 +2007,7 @@
 */
 struct Door_Struct
 {
-/*0000*/ char    name[16];            // Filename of Door // Was 10char long before... added the 6 in the next unknown to it: Daeken M. BlackBlade
-/*0016*/ char    unknown0016[16];
+/*0000*/ char    name[32];            // Filename of Door // Was 10char long before... added the 6 in the next unknown to it: Daeken M. BlackBlade
 /*0032*/ float   yPos;               // y loc
 /*0036*/ float   xPos;               // x loc
 /*0040*/ float   zPos;               // z loc
schema.xml
Code:
--- source-1110/utils/schema.xml	2005-04-24 12:21:44.000000000 -0400
+++ source-patched/utils/schema.xml	2008-06-11 07:23:25.000000000 -0400
@@ -1265,7 +1265,7 @@
 <OPTIONSELECT Value="0" />
 </OPTIONSELECTED>
 </COLUMN>
-<COLUMN ID="4909" ColName="name" PrevColName="" Pos="4" idDatatype="20" DatatypeParams="(16)" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="">
+<COLUMN ID="4909" ColName="name" PrevColName="" Pos="4" idDatatype="20" DatatypeParams="(32)" Width="0" Prec="0" PrimaryKey="0" NotNull="1" AutoInc="0" IsForeignKey="0" DefaultValue="" Comments="">
 <OPTIONSELECTED>
 <OPTIONSELECT Value="0" />
 </OPTIONSELECTED>
Live_structs.h
Code:
--- source-1110/common/patches/Live_structs.h	2007-02-15 19:04:32.000000000 -0500
+++ source-patched/common/patches/Live_structs.h	2008-06-11 06:04:15.000000000 -0400
@@ -1997,8 +1997,7 @@
 */
 struct Door_Struct
 {
-/*0000*/ char    name[16];            // Filename of Door // Was 10char long before... added the 6 in the next unknown to it: Daeken M. BlackBlade
-/*0016*/ char    unknown0016[16];
+/*0000*/ char    name[32];            // Filename of Door // Was 10char long before... added the 6 in the next unknown to it: Daeken M. BlackBlade
 /*0032*/ float   yPos;               // y loc
 /*0036*/ float   xPos;               // x loc
 /*0040*/ float   zPos;               // z loc
eq_packet_structs.h
Code:
--- source-1110/common/eq_packet_structs.h	2008-04-13 12:11:06.000000000 -0400
+++ source-patched/common/eq_packet_structs.h	2008-06-10 17:42:43.000000000 -0400
@@ -2049,8 +2049,7 @@
 */
 struct Door_Struct
 {
-/*0000*/ char    name[16];            // Filename of Door // Was 10char long before... added the 6 in the next unknown to it: Daeken M. BlackBlade
-/*0016*/ char    unknown0016[16];
+/*0000*/ char    name[32];            // Filename of Door // Was 10char long before... added the 6 in the next unknown to it: Daeken M. BlackBlade
 /*0032*/ float   yPos;               // y loc
 /*0036*/ float   xPos;               // x loc
 /*0040*/ float   zPos;               // z loc
entity.cpp
Code:
--- source-1110/zone/entity.cpp	2008-05-30 18:44:12.000000000 -0400
+++ source-patched/zone/entity.cpp	2008-06-11 05:54:58.000000000 -0400
@@ -664,7 +664,7 @@
 		door = iterator.GetData();
 		if(door && strlen(door->GetDoorName()) > 3){
 			memset(&nd, 0, sizeof(nd));
-			memcpy(nd.name, door->GetDoorName(), 16);
+			memcpy(nd.name, door->GetDoorName(), 32);
 			nd.xPos = door->GetX();
 			nd.yPos = door->GetY();
 			nd.zPos = door->GetZ();
doors.h
Code:
--- source-1110/zone/doors.h	2008-04-09 04:08:33.000000000 -0400
+++ source-patched/zone/doors.h	2008-06-11 08:36:45.000000000 -0400
@@ -56,7 +56,7 @@
 int32	db_id;
 sint8	door_id;
 char	zone_name[16];
-char	door_name[16];
+char	door_name[32];
 float	pos_x;
 float	pos_y;
 float	pos_z;
doors.cpp
Code:
--- source-1110/zone/doors.cpp	2008-04-09 04:08:33.000000000 -0400
+++ source-patched/zone/doors.cpp	2008-06-11 08:35:49.000000000 -0400
@@ -39,7 +39,7 @@
 	db_id = door->db_id;
 	door_id = door->door_id;
 	strncpy(zone_name,door->zone_name,16);
-	strncpy(door_name,door->door_name,16);
+	strncpy(door_name,door->door_name,32);
 	pos_x = door->pos_x;
 	pos_y = door->pos_y;
 	pos_z = door->pos_z;
@@ -458,7 +458,7 @@
 			into[r].db_id = atoi(row[0]);
 			into[r].door_id = atoi(row[1]);
 			strncpy(into[r].zone_name,row[2],16);
-			strncpy(into[r].door_name,row[3],16);
+			strncpy(into[r].door_name,row[3],32);
 			into[r].pos_x = (float)atof(row[4]);
 			into[r].pos_y = (float)atof(row[5]);
 			into[r].pos_z = (float)atof(row[6]);
dbmemshare.cpp
Code:
--- source-1110/common/dbmemshare.cpp	2006-03-18 23:09:26.000000000 -0500
+++ source-patched/common/dbmemshare.cpp	2008-06-11 05:59:15.000000000 -0400
@@ -98,7 +98,7 @@
 						tmpDoor.db_id = atoi(row[0]);
 						tmpDoor.door_id = atoi(row[1]);
 						strncpy(tmpDoor.zone_name,row[2],16);
-						strncpy(tmpDoor.door_name,row[3],10);
+						strncpy(tmpDoor.door_name,row[3],32);
 						tmpDoor.pos_x = (float)atof(row[4]);
 						tmpDoor.pos_y = (float)atof(row[5]);
 						tmpDoor.pos_z = (float)atof(row[6]);

Client62_structs.h
Code:
--- source-1110/common/patches/Client62_structs.h	2007-02-15 19:04:32.000000000 -0500
+++ source-patched/common/patches/Client62_structs.h	2008-06-11 06:02:53.000000000 -0400
@@ -1944,8 +1944,7 @@
 */
 struct Door_Struct
 {
-/*0000*/ char    name[16];            // Filename of Door // Was 10char long before... added the 6 in the next unknown to it: Daeken M. BlackBlade
-/*0016*/ char    unknown0016[16];
+/*0000*/ char    name[32];            // Filename of Door // Was 10char long before... added the 6 in the next unknown to it: Daeken M. BlackBlade
 /*0032*/ float   yPos;               // y loc
 /*0036*/ float   xPos;               // x loc
 /*0040*/ float   zPos;               // z loc
Anniversary_structs.h
Code:
--- source-1110/common/patches/Anniversary_structs.h	2007-08-05 17:13:12.000000000 -0400
+++ source-patched/common/patches/Anniversary_structs.h	2008-06-11 06:03:30.000000000 -0400
@@ -2083,8 +2083,7 @@
 */
 struct Door_Struct
 {
-/*0000*/ char    name[16];            // Filename of Door // Was 10char long before... added the 6 in the next unknown to it: Daeken M. BlackBlade
-/*0016*/ char    unknown0016[16];
+/*0000*/ char    name[32];            // Filename of Door // Was 10char long before... added the 6 in the next unknown to it: Daeken M. BlackBlade
 /*0032*/ float   yPos;               // y loc
 /*0036*/ float   xPos;               // x loc
 /*0040*/ float   zPos;               // z loc
This was done against the current official 1110 source
If it's not right, tell me how it needs to look for you
Reply With Quote