Compiling platformX86UNIX/x86UNIXDedicatedStub.cc --> Linking out.GCC4.R"> Dedicated server | Torque Game Engine | Forums | Community | GarageGames.com

Game Development Community

Dedicated server

by Sean Richards · in Torque Game Engine · 01/19/2007 (4:12 pm) · 11 replies

Ok, I'm noobish at best. I found a post that I'm suppose to use the command "make dedicated". So I did so and got the following error. Any suggestions?

[]$ make dedicated
--> Compiling platformX86UNIX/x86UNIXDedicatedStub.cc
--> Linking out.GCC4.RELEASE/torqueDemod.bin
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x89): In function 'Platform::setWindowLocked(bool)':
x86UNIXWindow.cc: undefined reference to 'typeinfo for UInputManager'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0xd1):x86UNIXWindow.cc: undefined reference to 'UInputManager::setWindowLocked(bool)'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x6c3): In function 'ProcessMessages()':
x86UNIXWindow.cc: undefined reference to 'NotifySelectionEvent(_XEvent&)'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x7e7): In function 'Platform::process()':
x86UNIXWindow.cc: undefined reference to 'PollRedbookDevices()'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0xb4a): In function 'Platform::initWindow(Point2I const&, char const*)':
x86UNIXWindow.cc: undefined reference to 'InitOpenGL()'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0xc80): In function 'Platform::AlertRetry(char const*, char const*)':
x86UNIXWindow.cc: undefined reference to 'XMessageBox::XMessageBox(_XDisplay*)'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0xc90):x86UNIXWindow.cc: undefined reference to 'XMessageBox::alertRetryCancel(char const*, char const*)'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0xcca):x86UNIXWindow.cc: undefined reference to 'XMessageBox::~XMessageBox()'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0xeaa):x86UNIXWindow.cc: undefined reference to 'XMessageBox::~XMessageBox()'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x1420): In function 'Platform::AlertOK(char const*, char const*)':
x86UNIXWindow.cc: undefined reference to 'XMessageBox::XMessageBox(_XDisplay*)'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x1430):x86UNIXWindow.cc: undefined reference to 'XMessageBox::alertOK(char const*, char const*)'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x1462):x86UNIXWindow.cc: undefined reference to 'XMessageBox::~XMessageBox()'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x1634):x86UNIXWindow.cc: undefined reference to 'XMessageBox::~XMessageBox()'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x1897): In function 'Platform::init()':
x86UNIXWindow.cc: undefined reference to 'OpenGLInit'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x18a6):x86UNIXWindow.cc: undefined reference to 'OpenGLDevice::create()'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x1bb0): In function 'Platform::AlertOKCancel(char const*, char const*)':
x86UNIXWindow.cc: undefined reference to 'XMessageBox::XMessageBox(_XDisplay*)'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x1bc0):x86UNIXWindow.cc: undefined reference to 'XMessageBox::alertOKCancel(char const*, char const*)'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x1bf8):x86UNIXWindow.cc: undefined reference to 'XMessageBox::~XMessageBox()'
out.GCC4.RELEASE/platformX86UNIX/x86UNIXWindow.obj(.text+0x1dca):x86UNIXWindow.cc: undefined reference to 'XMessageBox::~XMessageBox()'
collect2: ld returned 1 exit status
make[1]: *** [out.GCC4.RELEASE/torqueDemod.bin] Error 1
make: *** [dedicated] Error 2

#1
01/19/2007 (4:41 pm)
You probably need to make clean before doing make dedicated.

Gary (-;
#2
01/19/2007 (6:08 pm)
%
--------- Starting Dedicated Server ---------
No mission specified (use -mission filename)
Engine initialized...
%


I know the engine is up and running..I can see it in my list of active services. But is there an issue? here is what I use to launch the engine.

#!/bin/sh
echo "Starting DemoMMo"
sleep 1
screen -A -m -d -S DemoMMo ./runtorque.sh -dedicated -misson starter.fps/data/missions/stronghold.mis
#3
01/19/2007 (6:14 pm)
I suspect screen isn't passing the parameters like you think it is.

Try:
screen -A -m -d -S DemoMMo "./runtorque.sh -dedicated -misson starter.fps/data/missions/stronghold.mis"
Or perhaps:
screen -A -m -d -S DemoMMo -- "./runtorque.sh -dedicated -misson starter.fps/data/missions/stronghold.mis"

I would suggest that you try actually running a mission first, without screen in the mix.

Gary (-;
#4
01/19/2007 (6:14 pm)
Never mind. I fixed it. I just dropped the string leading to the mission and just loaded the mission itself. example

./runtorque.sh -dedicated -misson stronghold.mis.

I got a heart beat after that. I'm not see it on the master server though. Kinda silly. if I passworded it will that prevent it from being seen?
#5
01/19/2007 (6:30 pm)
*** LOADING MISSION: stronghold.mis
*** Stage 1 load
*** Stage 2 load
Could not find mission stronghold.mis
Engine initialized...
Sending heartbeat to master server [IP:69.64.50.217:28002]
Received info request from a master server [IP:69.64.50.217:28002].

How come I can't connect to it?
#6
01/19/2007 (6:41 pm)
Presumably, and there's always a chance I'm wrong, but presumably it would be because it "Could not find mission stronghold.mis".

Perhaps if you gave it the full path as you did before, rather than just waving at the name of a file that may or my not be somewhereprobably in your directory structure...

Gary (-;
#7
01/19/2007 (10:25 pm)
Ok, I changed it. However, I'm still not seeing it on the master server list. and I still can't connect to it. Any advise?

Quote:ParticleEmitterData(RealFireBigEmitter) thetaMax > 180.0
*** LOADING MISSION: starter.fps/data/missions/stronghold.mis
*** Stage 1 load
*** Stage 2 load
Executing starter.fps/data/missions/stronghold.mis.
*** Mission loaded
Engine initialized...
Sending heartbeat to master server [IP:69.64.50.217:28002]
Received info request from a master server [IP:69.64.50.217:28002].
Received info request from a master server [IP:69.64.50.217:28002].
Sending heartbeat to master server [IP:69.64.50.217:28002]
Received info request from a master server [IP:69.64.50.217:28002].
%
#8
01/19/2007 (11:38 pm)
Probably your distro's firewall. Turn it off, or open the appropriate ports. Probably just go into the redhat service configuration tool thing and turn off firewall.

Gary (-;
#9
01/19/2007 (11:48 pm)
Quote:Probably your distro's firewall. Turn it off, or open the appropriate ports. Probably just go into the redhat service configuration tool thing and turn off firewall.

Yea, I was playing around and turned off my firewall and boom it came right up. So I rewrote my firewall script for the 2 ports and then turned it back on and Tada....it worked.

I do have 1 final Question. Windows makes a file called cs.dso. What can I do with linux to keep people from using vi to open up my files and altering them? I know this is windows verson if a final compile so the code is harder to alter. But does Linux offer that feature?
#10
01/20/2007 (12:23 am)
Yup. On linux they're in your home dir, since unix is predicated on NOT having write permission to the game dir.

the .dso thing works the same on linux. You can run with -nohomedir if you dislike this behaviour

Gary (-;
#11
01/20/2007 (5:44 pm)
First off I'd like to thank everyone who chipped in and helped. My server is now up and working properly. Ty one and all. :-). It's currently listed on the master server as Demo MMo.