How To "build" Client.exe?

All Helbreath Client Source Discussion here.
romax
Member
Posts: 149
Joined: Sat Nov 01, 2003 10:42 am

Post by romax »

hum... i am pretty n00b at scourse and all... and when i downloaded 2.20 SRC client there no was "client.dsp" like in HGserver SRC .... any one can tell me how to build it or got client SRc alerby with it? thenks.
<img src='http://img357.imageshack.us/img357/505/eyecopy7ng.gif' border='0' alt='user posted image' />
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

romax wrote: hum... i am pretty n00b at scourse and all... and when i downloaded 2.20 SRC client there no was "client.dsp" like in HGserver SRC .... any one can tell me how to build it or got client SRc alerby with it? thenks.
For the 2.20 cient sources there must be HClient.dsw anyways if not, just try creating the project from vb
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Locobans n00b
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Shetar
Member
Posts: 148
Joined: Sun Nov 30, 2003 12:57 am

Post by Shetar »

Maybe a noob, but he's right.
Helbreath II Project Manager & All round Developer. <br><i>(Don't worry, we're not dead)</i>
romax
Member
Posts: 149
Joined: Sat Nov 01, 2003 10:42 am

Post by romax »

.... thets not there.. nvm i gave up.. thets sux code this scourse any way i am to noob to code all maps hero items ect... :P
<img src='http://img357.imageshack.us/img357/505/eyecopy7ng.gif' border='0' alt='user posted image' />
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

romax wrote:.... thets not there..  nvm i gave up.. thets sux code this scourse any way i am to noob to code all maps hero items ect...  :P
This is really easy to add stuff in client... Attachement is my workspace file + project file. Is you miss some of the files, you should have a bad client source...


Here is how to add the hero items for Males :

in game.cpp, function updatescreen_onloading, case 52

Code: Select all

MakeSprite( "MHRobe1", 5060 + 15*10, 12, TRUE); //Hero's Robe
MakeSprite( "MHRobe2", 5060 + 15*11, 12, TRUE); //Hero's Robe
MakeSprite( "MHPMail1", 5060 + 15*8, 12, TRUE); //Hero's Armor
MakeSprite( "MHPMail2", 5060 + 15*9, 12, TRUE); //Hero's Armor
MakeSprite( "MHHauberk1", 5300 + 15*3, 12, TRUE); //Hero's Hauberk
MakeSprite( "MHHauberk2", 5300 + 15*4, 12, TRUE); //Hero's Hauberk
in game.cpp, function updatescreen_onloading, case 56

Code: Select all

MakeSprite( "MHLeggings1", 5540 + 15*5, 12, TRUE); // Hero's Leggings
MakeSprite( "MHLeggings2", 5540 + 15*6, 12, TRUE); // Hero's Leggings
in game.cpp, function updatescreen_onloading, case 76

Code: Select all

MakeSprite( "MHHelm1", 9300 + 15*9, 12, TRUE); // Hero's Helm
MakeSprite( "MHHelm2", 9300 + 15*10, 12, TRUE); // Hero's Helm
MakeSprite( "MHCap1", 9300 + 15*11, 12, TRUE); // Hero's Cap
MakeSprite( "MHCap2", 9300 + 15*12, 12, TRUE); // Hero's Cap

I thinks that's all... Please never give up when you try something and you don't manage to do it at first try or you'll never learn anything.
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
romax
Member
Posts: 149
Joined: Sat Nov 01, 2003 10:42 am

Post by romax »

diuuude wrote: I thinks that's all... Please never give up when you try something and you don't manage to do it at first try or you'll never learn anything.
wow ty... but its kinda hard to "no give up" if most of the time when you asking for help ppl saying you "noob go code your self" or "STFU noob go learn C++"... but any way thenks for codes :) ill try o do something
This is really easy to add stuff in client... Attachement is my workspace file + project file. Is you miss some of the files, you should have a bad client source...
and thet is only hero items ill still have the black maps ect.... and i downloaded regular 2.20 scourse .. and there is NO OTHER client scourse only the HB2 and they made for they server.
<img src='http://img357.imageshack.us/img357/505/eyecopy7ng.gif' border='0' alt='user posted image' />
Shetar
Member
Posts: 148
Joined: Sun Nov 30, 2003 12:57 am

Post by Shetar »

Ahh, you probably downloaded the HB2 Client Sources which juggalo2 posted, those lack a couple of files, among of them the project file..

I think the hbx website describes how to make the client sources work with a regular 3.51 client. (just change all the m_sStatus values from short to int)
Helbreath II Project Manager & All round Developer. <br><i>(Don't worry, we're not dead)</i>
diuuude
Outpost bitch
Posts: 592
Joined: Wed Dec 28, 2005 11:57 pm

Post by diuuude »

Shetar wrote: Ahh, you probably downloaded the HB2 Client Sources which juggalo2 posted, those lack a couple of files, among of them the project file..

I think the hbx website describes how to make the client sources work with a regular 3.51 client. (just change all the m_sStatus values from short to int)
i took a look at these HB2 files... it seems to have a couple of good ideas coded in it, but files are useless for any noob that don't have more evoluted sources than 2.20...


I looked at HG too and that's a good idea to use mysql but why to store only the mails ?
<a href='http://www.technohell.net' target='_blank'><b><span style='color:red'>>>> Helbreath Ressources Website Here <<<</span></b></a><br>C++ Sources, Tools, Server Files, Help on Forum, C++ Snippets, Toplist... Updated often, come visit us !
Shetar
Member
Posts: 148
Joined: Sun Nov 30, 2003 12:57 am

Post by Shetar »

It's old diuuude, our new files contain alot more and a couple of bugged functions are fixed and working properly.

Personally, I don't see anything important in MySql. (Yet)
We're first improving the gameplay before even thinking about that, storing things using MySql isn't a big advantage.. Being a player you won't even notice the difference.
Helbreath II Project Manager & All round Developer. <br><i>(Don't worry, we're not dead)</i>
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

the diuudes client.dsw , gives lots of errors, hb2 client.dsw didint. :D. buy it shows all of black : >

Linking...
LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __C_Exit_Done already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __C_Termination_Done already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __exitflag already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __wpgmptr already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __pgmptr already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___winitenv already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __wenviron already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___initenv already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __environ already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___wargv already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___argv already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: ___argc already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winminor already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __winver already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __osver already defined in LIBCMT.lib(crt0dat.obj)
LIBC.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in LIBCMT.lib(crt0dat.obj)
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
Release/Client.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

Client.exe - 23 error(s), 1 warning(s)

debugging says same.
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
romax
Member
Posts: 149
Joined: Sat Nov 01, 2003 10:42 am

Post by romax »

@Dshaked

i dont have any problems with thuse "client.dsw" thet diuude posted... ecxept the all black and i see the game at lil box.... and not at full screen.


@Shetar

nothing on HBX abut makeing 2.20 scourse working with 3.51
<img src='http://img357.imageshack.us/img357/505/eyecopy7ng.gif' border='0' alt='user posted image' />
Shetar
Member
Posts: 148
Joined: Sun Nov 30, 2003 12:57 am

Post by Shetar »

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.
Helbreath II Project Manager & All round Developer. <br><i>(Don't worry, we're not dead)</i>
romax
Member
Posts: 149
Joined: Sat Nov 01, 2003 10:42 am

Post by romax »

i think i got you :) ill try thenks for shareing info ;)
if ill make it work ill release the 2.20 scourse working with 3.51 server to every one can have it. :)
<img src='http://img357.imageshack.us/img357/505/eyecopy7ng.gif' border='0' alt='user posted image' />
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

I hope same. :lol:
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
Post Reply