How To "build" Client.exe?

All Helbreath Client Source Discussion here.
Shetar
Member
Posts: 148
Joined: Sun Nov 30, 2003 12:57 am

Post by Shetar »

Well, making the display work doesn't mean the client works with 3.51..

Alot of other things left to do!

(But it's a start ;))
Helbreath II Project Manager & All round Developer. <br><i>(Don't worry, we're not dead)</i>
Jaap
Loyal fan
Posts: 390
Joined: Thu Apr 22, 2004 8:21 am

Post by Jaap »

Hey BTW! The reason that mail is stored in mysql is that it's a hell to save/load the mails directly to a plain text file... that's just waayyyyy too slow
Shetar
Member
Posts: 148
Joined: Sun Nov 30, 2003 12:57 am

Post by Shetar »

Jaapie, wrong topic/section.. But thank you for the info? :rolleyes:
Helbreath II Project Manager & All round Developer. <br><i>(Don't worry, we're not dead)</i>
binarydata
DBfiller
Posts: 3816
Joined: Fri Oct 31, 2003 5:30 am
Location: San Diego CA, USA
Contact:

Post by binarydata »

Shetar wrote: HBX renewed its forum.

How to make 2.20 client work with 3.51 HGServer:

The story
After 2.20 Siementech decided to change Status values (probably because of the lack of space concidering those new aura's etc, they needed space for bitshifting)

What did they change?
They changed all the status flags from short to int, which doubles the size.
Not only m_iStatus (m_sStatus) but also m_iPlayerStatus

How to do it yourself?
Well, here it gets a lil bit more difficult, I'll try to explain it.

-First of all, change the definitions in the Client's Game.h (from short to int)

-It might be smart to also change the m_sStatus's name into m_iStatus (only for experienced coders, this is not needed but eases the overview)

-Last but NOT the least lol:
In Client's Game.cpp find all the Status values, the easiest by using the Find In Files option in Visual C++. Some of those values are decoded after receivement from the HGServer.

Example:
  sp  = (short *)cp;
  m_sPlayerStatus = *sp;
  cp += 2;
change those values into int values.

Example:
  ip  = (int *)cp;
  m_iPlayerStatus = *ip;
  cp += 4;
This should do..!

PS:
-If I forgot / misplaced something, be sure to post it..!
-If you don't know how to do it, forget it.
cool
this calls for a new sticky!
<img src='http://img88.exs.cx/img88/2290/7666.jpg' border='0' alt='user posted image' />
Post Reply