Page 1 of 1
Command-line game launching
Posted: 30 Oct 2009, 08:54
by nawoa
Would be very nice to be able to launch a SP game with a predetermined start script. Just double-click on a modified Spring.exe shortcut and the game quickly launches a game with pre-defined settings. Map, mod, number and type of AIs at what positions, and whatever else.
Re: Command-line game launching
Posted: 30 Oct 2009, 09:06
by Das Bruce
Try draggin script.txt onto spring.exe, should start spring with whatever settings you have in script.txt
Re: Command-line game launching
Posted: 30 Oct 2009, 09:07
by hoijui
you can do that already.
just use a lobby (does not matter which one), and set up the game as you want it. start it.
this way, the lobby generates a script.txt file, and then starts spring like this:
Code: Select all
spring.exe /full/absolute/path/script.txt
voila! you make a bat file, eg
startSpring.bat containing the above line. done!
you can of course manually edit the script.txt file, though using the lobby is recommended, as you will get less errors this way.
tip: you do not need to specify map and mod hashes, this is usefull when editing by hand
Re: Command-line game launching
Posted: 30 Oct 2009, 14:25
by aegis
paths in windows don't work that way, and you don't need a batch file to launch a program
(and probably shouldn't use one for most simple launching)
Re: Command-line game launching
Posted: 30 Oct 2009, 15:42
by hoijui
i am pretty sure we all knew both of this.
Re: Command-line game launching
Posted: 30 Oct 2009, 19:02
by zwzsg
Try Kernel Panic launchers.
Re: Command-line game launching
Posted: 08 Nov 2009, 12:29
by knorke
Das Bruce wrote:Try draggin script.txt onto spring.exe, should start spring with whatever settings you have in script.txt
as most people probally know, this also allows you to reconnect if spring crashed/disconnected during loading. but for the poor noobs it might be cool to include a "use script.txt to reconnect to last battle" in the menu of spring.exe?
or include a
try_reconnect.bat in the installer.
Re: Command-line game launching
Posted: 08 Nov 2009, 12:58
by Tobi
In next version of SpringLobby you'll be able to press the start button if you're client, Spring isn't running, and host is in-game. (i.e. reconnect)
Re: Command-line game launching
Posted: 08 Nov 2009, 16:38
by Forboding Angel
It needs to be labeled "Reconnect" though.
Re: Command-line game launching
Posted: 08 Nov 2009, 20:43
by Tribulex
loving windows 7
Re: Command-line game launching
Posted: 09 Nov 2009, 01:29
by Das Bruce
Does W7 have the option to turn it back to the old style taskbar?
Re: Command-line game launching
Posted: 09 Nov 2009, 02:24
by AF
You can tell win7 to add title names liek XP and Vista, this combined with the option to sue the old 16x16 icons instead gives you near identical behaviour to the old windows vista/XP, and there is an additional check box which disables the grouping mechanism giving you identical behaviour to classic windows. This is in addition to all the options available in windows vista and a tonne more.
Also in the start menu if you hover over a program, it fades out the menu on the right and replaces it with a list of actions and recent documents opened with that program.
Re: Command-line game launching
Posted: 09 Nov 2009, 02:38
by Das Bruce
AF wrote:disables the grouping mechanism
Fucking sold.
Re: Command-line game launching
Posted: 10 Nov 2009, 15:35
by zerver
Das Bruce wrote:
Fucking sold.
Me too, unless you have really low res monitor that grouping is just plain bad because it requires two clicks instead of one.
Re: Command-line game launching
Posted: 10 Nov 2009, 15:51
by AF
Not true, it can be set so that lingering the mouse over it brings up the thumbnails, you can also drag outwards instead.
Half the time you dont even have to click on the thumbnail if your just wanting to look at the window and not itneract, as it makes all the other windows translucent glass so you can see exactly which window youd get if you clicked.