ULX

Author Topic: Console Command on server start  (Read 4234 times)

0 Members and 1 Guest are viewing this topic.

Offline EscudoDenali

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Console Command on server start
« on: July 04, 2007, 02:17:50 PM »
I was wondering how I could make my server run a specified list of commands on start, if it is even possible.
"What I lack in skill, I make up for in stupidity." - EscudoDenali
Escudo's Non-Tolerance Server <--- FUN

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Console Command on server start
« Reply #1 on: July 04, 2007, 03:05:34 PM »
server.cfg or server_cfg.txt


Offline Banyon

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 12
    • Kill 'a' Byte
Re: Console Command on server start
« Reply #2 on: July 04, 2007, 03:58:14 PM »
These server_cfg.txt is just a text backup I do believe.  Its there for the purpose of showing you how to format one I think, although it appears to be formatted incorrectly.

Server.cfg is all the stuff for the server like defaultgamemode, cheats, rate settings, sv_lan, ect.

autoexec.cfg will also run commands and other scripts at start up.

example:

exec server.cfg
exec testscript.cfg
exec serverlocked.cfg

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Console Command on server start
« Reply #3 on: July 04, 2007, 04:44:35 PM »
Don't forget the ULX configs! It has gamemode- and map-specific configs as well.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Console Command on server start
« Reply #4 on: July 04, 2007, 04:46:39 PM »
Meg posted while I was writing the following. It explains where what he said is.

See also your addons\ulx\lua\ulx\config folder.
Server.ini will let you configure many ulx commands.
There is also a addons\ulx\lua\ulx\<maps> or <config\maps> folder.
(Sorry, I'm out on travel right now and don't have an installation I can look at.)
In that is an example file explaining you can set various configuration depending on which map_name.ini is loaded.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline EscudoDenali

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: Console Command on server start
« Reply #5 on: August 04, 2007, 11:06:31 PM »
Ok, so what I want to do is set it up so I don't have to change the server limits every time by making ULX menu save the settings or whatever, and I also want it to automatically run console commands like sbox_maxwire_rangers because A: ULX Menu doesn't support wire B: The wiremod control panel in utilities doesn't work with a dedicated server. So, can someone please walk through how to do both for me, like what files must I change and do I have to create any files, and where. Thanks in advance!
"What I lack in skill, I make up for in stupidity." - EscudoDenali
Escudo's Non-Tolerance Server <--- FUN

Offline ford460ho

  • Newbie
  • *
  • Posts: 18
  • Karma: -2
Re: Console Command on server start
« Reply #6 on: August 05, 2007, 12:47:50 AM »
can any one give me a list of sbox commands

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Console Command on server start
« Reply #7 on: August 05, 2007, 01:16:26 AM »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming