UNLIGHT:Revive

UNLIGHT:Revive

Not enough ratings
How to Change Window Size
By dinospfc2
Tired of squinting? Try making the window bigger or even full screen with this guide.
   
Award
Favorite
Favorited
Unfavorite
Find the Game Files
In your steam library, right click on the game, then Manage, then Browse local files.

It is typically something like
...Steam\[steamapps\]common\UNLIGHTRevive
Modify Files
index.html
Add the parameter
scale: [some multiplier]
to the #frame_game section.

Example
<head> <script src="https://cdn.socket.io/4.7.5/socket.io.min.js"></script> <style> body { background-color: #000000; } #frame_game { margin-left: -66px; margin-top: -66px; margin-bottom: -15px; scale: 1.2; } </style> </head>
Adjust the Offsets
Now adjust the other parameters in the #frame_game section of index.html. These parameters are where the game screen is positioned within the window.

Likewise, you'll need to modify the package.json file to actually expand the game window.

Below are the working numbers for scaling on 1080p monitors. Feel free to copy paste it into your files.

index.html
<head> <script src="https://cdn.socket.io/4.7.5/socket.io.min.js"></script> <style> body { background-color: #000000; } #frame_game { margin-left: 74px; margin-top: 59px; margin-bottom: 0px; scale: 1.4; } </style> </head>

package.json
{ "name": "unlight_revive", "main": "index.html", "window": { "icon": "/icon.png", "width": 1064, "height": 954, "resizable": false, "fullscreen": false }, "chromium-args": "--ignore-gpu-blacklist" }

For other sizes, or for full screen, you'll have to play around with the offsets until the game window is in the correct location.
Note that by default, fullscreen in package.json is set to false. The resizable parameter doesn't do anything.
Why This Works
The game window is essentially a glorified browser window based on Google Chrome, so any CSS code will apply.
Will I Get In Trouble for Modding the Game?
While I can't say for sure, I don't think this really counts as cheating in any way. But if you're uncomfortable with modifying the files, another option is simply changing your monitor scale under Display Settings (Windows).

If you want to revert back to the original files at any time. Right click on the game, go to Properties. Then in the window, go to Installed Files, and click Verify integrity of game files. Steam will detect the changes you made in the 2 files and revert it back to the default.
Want More?
This guide has been available on my Discord[discord.gg] since the beginning of the game, among other things.

I tried to use it as bait for people to join but doesn't seem like it's working anyway. So may as well release it since I see so many posts and reviews complaining about the window size.