Structs

EQ2Emulator Development forum.

Moderator: Team Members

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

Structs

Post by Ememjr » Thu Jun 01, 2017 5:00 pm

So i have added a struct for an unknown byte in a packet called "unknown_MJ1d" (the MJ is short for ememjr so i can find changes i made quickly) for data versions 63119 and higher

and i have added this to my code to test it

Code: Select all

packet->setSubstructDataByName("spell_info", "unknown_MJ1d", 1); //63119 test
what happens if i use an older client such as dov and it gets to the above line is it basically ignored since "unknown_MJ1d" does not exist or do i need to put an if statement and only execute it when i am on version 63119 or higher

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Structs

Post by Jabantiz » Thu Jun 01, 2017 6:32 pm

It will be ignored as it does not exist in older structs.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests