Game Development Community

Compiling in FreeBSD

by Jon Uhal · in Torque Game Engine · 08/25/2003 (9:11 pm) · 24 replies

I understand that FreeBSD isn't techically supported by GG, but I guess this could be a Linux related question. When I do a "make dedicated" I get this as output:

www# make dedicated
"Makefile", line 1: Need an operator
"Makefile", line 3: Need an operator
"Makefile", line 7: Need an operator
"Makefile", line 8: Missing dependency operator
"Makefile", line 10: warning: duplicate script for target "doConfigure" ignored
"Makefile", line 11: warning: duplicate script for target "doConfigure" ignored
"Makefile", line 12: Need an operator
"Makefile", line 13: Need an operator
make: fatal errors encountered -- cannot continue

I haven't modified the Makefile at all, so I'm a little confused as to what's going on?

to make matters worse:

www# make -f mk/configure.mk
"mk/configure.mk", line 9: Need an operator
"mk/configure.mk", line 12: Missing dependency operator
"mk/configure.mk", line 15: Need an operator
Error expanding embedded variable.

Help?
Page«First 1 2 Next»
#21
06/10/2008 (2:02 pm)
Question to Thomas Huehn,

I've built TGE 1.5.2 on FreeBSD 6.3 and 7.0 successful.
After then i've tried to run torque:
./torqueDemod.bin -nohomedir -dedicated -game starter.fps -mission starter.fps/data/missions/stronghold.mis
and it started too, without any errors.

But i still can't use it:( I have the same problem with John Lockwood there:
http://www.garagegames.com/mg/forums/result.thread.php?qt=57236

"when running a game as a dedicated server, every thing seems to launch quickly and correctly, but then the process goes to sleep, the console becomes very slow to respond to input, echo("Hello World"); takes about 4 sec to print Hello World. It also doesn't respond to lan querys from clients on the LAN."

So question - did you make any another special tune for start dedicated server on Unix environment?
#22
06/11/2008 (12:50 am)
I never noticed it was that slow but indeed I changed some things because of high load of the torque process. There was also a post or a blog about the problem but I can't find it again.

While I mark all changes with a tag in source code there are some hundred changes meanwhile and I'ts hard to say what I changed to fix the high load but this 2 things are related:

In plattform.cc :

S32 sgBackgroundSleepTime = 0;

and in x86UNIXWindow.cc:

// if we're not the foreground window, sleep for 1 ms
      if (!x86UNIXState->windowActive()) {
         Sleep(0, getBackgroundSleepTime() * 1000000);
      } else if(x86UNIXState->getDSleep()) {
        [b]Sleep(0,0);[/b]
     }
#23
06/11/2008 (1:51 pm)
Ouh, i've found the following link
http://eviwo.free.fr/torque/multiplayer.html

After then i've a bit changed my file client/prefs.cs
from $Pref::backgroundSleepTime = "3000"
to $Pref::backgroundSleepTime = "25"

And all work OK now:) I'm happy:)

Who knows why Torque uses $Pref::backgroundSleepTime = "3000" by default?
#24
06/11/2008 (2:35 pm)
The $Pref::backgroundSleepTime overwrites the sgBackgroundSleepTime which is 3k since 1.5 thats why i set it to 0 ;)
Page«First 1 2 Next»