Shortcuts with command line options for CUSTOM and GAME?

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
KF Harlock
Slime Knight
Posts: 194
Joined: Wed Oct 22, 2008 10:45 am
Location: East Coast USA
Contact:

Shortcuts with command line options for CUSTOM and GAME?

Post by KF Harlock »

Hey all,

I just recently upgraded to Win7 when I put together a new system (late adopter, I know), and haven't had any problems using OHR in the new environment... EXCEPT ONE! D:

Back in XP, I made shortcuts for both CUSTOM and GAME that started them with 3x zoom and in full-screen respectively. In the "target" box of the shortcut properties, I would have, for instance:

"C:\path\game.exe" -f

And it would run game fullscreen, no problems. However, this doesn't work at all in Win7. Even from the command prompt, I can't start either program in fullscreen from the command line. I *CAN* go into fullscreen once the programs are started with alt-enter, so the capability is there, it's just like the command line options aren't being read somehow.

Anyone have any insights about what's going on?
SPELLSHARD: THE BLACK CROWN OF HORGOTH now COMPLETE! <a href="http://www.slimesalad.com/forum/viewgam ... 4363">Grab it today!</a>
User avatar
Bob the Hamster
Liquid Metal King Slime
Posts: 7460
Joined: Tue Oct 16, 2007 2:34 pm
Location: Hamster Republic (Ontario Enclave)
Contact:

Post by Bob the Hamster »

That sounds like a bug. I can test it on a Windows 7 machine on Monday and let you know if I get the same result.

I am also curious if this is a gfx backend bug. Try:

game.exe -gfx sdl -f

and see if it works. That will tell us if this is a gfx_directx problem or a general fullscreen problem.
User avatar
KF Harlock
Slime Knight
Posts: 194
Joined: Wed Oct 22, 2008 10:45 am
Location: East Coast USA
Contact:

Post by KF Harlock »

Thanks for responding, James.

The -f option DOES work with -gfx sdl...

...but problematically. For instance, when I use alt-enter to fullscreen with the directx backend, it preserves the aspect ratio, but stretches it out to widescreen under SDL. Also once I close the program, it's moved all my open windows from my first monitor desktop to my second monitor desktop. I dunno if these latter issues are even under your control at all, but I just figured I'd mention them anyway. In any case, command line options "work" under SDL!
SPELLSHARD: THE BLACK CROWN OF HORGOTH now COMPLETE! <a href="http://www.slimesalad.com/forum/viewgam ... 4363">Grab it today!</a>
TMC
Metal King Slime
Posts: 4101
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

That was a good hunch; I was totally clueless as to what the problem might be.

Did you also upgrade from Ypsiliform to Zenzizenzic when moving to your new computer? I can't imagine any possible Windows 7-sepcific problem.

Any SDL fullscreen bugs are totally out of our control, unfortunately. However a new SDL version was released recently. There's no mention of anything like that in the changelog, but you can try it if you want. Download http://www.libsdl.org/release/SDL-1.2.15-win32.zip, and replace the copy of SDL.dll that came with the OHR.
User avatar
KF Harlock
Slime Knight
Posts: 194
Joined: Wed Oct 22, 2008 10:45 am
Location: East Coast USA
Contact:

Post by KF Harlock »

Ah, sorry, I should have specified that I'm using the nightly from a few days ago (Feb 27).

However, I just tried this out with the stable Zenzizenzic release as well, and the shortcuts also fail to work unless the SDL backend is specified.
SPELLSHARD: THE BLACK CROWN OF HORGOTH now COMPLETE! <a href="http://www.slimesalad.com/forum/viewgam ... 4363">Grab it today!</a>
User avatar
charbile
Metal Slime
Posts: 576
Joined: Tue Jun 21, 2011 6:18 am

Post by charbile »

Is Harlock making another ohr game?! :o :o :o

Curious if there's any tricks to start game.exe in a custom way, to control how you want it to look when you release your game.
TMC
Metal King Slime
Posts: 4101
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

charbile wrote:Curious if there's any tricks to start game.exe in a custom way, to control how you want it to look when you release your game.
Not yet, aside from providing a batch file or shortcut. Want to do that. Custom also, of course. Then no one will need to use command line options.

...

Oh actually, it would probably be possible to fix the widescreen full screen issue under SDL, by running at a more normal resolution instead of 640x400.
Last edited by TMC on Mon Mar 05, 2012 6:57 am, edited 1 time in total.
Post Reply