Arye's Src

All Helbreath Server Source Discussion here.
Post Reply
MorganBlack
just visiting
Posts: 8
Joined: Sat Apr 23, 2005 8:31 pm

Post by MorganBlack »

did you even tried to compile login serv and run it ?
drunk
Loyal fan
Posts: 265
Joined: Wed Mar 17, 2004 1:43 pm

Post by drunk »

No but those files came from HBX team for there hg server.So why would it have something to do with the login server?
CDWriter
Member
Posts: 123
Joined: Sun Feb 22, 2004 12:08 am

Post by CDWriter »

ok call me a noob or not but please answer this question ?

when i compile the loginserver it always come back with this error

LoginServer.cpp
c:\loginserver\loginserver.cpp(70) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
None of the functions with this name in scope match the target type
c:\loginserver\loginserver.cpp(146) : warning C4244: 'argument' : conversion from 'short' to 'unsigned char', possible loss of data
c:\loginserver\loginserver.cpp(707) : warning C4244: 'argument' : conversion from 'unsigned short' to 'unsigned char', possible loss of data
c:\loginserver\loginserver.cpp(739) : warning C4244: 'argument' : conversion from 'unsigned short' to 'unsigned char', possible loss of data
c:\loginserver\loginserver.cpp(2625) : warning C4244: '+=' : conversion from 'int' to 'unsigned short', possible loss of data
c:\loginserver\loginserver.cpp(2810) : warning C4244: 'argument' : conversion from 'int' to 'unsigned char', possible loss of data
main.cpp
c:\loginserver\main.cpp(180) : warning C4100: 'dw2' : unreferenced formal parameter
c:\loginserver\main.cpp(180) : warning C4100: 'dw1' : unreferenced formal parameter
c:\loginserver\main.cpp(180) : warning C4100: 'dwUSer' : unreferenced formal parameter
c:\loginserver\main.cpp(180) : warning C4100: 'wUser' : unreferenced formal parameter
c:\loginserver\main.cpp(180) : warning C4100: 'wID' : unreferenced formal parameter
c:\loginserver\main.cpp(215) : warning C4100: 'lParam' : unreferenced formal parameter
c:\loginserver\main.cpp(333) : warning C4100: 'nCmdShow' : unreferenced formal parameter
c:\loginserver\main.cpp(388) : warning C4127: conditional expression is constant
c:\loginserver\main.cpp(367) : warning C4100: 'lpCmdLine' : unreferenced formal parameter
c:\loginserver\main.cpp(366) : warning C4100: 'hPrevInstance' : unreferenced formal parameter
Msg.cpp
Party.cpp
StrTok.cpp
XSocket.cpp
c:\loginserver\xsocket.cpp(390) : warning C4244: '+=' : conversion from 'unsigned long' to 'char', possible loss of data
c:\loginserver\xsocket.cpp(506) : warning C4244: '-=' : conversion from 'unsigned long' to 'char', possible loss of data
Error executing cl.exe.
Creating browse info file...

LoginServer.exe - 1 error(s), 17 warning(s)

Any help would be nice here please .....

iam useing VBC++ 6.0? would this be the problem ?

OO and GREAT Jobe Aryes thanks for sharing and the hard work u added to these :D
Drazz
Regular
Posts: 52
Joined: Mon Dec 08, 2003 4:10 pm
Contact:

Post by Drazz »

CDWriter wrote:ok call me a noob or not but please answer this question ?

when i compile the loginserver it always come back with this error

LoginServer.cpp
c:\loginserver\loginserver.cpp(70) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
        None of the functions with this name in scope match the target type
c:\loginserver\loginserver.cpp(146) : warning C4244: 'argument' : conversion from 'short' to 'unsigned char', possible loss of data
c:\loginserver\loginserver.cpp(707) : warning C4244: 'argument' : conversion from 'unsigned short' to 'unsigned char', possible loss of data
c:\loginserver\loginserver.cpp(739) : warning C4244: 'argument' : conversion from 'unsigned short' to 'unsigned char', possible loss of data
c:\loginserver\loginserver.cpp(2625) : warning C4244: '+=' : conversion from 'int' to 'unsigned short', possible loss of data
c:\loginserver\loginserver.cpp(2810) : warning C4244: 'argument' : conversion from 'int' to 'unsigned char', possible loss of data
main.cpp
c:\loginserver\main.cpp(180) : warning C4100: 'dw2' : unreferenced formal parameter
c:\loginserver\main.cpp(180) : warning C4100: 'dw1' : unreferenced formal parameter
c:\loginserver\main.cpp(180) : warning C4100: 'dwUSer' : unreferenced formal parameter
c:\loginserver\main.cpp(180) : warning C4100: 'wUser' : unreferenced formal parameter
c:\loginserver\main.cpp(180) : warning C4100: 'wID' : unreferenced formal parameter
c:\loginserver\main.cpp(215) : warning C4100: 'lParam' : unreferenced formal parameter
c:\loginserver\main.cpp(333) : warning C4100: 'nCmdShow' : unreferenced formal parameter
c:\loginserver\main.cpp(388) : warning C4127: conditional expression is constant
c:\loginserver\main.cpp(367) : warning C4100: 'lpCmdLine' : unreferenced formal parameter
c:\loginserver\main.cpp(366) : warning C4100: 'hPrevInstance' : unreferenced formal parameter
Msg.cpp
Party.cpp
StrTok.cpp
XSocket.cpp
c:\loginserver\xsocket.cpp(390) : warning C4244: '+=' : conversion from 'unsigned long' to 'char', possible loss of data
c:\loginserver\xsocket.cpp(506) : warning C4244: '-=' : conversion from 'unsigned long' to 'char', possible loss of data
Error executing cl.exe.
Creating browse info file...

LoginServer.exe - 1 error(s), 17 warning(s)

Any help would be nice here please .....

iam useing VBC++ 6.0? would this be the problem ?

OO and GREAT Jobe Aryes thanks for sharing and the hard work u added to these :D
try this:

* LoginServer.h (line 130)

instead of

Code: Select all

extern INT_PTR CALLBACK LoginDlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam );
use

Code: Select all

extern BOOL CALLBACK LoginDlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam );
* main.cpp (line 215)

instead of

Code: Select all

INT_PTR CALLBACK LoginDlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam )
use

Code: Select all

BOOL CALLBACK LoginDlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam )
good luck ;)
<img src='http://drazzt.iespana.es/Drazzt/logo2.jpg' border='0' alt='user posted image' />
CDWriter
Member
Posts: 123
Joined: Sun Feb 22, 2004 12:08 am

Post by CDWriter »

Thanks Drazz but this does not help it just makes it not seeable to Mssql?
but does create the file and gives me a can not find libmysql.lib please reinstall the porgram to fix this error?

but any ways i thought maybe it was my winxp set up so i setup VMWare and started win2k3 tryed to compile it in there and still no luck same error message???

any one please help if u under stand the problem ....with the solution ..

LoginServer.cpp
c:\loginserver\loginserver.cpp(70) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
None of the functions with this name in scope match the target type

;) ;) :rolleyes:
Drazz
Regular
Posts: 52
Joined: Mon Dec 08, 2003 4:10 pm
Contact:

Post by Drazz »

CDWriter wrote:Thanks Drazz but this does not help it just makes it not seeable to Mssql?
but does create the file and gives me a can not find libmysql.lib please reinstall the porgram to fix this error?

but any ways i thought maybe it was my winxp set up so i setup VMWare and started win2k3 tryed to compile it in there and still no luck same error message???

any one please help if u under stand the problem ....with the solution ..

LoginServer.cpp
c:\loginserver\loginserver.cpp(70) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
        None of the functions with this name in scope match the target type

;)  ;)  :rolleyes:
mmm it works for me, you must check your libraries file name (right click -> properties)
Image
check it, maybe wrong folder?
<img src='http://drazzt.iespana.es/Drazzt/logo2.jpg' border='0' alt='user posted image' />
CDWriter
Member
Posts: 123
Joined: Sun Feb 22, 2004 12:08 am

Post by CDWriter »

Thanks man , and yes i found the problem ....the LIBMysql.dll was eather wrong or messed or very old ....i updated the dlls last night and it works great now ......60 warnings but it works .... ;)


Thanks again Drazz....
CDWriter
Member
Posts: 123
Joined: Sun Feb 22, 2004 12:08 am

Post by CDWriter »

has anyone gotten this to connect to a client?
MorganBlack
just visiting
Posts: 8
Joined: Sat Apr 23, 2005 8:31 pm

Post by MorganBlack »

I did. I recompiled both servers, configured all files (including missing Adminsettings. / Settings ), made all sql tables, configured all servers in sql 'setup' table, and everything runs fine. BUT when someone tries to change server he gets con lost. And error appears on loginserv

<a href='http://www.imageshack.us' target='_blank'>Image</a>

Second problem is that when i try to debug loginserv.exe in VS it dosnt read config files. Iv checked the code and i cant figure out why. Mayby i missed smoething (im no c++ expert). Right now i am hooking debugger into running LoginServ.exe (debug ver.) but ist a little more time consuming.

Any help is greatly appreciated.
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

Code: Select all

--------------------Configuration: LoginServer - Win32 Debug--------------------
Compiling...
LoginServer.cpp
c:\hbsource\loginserver\loginserver.h(7) : fatal error C1083: Cannot open include file: 'my_global.h': No such file or directory
main.cpp
c:\hbsource\loginserver\loginserver.h(7) : fatal error C1083: Cannot open include file: 'my_global.h': No such file or directory
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\DEBUG\LoginServer.sbr': No such file or directory
Error executing bscmake.exe.

LoginServer.exe - 3 error(s), 0 warning(s)
help me :(
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
MorganBlack
just visiting
Posts: 8
Joined: Sat Apr 23, 2005 8:31 pm

Post by MorganBlack »

Just add MySQL folder to project includes.

EDIT: You alco need to fix path in included libs.
Aryes
Member
Posts: 114
Joined: Tue Aug 31, 2004 10:14 pm
Location: Brazil

Post by Aryes »

Actually, I'm just waiting to have my new pc done, I'm working on an updated version of that loginserver, with mysql++.
Also, I'll be looking forward to make it connect to hbx hgserver.
====<span style='color:red'><br>Aryes</span><br>====<br><br>HB United: www.hbuonline.net:<br><br><img src="http://hbtop50.com/button.php?u=hbkhispano" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=dcom" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=tinchocba" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=rafha_bernn" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=HB-Tere" alt="Helbreath Top 50 - Helbreath Silver" border="0" /><br><img src="http://hbtop50.com/button.php?u=Kiruku" alt="Helbreath Top 50 - Helbreath Silver" border="0" />
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Aryes wrote: Actually, I'm just waiting to have my new pc done, I'm working on an updated version of that loginserver, with mysql++.
Also, I'll be looking forward to make it connect to hbx hgserver.
excelent login + hbx hgserver B)
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>
CDWriter
Member
Posts: 123
Joined: Sun Feb 22, 2004 12:08 am

Post by CDWriter »

Could some one post a download link for a compiled loginserver and hgserver here please....

every time i compile it i get 60 errors but it still works only problem NO ONE can long on with client ..... :angry:

i have installed VB 6.0 c++ , MS VS .net 2003 and still no luck ....always errors out some where but makes the file ....

Please anyone...
charlie
Outpost4lyfe
Posts: 3324
Joined: Sun Apr 06, 2003 12:24 am
Location: Mt GOD
Contact:

Post by charlie »

If it still makes a file its only a warning errors wont compile and its probably your hosting setup
Girlfriends are dedicated hookers.
Post Reply