EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   eqemuloginserver - after a few days (https://www.eqemulator.org/forums/showthread.php?t=32832)

provocating 01-03-2011 02:59 PM

eqemuloginserver - after a few days
 
I notice that after a few days the login server starts saying the username does not exist in the table, but after restarting it works fine. This has happened three times lately after running fine for a few days. It does not have a log file, but I can see it pop up on the screen that it runs the query and says the login name does not exist, but it does. I am using Debian and Wine to run it.

provocating 01-09-2011 09:30 PM

Wow, no one know this one ? It can't just be my machine, or can it ?

erik_llewellyn 01-09-2011 10:51 PM

While I cannot speak for the other linux servers out there, I will ask the question of why aren't you compiling the code to run natively instead of using wine?

If you use the linux server guides in the wiki, you should be able to successfully compile it. One thing I noticed though when preparing my server (runs CentOS 5.5) was that I had to use all of the linux guides and pick out parts from them to peice it all together. You might have it easier though since your distro was Debian and two of the guides are just for that distro.

provocating 01-11-2011 10:53 AM

Quote:

Originally Posted by erik_llewellyn (Post 195997)
While I cannot speak for the other linux servers out there, I will ask the question of why aren't you compiling the code to run natively instead of using wine?

If you use the linux server guides in the wiki, you should be able to successfully compile it. One thing I noticed though when preparing my server (runs CentOS 5.5) was that I had to use all of the linux guides and pick out parts from them to peice it all together. You might have it easier though since your distro was Debian and two of the guides are just for that distro.

Because I never got this resolved.

Code:

EqEmu:/home/eqemu/src/EQEmuServer/EQEmuLoginServer# make
gcc -c -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wno-deprecated  -Wcomment -Wcast-align -O -g -march=i686 -pthread -pipe -DEQLAUNCH -DEQDEBUG=5 -I/usr/include/mysql  -DBIG_JOINS=1 -fPIC Client.cpp -o Client.o
In file included from LoginServer.h:27,
                from Client.cpp:20:
Options.h: In constructor âOptions::Options()â:
Options.h:168: warning: âOptions::local_networkâ will be initialized after
Options.h:166: warning:  âbool Options::reject_duplicate_serversâ
Options.h:31: warning:  when initialized here
Client.cpp: In member function âvoid Client::Handle_SessionReady(const char*, unsigned int)â:
Client.cpp:130: error: expected primary-expression before âunsignedâ
Client.cpp:130: error: expected `)' before âunsignedâ
Client.cpp:137: error: expected `)' before âstatusâ
make: *** [Client.o] Error 1


joligario 01-11-2011 11:16 AM

GCC is picky. They don't like type casting with multiple-word types. Try changing line 129:

Code:

unsigned int mode = *((unsigned int*)data);
to

Code:

(unsigned int) mode = *((unsigned int*)data);

provocating 01-11-2011 11:18 AM

Yeah I had a prior thread and never got an email notification someone had replied, which they did. Going to try this again this morning.

provocating 01-11-2011 11:54 AM

Actually that lined seemed to be okay, changing it made no difference. The one right below it was the problem.

changing this fixed it.
Code:

if(mode == (unsigned int)LoginMode::lm_from_world)
To ....

Code:

if(mode == (unsigned int) lm_from_world)


All times are GMT -4. The time now is 08:14 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.