Command-line game launching

Command-line game launching

Requests for features in the spring code.

Moderator: Moderators

Post Reply
nawoa
Posts: 9
Joined: 24 Mar 2009, 00:38

Command-line game launching

Post 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.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Command-line game launching

Post by Das Bruce »

Try draggin script.txt onto spring.exe, should start spring with whatever settings you have in script.txt
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Command-line game launching

Post 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
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Command-line game launching

Post by aegis »

paths in windows don't work that way, and you don't need a batch file to launch a program :P

(and probably shouldn't use one for most simple launching)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Command-line game launching

Post by hoijui »

i am pretty sure we all knew both of this.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Command-line game launching

Post by zwzsg »

Try Kernel Panic launchers.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Command-line game launching

Post 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.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Command-line game launching

Post 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)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Command-line game launching

Post by Forboding Angel »

It needs to be labeled "Reconnect" though.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Command-line game launching

Post by Tribulex »

Image

loving windows 7
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Command-line game launching

Post by Das Bruce »

Does W7 have the option to turn it back to the old style taskbar?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Command-line game launching

Post 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.
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Command-line game launching

Post by Das Bruce »

AF wrote:disables the grouping mechanism
Fucking sold.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Command-line game launching

Post 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.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Command-line game launching

Post 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.
Post Reply

Return to “Feature Requests”