Author Topic: Minimize server window (WinXP)  (Read 6096 times)

rotacak

  • Posts: 761
  • Turrets: +39/-64
Minimize server window (WinXP)
« on: June 19, 2007, 10:49:54 am »
Hi,
is possible server window and commandline window minimize to tray after server start?
Thanx for reply

Rabbitt

  • Posts: 535
  • Turrets: +13/-27
Minimize server window (WinXP)
« Reply #1 on: June 19, 2007, 02:23:59 pm »
Umm are you asking how to minimize the blue console screen's when you run a server ?
Quote from: amine
Take a super-high voltage taser with you and shock the french people and then point and laugh and yell 'FRENCH FRIES!!'

rotacak

  • Posts: 761
  • Turrets: +39/-64
Minimize server window (WinXP)
« Reply #2 on: June 19, 2007, 02:36:45 pm »
Yes. Minimize to tray.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Minimize server window (WinXP)
« Reply #3 on: June 19, 2007, 02:39:38 pm »
Why would you want to?
Its called a dedicated server for a reason...
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

rotacak

  • Posts: 761
  • Turrets: +39/-64
Minimize server window (WinXP)
« Reply #4 on: June 19, 2007, 02:45:15 pm »
I dont want have two item in taskbar.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Minimize server window (WinXP)
« Reply #5 on: June 19, 2007, 02:57:57 pm »
Why not?
It makes it easier to find when you need to do stuff to it.
Surely your screen isn't that small that two items full the bar?
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Oblivion

  • Posts: 410
  • Turrets: +27/-22
    • Gamez-Host.com
Minimize server window (WinXP)
« Reply #6 on: June 19, 2007, 03:01:21 pm »
Quote from: "rotacak"
I dont want have two item in taskbar.

Are you running the server off the home network?
Cause if not why are you worried about having it in a tray?
But I am sure its a home network, sorry I just had to put my comment.
World Wide Server Host

rotacak

  • Posts: 761
  • Turrets: +39/-64
Minimize server window (WinXP)
« Reply #7 on: June 19, 2007, 03:10:09 pm »
Server should be in friend office. Computer is not often use, but when yes, then can be server closed by mistake, when will be on taskbar.

Oblivion

  • Posts: 410
  • Turrets: +27/-22
    • Gamez-Host.com
Minimize server window (WinXP)
« Reply #8 on: June 19, 2007, 03:12:57 pm »
Well if computer is not often used, then why are you worried about it?  Yes I understand closed by mistake, but if you really want to keep the server from being closed by mistake create another account and use it and keep it locked, or lock the current account and use the new account for something else, thats my advice, but from what I can see, there is nothing I can or anyone else that I see of can do for you by putting a dedicated console in the tray.
World Wide Server Host

DASPRiD

  • Administrator
  • Posts: 549
  • Turrets: +21/-2
    • http://www.dasprids.de
Minimize server window (WinXP)
« Reply #9 on: June 19, 2007, 04:06:48 pm »
How about this?

Code: [Select]
screen
url=https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mail%40dasprids%2ede&item_name=DASPRiD%27s&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8][/url]

TinMan

  • Posts: 1019
  • Turrets: +49/-70
    • http://neonpulse.net
Minimize server window (WinXP)
« Reply #10 on: June 19, 2007, 05:45:10 pm »
Screen for WinXP? ??? zomg

Here's what you do, make a trem user account, run the server under that account, then switch users to some other one so people don't mess with what the trem user is doing.
Code: [Select]
Linux: ~/.tremulous/base/
Mac: ~/Library/Application\ Support/Tremulous/base/
Windows: C:\Documents and Settings\username\Local Settings\Application Data\Tremulous\base\
NeonPulse
http://neonpulse.net/media/games/tremulous/base/autoexec.cfg

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Minimize server window (WinXP)
« Reply #11 on: June 20, 2007, 08:22:03 am »
I wish a Trem server could run as a daemon in *nix platforms...

DASPRiD

  • Administrator
  • Posts: 549
  • Turrets: +21/-2
    • http://www.dasprids.de
Minimize server window (WinXP)
« Reply #12 on: June 20, 2007, 10:11:58 am »
Quote from: "Odin"
I wish a Trem server could run as a daemon in *nix platforms...


Still doing:

Code: [Select]

#! /bin/sh

set -e

TREMULOUS_PATH=/usr/local/games/tremulous
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:$TREMULOUS_PATH
IDENT="Trem_Custom"
DESC="Tremulous Custom"
NAME=tremded.x86
DAEMON=$TREMULOUS_PATH/$NAME
PIDFILE=/var/run/games/$IDENT.pid
SCRIPTNAME=/etc/init.d/tremulous_custom
OPTIONS="+set fs_homepath /home/tremulous/trem_custom +set dedicated 2 +set net_port 27961 +exec server.cfg"

# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0

d_start() {
        start-stop-daemon --start --quiet --pidfile $PIDFILE \
                --background --chuid tremulous:users --make-pidfile \
                --nicelevel -5 --chdir $TREMULOUS_PATH \
                --exec $DAEMON -- $OPTIONS
}

d_stop() {
        start-stop-daemon --stop --quiet --pidfile $PIDFILE \
                --chuid tremulous:users \
                --name $NAME
}

case "$1" in
  start)
        echo -n "Starting $DESC: $NAME"
        d_start
        echo "."
        ;;
  stop)
        echo -n "Stopping $DESC: $NAME"
        d_stop
        echo "."
        ;;
  restart)
        echo -n "Restarting $DESC: $NAME"
        d_stop
        sleep 1
        d_start
        echo "."
        ;;
  *)
        echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
        exit 1
        ;;
esac

exit 0
url=https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=mail%40dasprids%2ede&item_name=DASPRiD%27s&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=DE&bn=PP%2dDonationsBF&charset=UTF%2d8][/url]

tuple

  • Posts: 833
  • Turrets: +97/-80
Minimize server window (WinXP)
« Reply #13 on: June 20, 2007, 12:34:16 pm »
I don't use DASPRiD's script, but another I found for Q3 Arena and modified.

http://tuplesplayhouse.blogspot.com/2006/08/tremulous-init-script.html

It works quite well, as I'm sure DASPRiDs does.

edit: Actually, looking at DASPRiD's, I like his more :)