If it starts with a plus then it's simply a console command and can be executed from a script. Only the parameters that start with a dash require to be in the actual command line.
On Thu, May 23, 2013 at 1:50 PM, Erik-jan Riemers <[email protected]> wrote: > I actually didn't know that, i still learn more each day :) thanks for the > reply's. > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Saul > Rennison > Sent: donderdag 23 mei 2013 19:29 > To: Half-Life dedicated Linux server mailing list > Subject: Re: [hlds_linux] command line too long, 512 max > > To elaborate on what Fletcher is saying, change your command-line to: > > screen -A -m -d -S tradeunusual ./srcds_run -debug -game tf -port 27015 > -replayserverdir tradeunusual -maxplayers 32 -pidfile > ~/tf/tradeunusual.pid -autoupdate -steam_dir /home/lzgames/steamcmd/ > -steamcmd_script /home/lzgames/steamcmd/tf.txt -insert_search_path > tf/servercustom/trade > +exec commandline_tradeunusual.cfg > > > Note the lack of +xxx commands and the addition of the final +exec > commandline_tradeunusual.cfg. Create a file called > commandline_tradeunusual.cfg, and fill it with: > > servercfgfile server_tradeunusual.cfg > ip 144.76.59.36 > clientport 27030 > motdfile motd_tradeunusual.txt > sv_logsdir logs_tradeunusual/ > > mm_pluginsfile addons/metamod/metaplugins_tradeunusual.ini > sm_basepath addons/sourcemod_tradeunusual > > exec autoexec_tradeunusual.cfg > > map trade_post_a34 > > > > > Kind regards, > Saul Rennison > > > On 23 May 2013 17:19, Fletcher Dunn <[email protected]> wrote: > > > You might try moving some of the +options into a single startup script > > and > > +exec them all at once. For example I am pretty sure that > > ++servercfgfile, motdfile, +map, +exec could all be executed from a > startup script. > > > > -----Original Message----- > > From: [email protected] [mailto: > > [email protected]] On Behalf Of Erik-jan > > Riemers > > Sent: Thursday, May 23, 2013 9:09 AM > > To: Half-Life dedicated Linux server mailing list > > Subject: [hlds_linux] command line too long, 512 max > > > > Well the topic says it all. > > > > Starting a tf2 server, with the search path options being able to add > > multiple search paths and all other stuff to run multiple servers from > > 1 install makes my startup line rather big. Can this be bumped up a > > bit or can the search paths be moved into a file or anything else? > > > > As example: > > > > screen -A -m -d -S tradeunusual ./srcds_run -debug -game tf > > +servercfgfile server_tradeunusual.cfg +ip 144.76.59.36 -port 27015 > > +clientport 27030 -replayserverdir tradeunusual -maxplayers 32 > > +motdfile motd_tradeunusual.txt +map trade_post_a34 -pidfile > > ~/tf/tradeunusual.pid -autoupdate -steam_dir /home/lzgames/steamcmd/ > > -steamcmd_script /home/lzgames/steamcmd/tf.txt +exec > > autoexec_tradeunusual.cfg > > +mm_pluginsfile addons/metamod/metaplugins_tradeunusual.ini > > ++sm_basepath > > addons/sourcemod_tradeunusual +sv_logsdir logs_tradeunusual/ > > -insert_search_path tf/servercustom/trade > > > > Gives me about 577 characters. I've got in my scripts ~/steamcmd but > > it writes it out full in the script though. I could change the name of > > the server to reduce a bit more. > > > > And yes I could add some of these options in my server.cfg, but I > > rather keep them outside so I can easily create new servers. > > > > Erik > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

