Start a single player game in full screen from command line

5 replies [Last post]
zoltan
User offline. Last seen 12 years 20 weeks ago. Offline
Joined: 2012-05-18
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
nemo's picture
User offline. Last seen 21 weeks 1 day ago. Offline
Joined: 2009-01-28
Posts: 1861

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.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

zoltan
User offline. Last seen 12 years 20 weeks ago. Offline
Joined: 2012-05-18
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 12 years 20 weeks ago. Offline
Joined: 2012-05-18
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
nemo's picture
User offline. Last seen 21 weeks 1 day ago. Offline
Joined: 2009-01-28
Posts: 1861

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.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

zoltan
User offline. Last seen 12 years 20 weeks ago. Offline
Joined: 2012-05-18
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.

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]