FIX:for zoneserver.cpp

Code pertaining to the server

Moderator: Team Members

Post Reply
User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

FIX:for zoneserver.cpp

Post by Ememjr » Thu Oct 05, 2017 6:13 pm

this wil fix a couple of the unknowns in the worldstruct.xml

<Struct Name="WS_ZoneInfo" ClientVersion="63181" OpcodeName="OP_ZoneInfoMsg">

replace unknown5 and unknown6 with the following

Code: Select all

<Data ElementName="year" Type="int16" Size="1" />
<Data ElementName="month" Type="int8" Size="1" />
<Data ElementName="day" Type="int8" Size="1" />
<Data ElementName="hour" Type="int8" Size="1" />
<Data ElementName="minute" Type="int8" Size="1" />
<Data ElementName="unknown" Type="int8" Size="1" />
then in zoneserver.cpp in the following function
EQ2Packet* ZoneServer::GetZoneInfoPacket(Client* client){

replace all the packet-> for unknown5 and unknown6
with

Code: Select all

packet->setDataByName("year", world.GetWorldTimeStruct()->year);
	packet->setDataByName("month", world.GetWorldTimeStruct()->month);
	packet->setDataByName("day", world.GetWorldTimeStruct()->day);
	packet->setDataByName("hour", world.GetWorldTimeStruct()->hour);
	packet->setDataByName("minute", world.GetWorldTimeStruct()->minute);
	packet->setDataByName("unknown", 0);

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: FIX:for zoneserver.cpp

Post by Zcoretri » Thu Oct 05, 2017 7:19 pm

This has been committed to SVN

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: FIX:for zoneserver.cpp

Post by Ememjr » Fri Oct 06, 2017 1:54 am

Zcoretri wrote: Thu Oct 05, 2017 7:19 pm This has been committed to SVN
thanks one of these days hopefully i will be able to commit stuff myself

User avatar
Cynnar
Project Leader
Posts: 738
Joined: Sat Sep 27, 2014 1:22 am
EQ2Emu Server: Eq2emulator
Characters: Vlash
Veinlash
Taragak
Cynnar

Re: FIX:for zoneserver.cpp

Post by Cynnar » Fri Oct 06, 2017 12:00 pm

Thanks Zcoretri!

Should we archive and lock the post after changes are committed?
[ 01000011 01111001 01101110 01101110 01100001 01110010 ]

Follow on:
Twitter Facebook

Contact me:
PM Discord chat email

Hardware: the parts of a computer that can be kicked

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests