Raptor: Call of The Shadows - 2015 Edition

Raptor: Call of The Shadows - 2015 Edition

Not enough ratings
Playing Raptor 2015 in windowed mode with mouse controls on a 4K/highDPI monitor
By krank23
Like it says on the tin – this guide is for all those of you who, like me, like playing in windowed mode in 4K but still not have the window be stamp-sized, and who prefer using the mouse to steer the ship.
   
Award
Favorite
Favorited
Unfavorite
Introduction
I have a kind of finicky cheap 4K monitor that really doesn't like changing resolutions. So I prefer windowed mode in pretty much all cases – borderless fullscreen when I can get it, a regular old window when I can't.

this is a problem with Raptor 2015, because the window is TINY on a 4K monitor. Even at the highest resolution. (Why can't we choose higher resolutions? Why not a borderless fullscreen mode? Nobody knows, and I guess the devs don't care)

I also think the only way to play Raptor is with a mouse. It's the only way I've found to move at different speeds. The Xbox One controller I'm usually using works, bit movement is still one speed only. With a mouse, I can choose how fast I want to move. I mean, the controls still don't compare to Tyrian, but they're alright.

But as many of you've already noticed, mouse controls in Raptor 2015 are crap both in fullscreen and in windowed mode. (Why doesn't the game lock the mouse to its window? Who knows.)

Anyways, here are my solutions.
The window scaling thing
Go to the game's location on your hard drive. (Right-click the game in the Library, choose Properties, go to Local files, Browse local files.

Right-click rapwin.exe, choose Properties. Compatibility. Change High DPI settings. Uncheck "Override High DPI Scaling behavior"

There you go, sorted. The window will now scale up and look right on a 4K monitor. Provided you've set your scaling in Windows, of course.


And yes, this means the devs just decided you shouldn't have a proper sized window and that the game shouldn't care about windows scaling. Which is good for full screen – don't try to play in full screen with this option off – less good for windowed mode.
The mouse thing
This is a bit more technical and finicky.

First, find and install a program called AutoHotKey. It's got a dot com website, should be easy to find. It's basically a program for running small scripts in Windows. Pretty powerful.

Then, go to this forum post[www.autohotkey.com].

The largest code box of the first post in that thread contains a script. Use the "Select all" button, copy the script.

Right click on your desktop, choose New and Autohotkey Script. Name the file something reasonable, like "windowcapture". Right click it, choose edit script. Paste the code. Close the file.

Doubleclick the file. Good, now the script is running in the background. You should get a little dialog box in the bottom right of your screen informing you of this.

When you want to play Raptor, start the game in windowed mode. Then press Ctrl+F4 and carefully click and drag a rectangle from the upper left corner of the Raptor window to the bottom right.


This will "lock" the mouse to that rectangle. There's a shortcut for "lock to a window" as well, but it won't work – the mouse will still move slightly out of the Raptor window. So you'll need to draw the rectangle. Every time.

The mouse should be unlocked whenever Raptor closes, but if you need to release it the chortcut is Ctrl+Esc.
1 Comments
brick_fist 6 Jun, 2020 @ 11:06am 
If you only use the script for this one game, then you can hard code the X/Y coordinates. An easy way to do this is to place an alert box to show you the X1/Y1/X2/Y2 values selected after you drag the rectangle. Then you can hard code those values and bypass the box-drawing each time.

Without testing the code, I'm not sure if it uses X/Y coordinates which are absolute (based on the screen) or relative (based on the window). If the coordinates are relative, you should be able to drag the Raptor window around without it messing up the "box". If the coordinates are absolute, then your Raptor window will need to be in the same position each time, but AutoHotKey can also do this for you (or 3rd-party software like DisplayFusion).