Doors for Newer Zones
I am trying to add some doors to Dreadspire and I was wondering if anyone could tell me where to pull the door names from. I notice that PEQ has something like 700+ door names and I was wondering if those were attained from packet collecting, or if the door names could be found from the EQG files or something somehow.
I tried setting all of the ones currently in PEQ (from the list of doors in the wiki), but I was only able to find 3 or 4 that actually worked in Dreadspire and they all seemed like Global objects like the message board, a crate, and the PoK scroll. I am sure there are at least 3 or 4 doors that must be custom loaded to Dreadspire from somewhere. I just need to find their names so I can start adding them. If anyone knows how to do this, I will gladly post the SQL needed to add them all into the zone for anyone else who wants to do so. I am pretty sure the doors I am looking for are a bookcase, a wall looking door and maybe 1 or 2 others. Most of them are for secret passageways and they aren't very secret without doors lol! I imagine once I have them, it might take a while for me to get them all in, but I will definitely share the database info once they are all complete. I am guessing that the best person to answer this question is Cavedude. So, if you see this one, can you please let me know the answer? Or if anyone else knows where to pull these names from, it would be appreciated. Thanks! For reference, I figured I would post links to the door related Wiki pages. So, anyone who finds this post in the future can easily get most of the door related information they might be looking for. Here are the links: Door Table Schema wiki page: http://www.eqemulator.net/wiki/wikka...uDBSchemadoors Door List from PEQ wiki page: http://www.eqemulator.net/wiki/wikka...=DoorsNameList |
Doors come from packet collects. Looking through my files, I don't have any logs for Dreadspire at all. Now the problem of course is we don't have a packet collector that works with Live that can export to a format that eqextractor can use (that's the tool used to extract door data) Worse yet, eqextractor wouldn't work with Live collects anyway, as it also would need to be updated :(
If anybody feels brave and wants to try to update both the packet collector and eqextractor (so that it can extract door/object/etc data AND export to EQBuilder) I would forever be in your debt, and would spend the summer collecting all of the newer zones. The big problem is going to be the spawn opcodes, as they are a royal pain to get. |
Woot! I was sure that info had to be in the EQG files somewhere, so I kept trying to figure out how to find the names. Finally, I remembered trying out S3DSpy a while back and seeing object names in there. I installed it and sure enough, it lists all EQG files as well!
When you pull up the list, you can see all of the object names, because they all end in .mod. The naming convention has changed as well and actually seems much better than the old door and object naming system lol. Here is a Link to GeorgeS emu page where you can find the S3DSpy app in the bottom section there. http://66.159.225.58/eqemu/eq.html And here is an example of the new format for doors and other objects. I didn't think it was going to work because the format is much different now. They now have OBJ in front of all object names and they also use underscores as well. Some of the new names are slightly longer than the old names, so the table might need to be adjusted to allow for longer names so it doesn't cut them off. Here is the list I made for Dreadspire: OBJ_BDRM_LDOOR OBJ_BDRM_RDOOR OBJ_ARTIFACTS_DO OBJ_BEAKER_A OBJ_CAULDREN_A OBJ_CENTER_PIECE OBJ_DINE_LDOOR OBJ_DINE_RDOOR OBJ_DOORFACADE OBJ_HIDDENDOOR OBJ_LIBRARY_CASE OBJ_LIBRY_HIDEDO OBJ_LIBRY_LDOOR OBJ_LIBRY_RDOOR OBJ_LIBRY_SWITCH OBJ_LIBRYSWTCHB OBJ_MAINCASTLE_D OBJ_MNGBOOKS OBJ_RESEARCH_DOO OBJ_RESEARCHDOOR OBJ_SEEING_DOOR OBJ_STAIRWELL_DO OBJ_STUDY_BOOKSH OBJ_STUDY_DOOR OBJ_TORTURE_DOOR OBJ_WHITEBLOCK That worked perfectly. If you have Navicat, you can copy the following and paste it into your table to view these doors. Just go to the loc near where the doors are: Field Order: ID DOORID ZONE NAME POS_Y POS_X POS_Z HEADING OPENTYPE GUILD LOCKPICK KEYITEM TRIGGERDOOR TRIGGERTYPE DOORISOPEN DOOR_PERAM DEST_ZONE DEST_X DEST_Y DEST_Z DEST_HEADING INVERT_STATE INCLINE SIZE BUFFER Code:
13001 1 dreadspire OBJ_BDRM_LDOOR 2450 0 100.1 0 55 0 0 0 0 0 0 -1 NONE 0 0 0 0 0 0 10 0 |
Quote:
|
Looks like many of the doors for the later expansions (using dreadspire as an example) are more than 16 characters. This may also be the case for other objects as well. But, I am only focusing on doors at this point.
So, I changed my table design to use 32 max characters for the door name field. And, it still wasn't working, so I started looking at the source and saw that it was set to 16 in many places there as well. Every case that I found 16 set for door names, I changed it. After the following changes, all doors were gone when I started the server, so it must have messed something up lol. Here are the changes I made. All code changes are marked in red: zone/doors.cpp: Code:
Doors::Doors(const Door* door) Code:
if (RunQuery(query, strlen(query), errbuf, &result)) { zone/doors.h: Code:
private: zone/entity.cpp: Code:
bool EntityList::MakeDoorSpawnPacket(EQApplicationPacket* app) common/dbsharemem.cpp: Code:
max_door_type = atoi(row[0]); common/eq_packet_structs.h: Code:
struct Door_Struct utils/schema.xml: Code:
<TABLE ID="4543" Tablename="doors" PrevTableName="" XPos="2108" YPos="2375" TableType="0" TablePrefix="0" nmTable="0" Temporary="0" UseStandardInserts="0" StandardInserts="" TableOptions="" Comments="" Collapsed="0" IsLinkedObject="0" IDLinkedModel="-1" Obj_id_Linked="-1" OrderPos="14" > zone/zonedump.h: Code:
struct Door { common/patches/anniversary_structs.h: Code:
struct Door_Struct common/patches/client62_structs.h: Code:
struct Door_Struct common/patches/live_structs.h Code:
struct Door_Struct common/patches/titanium_structs.h Code:
struct Door_Struct |
Any name you pull out of an .eqg file can be any size - apparently, SOE changed that with the newer eqg format, and is why a lot of things will not work.
Quote:
|
Maybe I accidentally changed something else door related in the source while I was making these changes. I will go through them all again tonight and make absolutely sure that nothing else was changed that might have caused it to get messed up.
What I did was search the source directory for all files containing the word "door" and then 1 by 1, I went through each file and looked to see if any of them had door name set to 16. I am pretty sure I got them all, but there is still the possibility I missed something. I don't see why this change would cause doors to disappear. Maybe there is some setting that limits the field to 16 that I am not aware of (maybe like a uint setting or something). I am not a coder, so I would really appreciate if a coder could have a quick look at this. This might not seem too major, but as far as using zones from later expansions go, we will always be limited with objects until this is fixed. I imagine that the object table will probably need similar name updates as well. I think this is the final thing needed to allow all Titanium zones to be used fully. Sure, you can use them now without doors, but IMO, doors are required in many to complete the zone. Now that I look at it, maybe my changes in utils/schema.xml are what caused the problem. I don't know much about that file and have never changed it before. Maybe this change is what broke it: Quote:
|
Here are the sections of code that I suspect one of them being the cause of doors disappearing when I change them. I changed all of the ones highlighted in red to 32 as shown in the earlier post. The red values here show the original values for coders to compare. All other changes above were all 16 to begin with.
dbmemshare.cpp: (note that this one was previously set to 10 and not 16 like all of the others. So, this leads me to believe that it either isn't used anymore, or maybe I need to leave it set to 10 for whatever reason...) Code:
bool Database::DBLoadDoors(int32 iDoorCount, int32 iMaxDoorID) { doors.cpp: Code:
Doors::Doors(const Door* door) Code:
// Door tmpDoor; Code:
private: Code:
bool EntityList::MakeDoorSpawnPacket(EQApplicationPacket* app) |
Well, I didn't get any code working for greater than 16 char door names yet, but I did get a new wiki page added. Noting it here since it is door related. I tested every opentype and created a nice reference list with descriptions for anyone wanting to create their own doors. Here is the completed list:
http://www.eqemulator.net/wiki/wikka.php?wakka=OpenType I still want to get the 16 char limit raised in the source, but I think I may need more help with it. |
Quote:
|
Quote:
|
I haven't had time to look into this a lot, but I noticed this:
Code:
struct Door_Struct |
Ahh, worth a shot! So, 2 parts of the packet would essentially become 1 but use the same space so that packet structure doesn't change?
I will see if I can get a compiler working on my windows pc so I can compile the source over and over testing each way without having to impact my players all night lol. And to Derision; I think this should be adjustable because of the note in the comment below showing that it was previously set to 10 and it is now 16. So, if it can go from 10 to 16, it should be able to go higher. Quote:
|
Quote:
|
Quote:
Here's the link. http://www.eqemulator.net/forums/showthread.php?t=25372 |
Ya, I got the dev kit and have used it and it seemed to work ok I think. I did get alot of warnings about not being able to find certain things from some of the lib files like the zlib, but I didn't get any errors.
I will probably try it out again and see if I can get a windows server just for me to test on maybe tonight. I know it works for me to run on a second server from the same IP, but I am the only one able to connect to it (due to no port forwarding for port 9000 since it is used by my Linux server). Which is perfectly fine for testing purposes. Maybe I can write a batch file to move all of the required files for the emu to run from the dev kit directory to my normal eqemu directory so I don't have to move them all manually each time. Should be pretty easy and I didn't think about that until now hehe. |
this works - I made all original changes posted here by trevius and Scorpious2k, including i removed all the extra "/*0016*/ char unknown0016[16];" i saw while changing the 32's.
So now we have a few fixes that WORK; -the Azone fix -the Flee fix -and this newest door fix Scorpious2k; are we going to get all this put into the source so everyone can try it out, or am I "pipe dreaming"? I ask you because it seems you're the "last Mohican" to these forums :) BTW THANK YOU Scorpious2k and trevius!!! |
Quote:
Quote:
|
Quote:
And even though I started the work on it, it certain couldn't have been completed without the catch from S2K! So, I certainly don't deserve all of the credit lol. Nice catch! Once you mentioned it, it made perfect sense that those 16 chars were there all along, but weren't being used for some reason, so they just stuck a filler in there to fill the gap (probably because they thought it was used for something else that was unknown). Should have been 32 from the start hehe. I will get the fleeing code added and this doors fix into my next code release probably tonight and post a link in the same thread that I have been posting my unofficial 1110 updates in. This will be version 1110d when I get it done and include all of the prior code as well. I can also add the azone patch if I can figure that out. Is that patch even used for anything on the server, or is it just a stand-alone utility for making the maps? I am just curious if that helps actually deal with the maps when the server is running or if it is completely separate. You are more than welcome to review my post linked below and use any of them for the official code 1111 release if you want. I will leave the win32 compile up to the devs if they want to use my source version, mainly because I am a little iffy on how my windows compiles go with the setup I use. The post describes everything that has been added to the code. I have tested everything accept for the IP limiting and it all works and the server has no other bugs so far from any of the code changes. I am certainly not a coder, but I can definitely add in updates that actual coders have submitted and test them pretty thoroughly since my server gets a decent amount of players relative to most servers (120+ at peak times). I can't wait to get those doors changes in! I already have all of the <16 char doors placed in Dreadspire and will add the >16 char ones when I get this added. I will post the door table info for Dreadspire when I have it all done so anyone else can use it if they like. Also, if anyone knows the sql to change the name field in the doors table from 16 char to 32 char, please post it so I can make note of that for anyone using the new 1110d code when I get it done. I always just use Navicat, so I am mysql illiterate lol. Otherwise, I will just explain how to do it in Navicat for anyone that wants to. |
I forgot about that, here it is;
Code:
ALTER TABLE `doors` MODIFY COLUMN `name` VARCHAR(32) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL; |
Quote:
Make Derision's modifications "http://www.rama.demon.co.uk/azone.patch" to the original azone (Build 1110). Does any one have the watermap patch? If so please PM it to me. For Windows Compile, you will have to add files to the project (file.cpp, zon.cpp, ter.cpp, pfs.cpp) Add to azone.cpp near #include "ter.hpp" (you many have to add the path to the project for zlib) #ifdef WIN32 #pragma comment(lib, "Ws2_32.lib") #pragma comment(lib, "zlib.lib") #endif Add to pfs.cpp near #include <string.h> #ifdef WIN32 #include <winsock2.h> #endif Change global.hpp, put #ifndef around #include <netinet/in.h> #ifndef WIN32 #include <netinet/in.h> #endif Move some variable definitions from wld.c to wld.h unsigned short d6size; char *encstr; float f1, f2, f3, f4; Build Azone, this will create Azone.exe (copy this to c:\temp) Use this SQL to make a batch file, save the csv file to c:\temp\kopy.bat (run in mysql query browser, and save as csv. then delete all double quotes) select CONCAT(CONCAT('copy \\umEQE\\', short_name),'.EQG c:\\temp') as name from zone union all select CONCAT(CONCAT('copy \\umEQE\\', short_name),'.S3D c:\\temp') as name from zone make sure you change \\umEQE\\ to the directory of where you installed EQ Titanium (NOTE in mysql \\ means \ ) Save the Visual Basic Script as c:\temp\RunAzone.vbs make sure the directory c:\temp exists and only has these files (kopy.bat, Azone.exe, RunAzone.vbs) run kopy.bat (start, run, type "cmd", cd \temp, kopy) run RunAzone.vbs (double click) 'copy the newly created map files to your server's map directory (you may want to back up first) Code:
'********************************************************************** |
Quote:
If you can get it to me in some kind of a package I will move it to live. |
Quote:
|
Quote:
|
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 Code:
--- source-1110/common/patches/Titanium_structs.h 2007-08-27 01:41:44.000000000 -0400 Code:
--- source-1110/utils/schema.xml 2005-04-24 12:21:44.000000000 -0400 Code:
--- source-1110/common/patches/Live_structs.h 2007-02-15 19:04:32.000000000 -0500 Code:
--- source-1110/common/eq_packet_structs.h 2008-04-13 12:11:06.000000000 -0400 Code:
--- source-1110/zone/entity.cpp 2008-05-30 18:44:12.000000000 -0400 Code:
--- source-1110/zone/doors.h 2008-04-09 04:08:33.000000000 -0400 Code:
--- source-1110/zone/doors.cpp 2008-04-09 04:08:33.000000000 -0400 Code:
--- source-1110/common/dbmemshare.cpp 2006-03-18 23:09:26.000000000 -0500 Client62_structs.h Code:
--- source-1110/common/patches/Client62_structs.h 2007-02-15 19:04:32.000000000 -0500 Code:
--- source-1110/common/patches/Anniversary_structs.h 2007-08-05 17:13:12.000000000 -0400 If it's not right, tell me how it needs to look for you |
This should all be in version 1111 which I updated last night.
Good work all! |
These got left out of the 1111 update;
Titanium_structs.h Code:
--- source-1110/common/patches/Titanium_structs.h 2007-08-27 01:41:44.000000000 -0400 Code:
--- source-1110/common/patches/Live_structs.h 2007-02-15 19:04:32.000000000 -0500 Client62_structs.h Code:
--- source-1110/common/patches/Client62_structs.h 2007-02-15 19:04:32.000000000 -0500 Code:
--- source-1110/common/patches/Anniversary_structs.h 2007-08-05 17:13:12.000000000 -0400 |
Quote:
Will update in a few minutes. |
I still see one more for the door fix that's not changed yet;
Code:
--- source-1110/utils/schema.xml 2005-04-24 12:21:44.000000000 -0400 |
LOL, when I put that list together, I did it mainly just by searching for doors and anything set to 16 for the name field. I am not even sure if that schema.xml is still used or what it is used for. But, the doors are definitely working great now, so might not be much reason to change it other than to keep consistency.
|
All times are GMT -4. The time now is 02:31 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.