Start a single player game in full screen from command line

5 replies [Last post]
zoltan
User offline. Last seen 43 weeks 5 days ago. Offline
Joined: 05/18/2012
Posts: 4

Hi everyone!

I made a little helper application which starts stereoscopic applications in fullscreen on a click of a button on my 3DTV. It does this by starting the applications with special command line parameters.

Is there a way I can start a single player Hedgewars game in full screen immediately, without needing to browse through the menu first.

Thanks in advance!

Zoltan

nemo
User offline. Last seen 27 min 17 sec ago. Offline
Joined: 01/28/2009
Posts: 993

Record a save game with settings you want. Abort on first turn. Launch the resulting save file from commandline.

Otherwise you'd have to write a script wrapper to send the appropriate commands or a script that constructs save game files.

zoltan
User offline. Last seen 43 weeks 5 days ago. Offline
Joined: 05/18/2012
Posts: 4

Hi! Thanks for the quick answer.

Is the game saved just by quitting? If so, where is the resulting save file?

EDIT: nevermind, found it.

zoltan
User offline. Last seen 43 weeks 5 days ago. Offline
Joined: 05/18/2012
Posts: 4

Ok I managed to start the game in full screen, but I can't start it in full screen stereo. Is there any way I can point the hwengine to the hedgewars.ini file? Or any other way of starting in stereo mode?

nemo
User offline. Last seen 27 min 17 sec ago. Offline
Joined: 01/28/2009
Posts: 993

Unfortunately for you, right now stereo mode is not in the commandline options.
It *is* in the commandline options when invoked by a frontend, but that requires providing an IPC port.

I think the easiest way to get stereo would be to hardcode it and rebuild the engine.

zoltan
User offline. Last seen 43 weeks 5 days ago. Offline
Joined: 05/18/2012
Posts: 4

Ok thanks!

I'll probably have some new questions when I attempt to do that Smile

BTW "replay file" is hardly the best nomenclature. When I read the documentation for command line options, I always thought the replay file referred to a recorded video of a game.

Copyright © 2004-2013 Hedgewars Project. All rights reserved.