RegisterRegister    Log inLog in    SearchSearch   

Post new topic   Reply to topic
 
View previous topic :: View next topic  
Author Message
gh0std0g



PostPosted: Thu May 29, 2008 9:49 pm    Post subject: Linux Screen support Reply with quote

Hi. I'm running 5 Counter-strike Condition Zero servers on a Fedora Core 6 Box with gamecreate and i have set up "Require screen to ...." on the control panel.

Still the servers get launched the "regular" way instead of inside a screen session. I've even given the screen sessions simple names like server1, server2, etc...

Am i doing something wrong? Is it my linux distro?

I was really interested in having screen working since i've been having some problems with repeated server crashes and having screen would help me tack down what is going wrong.

Thanks in advance,
gD
Back to top
View user's profile Send private message
adbot



PostPosted: Thu Mar 31, 2011 3:57 am 

Steve
Mammoth


PostPosted: Fri May 30, 2008 2:36 pm    Post subject: Reply with quote

Make sure you are running the latest version of GameCreate and, also make sure the screen process is being found. Check the failure logs to see.
Back to top
View user's profile Send private message
gh0std0g



PostPosted: Tue Jun 03, 2008 12:50 am    Post subject: Reply with quote

I am running the latest Gamecreate version and there's no mention of screen in the failure logs in either the host it self or any of the individual servers.

By the way, gamecreate seems to loose its connection to the EU master server about once an hour. Is this normal behaviour?
Back to top
View user's profile Send private message
Kybber



PostPosted: Tue Jun 03, 2008 6:44 am    Post subject: Reply with quote

Unfortunately, yes, that is normal. I get hundreds
of failure-mails per day. Don't see the point, really,
so I should just switch off the spam.

Regarding screen: I can confirm that it works nicely
on my boxes. They run gentoo, but it shouldn't matter,
as long as screen can be found by gc. Perhaps GC
searches a specific path instead of using the $PATH
environment variable? On my system, screen is
located here:
Code:
 $ which screen
/usr/bin/screen

Can you verify that is where the screen command
can be found on your host as well?
Back to top
View user's profile Send private message
gh0std0g



PostPosted: Tue Jun 10, 2008 12:01 am    Post subject: Reply with quote

Hi Kybber, thanks for your help. I'm sorry for the delay in replying but i was away last week.

Heres the output of the which screen command:

Code:
# which screen
/usr/bin/screen


Its the same as yours so there is no apparent reason for it not to work.
Back to top
View user's profile Send private message
gp



PostPosted: Tue Jun 10, 2008 8:37 pm    Post subject: Reply with quote

I've got the same thing, screen is in the same place, can't see anything in the failure logs, still no screens Sad
Back to top
View user's profile Send private message
Kybber



PostPosted: Thu Jun 12, 2008 10:47 pm    Post subject: Reply with quote

Did you also test that screen actually works? If so, then I am afraid I have no
idea what could be wrong.
Back to top
View user's profile Send private message
gp



PostPosted: Fri Jun 13, 2008 5:09 am    Post subject: Reply with quote

Yea, used to use screen all the time Sad
Back to top
View user's profile Send private message
gh0std0g



PostPosted: Tue Jun 24, 2008 12:53 am    Post subject: Reply with quote

Screen does work on my system and the user running the GC Client is allowed to use it, so i too don't have the slightest clue as to why it isn't working.

Thank you for your help anyway Kybber.
Back to top
View user's profile Send private message
Kybber



PostPosted: Tue Jun 24, 2008 8:35 pm    Post subject: Reply with quote

One thing you could try is to run screen in detached mode instead of just
starting it in interactive mode. Try this:

screen -dmS toptest top
screen -r toptest

The first line will start a detached screen and run top inside it. The second
line will bring you into the created screen session. If it doesn't, or if you don't
see top running in the screen, then something is wrong.

Perhaps the GC devs could provide us with the exact command-line used to
launch a game through screen? Is it just screen -dm, or do you use other
command-line arguments?
Back to top
View user's profile Send private message
gh0std0g



PostPosted: Fri Jun 27, 2008 4:20 am    Post subject: Reply with quote

Nop m8.
Screen created the detached session, running top, just fine.

Maybe GC just has this problem with some linux distros.

Quote:
Perhaps the GC devs could provide us with the exact command-line used to launch a game through screen? Is it just screen -dm, or do you use other command-line arguments?


Now that would be really nice. If the automated thingy doesn't work we could just tweak the command-line to our needs.
Back to top
View user's profile Send private message
gh0std0g



PostPosted: Thu Jul 10, 2008 4:12 am    Post subject: Reply with quote

Still no update on this matter?

Screen would be very helpful for debugging.

Cheers,
gd
Back to top
View user's profile Send private message
gp



PostPosted: Sun Jul 13, 2008 7:54 pm    Post subject: Reply with quote

I'm also having the same issues on FC
Back to top
View user's profile Send private message
Kybber



PostPosted: Tue Jul 15, 2008 9:55 am    Post subject: Reply with quote

I just thought of something: Do you guys have a
startup-message when running screen which says
something like "Press Space or Return to end." at
the bottom? If so, in case GC doesn't start the game
in detached mode, but instead starts the screen, and
*then* sends a command to the screen to start the
game, it could be that screen doesn't receive that
message since it is on the welcome screen.

Try this:
1. Type 'screen' to check if you get the welcome message.
If you don't then there is no need to continue testing -
my idea was wrong. If you do, then exit the screen
and continue with point 2.
2. Edit the file ~/.screenrc (create it if it doesn't
exist) and add the following line:
Code:
startup_message off

3. Type 'screen' to verify that the welcome message
has indeed been switched off. Exit the screen.
4. If the welcome message was switched off, try to
start a game-server from GC with screen-support
enabled.
Back to top
View user's profile Send private message
gp



PostPosted: Tue Jul 15, 2008 4:43 pm    Post subject: Reply with quote

Kybber wrote:
I just thought of something: Do you guys have a
startup-message when running screen which says
something like "Press Space or Return to end." at
the bottom? If so, in case GC doesn't start the game
in detached mode, but instead starts the screen, and
*then* sends a command to the screen to start the
game, it could be that screen doesn't receive that
message since it is on the welcome screen.

Try this:
1. Type 'screen' to check if you get the welcome message.
If you don't then there is no need to continue testing -
my idea was wrong. If you do, then exit the screen
and continue with point 2.
2. Edit the file ~/.screenrc (create it if it doesn't
exist) and add the following line:
Code:
startup_message off

3. Type 'screen' to verify that the welcome message
has indeed been switched off. Exit the screen.
4. If the welcome message was switched off, try to
start a game-server from GC with screen-support
enabled.


Typing screen just attaches me to a screen displaying my home directory, no messages whatsoever Sad

FC8 here.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum powered by phpBB © 2001, 2005 phpBB Group
GameCreate Service Terms | Privacy Policy | © Copyright Mammoth Media 2001-2007
GameCreate™ is a trademark of Mammoth Media Pty Ltd. GameCreate® is a registered trademark in Australia.