Is there yet a command to run spring.exe without rendering?

Is there yet a command to run spring.exe without rendering?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Is there yet a command to run spring.exe without rendering?

Post by TradeMark »

Thats all i need, so it would still run all my widgets, perhaps let me choose by commandline which widgets to set on, and which off (to increase processing speed). Also it should run the simulation as fast as possible, perhaps also possibility to set some delay there too if it hangs your system if its using too much CPU :P

I would use this to run a replay and collect the unit position data into files.
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: Is there yet a command to run spring.exe without rendering?

Post by SirMaverick »

No there isn't. But you could use something like:

Code: Select all

Spring.SendCommands("setmaxspeed 120")
Spring.SendCommands("setminspeed 120")
and minimize spring.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Is there yet a command to run spring.exe without rendering?

Post by TradeMark »

Can i send minimize command without clicking it? :P
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Is there yet a command to run spring.exe without rendering?

Post by aegis »

"start spring.exe /min" will start it minimized if you're on windows

and Spring.SendCommands takes multiple arguments, so you don't need to use it twice, just put a comma between the commands
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Re: Is there yet a command to run spring.exe without rendering?

Post by TradeMark »

Is there some file where spring loads the widget settings, which widget is on and which is off?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Is there yet a command to run spring.exe without rendering?

Post by zwzsg »

Yes. /LuaUI/Config/modShortName.lua
Pako
Posts: 174
Joined: 12 Jul 2009, 18:57

Re: Is there yet a command to run spring.exe without rendering?

Post by Pako »

/skip 10000

Will skip 10000 game second or untill end. Works with replays. Most draw code is bypassed also lua Update calls won't be called, Gameframe and others are still called.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Is there yet a command to run spring.exe without rendering?

Post by zerver »

In conjunction with the next release there will also be a headless spring exe available for download.
Pako
Posts: 174
Joined: 12 Jul 2009, 18:57

Re: Is there yet a command to run spring.exe without rendering?

Post by Pako »

I don't know how headless spring is optimized but better could have been just a command like /skip to toggle rendering and other useless actions.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Is there yet a command to run spring.exe without rendering?

Post by hoijui »

That is maybe better for TradeMark, but it serves a different thing, which /skip is not able to do run on (run on hardware without GFX).
Post Reply

Return to “Engine”