Resolution switcher - win10 testers needed

0 favourites
  • Okay here it is! No proper readme in there yet. I'll write one up when I feel less lazy <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

    https://www.dropbox.com/s/r1nwmlpav9629 ... 0.rar?dl=0

    New in this build:

    Window mode – you’ll need to set up a couple of things in your game’s events for it to work. See the testbuild capx inside the archive for an example.

    Future plans (v2.0):

    Switch resolutions in-game, switch between window and fullscreen in-game, and restore system resolution when the game is minimized (Alt-TAB).

    Mac/Linux support.

    Customizable launcher with various graphics and layout options.

  • This is interesting and I want to make sure I'm using it correctly. Upon first launch, without changing anything, the game launched in 800x600 with black bars around the image, as though it were cropped (I'm not sure if there's a better way of saying this). I did notice that when I adjust the launch.cfg and the osH/osW to 1920x1080 the game still says "800x600" but it scales to my 1920x1080 without black bars anywhere (I think that what's supposed to happen). Once I set that once, it always reverts to a full screen scaling, even after resetting everything in launch and osW/osH to 800x600.

    I'm on a Windows 7 machine with a GTX 560

  • Okay, here's how to use it.

    Export your game with nw.js and place Launcher.exe and Game.exe in the win32/64 folder.

    Run Launcher.exe and select a resolution and screenmode. Then press either launch or exit, in both cases your choices get saved. After pressing launch the game will run with your choices applied. If you want the 'window' choice to work though, you'll need to set up some events at the start of your game like I've done in the test.capx example.

    If you've run the launcher once and don't want to change resolution or screenmode again you can just run Game.exe directly with your saved settings.

    EDIT:

    Oh, and you need to turn kiosk mode off in build settings or you won't be able to cancel fullscreen in C2.

    -----------

    Quick breakdown of what the different cfg files do:

    launch.cfg:

    Used by Game.exe to get the name of the executable (nw.exe), the desired resolution to run in, the delay in seconds before switching to the desired resolution, and the time in seconds to display a black background while the game loads. (The last one doesn't work properly so I'd leave it alone for now.)

    You should only change "nw.exe", and the two last lines in launch.cfg. The resolution values get overwritten every time launcher.exe gets run so there's not much point changing those.

    mode.cfg:

    fullscreen/window toggle. 0 = fullscreen, 1 = window. Set by launcher.exe. Read by Game.exe (tells it not to switch resolution in window mode) and by your nw.js build (check out the capx to see how).

    osH.cfg/osW.cfg:

    Reference values. Allows C2 to read the resolution selected in launcher.exe. Best not mess with these.

    osDH.cfg/osW.cfg:

    Same as above but for system resolution.

    res.cfg:

    This is the file where you set up all the different resolution choices you want to make available to the player.

    ui.cfg:

    You can set your own names for launcher.exe's window and buttons here.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Oh gosh... my antivirus deleted the launcher executable haha. That's where my issue was; sorry! It works like a dream! Thanks! I'd definitely be interested in paying for this, especially if you do make a version that runs on linux and OSX.

  • ErekT Awesome job! I'll test it later

    ultrafop False positives from anti viruses has been a nightmare for me on steam. A while back tons of users got my games exe file deleted as it was falsely flagged as a virus and they couldn't play it. But it's finally fixed and the nw.exe files are now white listed. I wonder if the same will happen to this launcher?

    Does it get deleted every time?

  • Ouch! I hadn't considered that. Why would the antivirus even pick up on it? Hmm...

    Good news is, I'm working on a new version that allows communication between BMSwitch and nw.js builds. What that means is you'll be able to set resolutions and switch between fullscreen and window modes from within the game itself! It also means the Launcher.exe becomes a bit redundant, and if that's the only one virus scanners get freaked out by I guess I could just ditch it for the new version.

  • ErekT, well that sounds like a great feature for sure

  • Ouch! I hadn't considered that. Why would the antivirus even pick up on it? Hmm...

    Good news is, I'm working on a new version that allows communication between BMSwitch and nw.js builds. What that means is you'll be able to set resolutions and switch between fullscreen and window modes from within the game itself! It also means the Launcher.exe becomes a bit redundant, and if that's the only one virus scanners get freaked out by I guess I could just ditch it for the new version.

    Hey, it's because the file isn't listed in Norton's database (I'm using Norton Security Suite) and doesn't have a "track record" of safety (the number of active users is low). It also doesn't like that there isn't a publisher listed. I have a clipboard copy of a readout here. It happens for both the game and launcher executables. I'm not sure whether there's some way to register with Norton or what - or whether this would pop up with other antivirus programs.

    Clipboard copy:

    Filename: game.exe

    Full Path: c:\users\xxxxx\downloads\testbuild\win32\game.exe

    ____________________________

    ____________________________

    Developers 

    Not Available

    Version 

    Not Available

    Identified 

    7/13/2017 at 11:49:55 AM

    Last Used 

    7/13/2017 at 11:50:43 AM

    Startup Item 

    No

    ____________________________

    Very Few Users

    Fewer than 5 users in the Norton Community have used this file.

    Very New

    This file was released less than 1 week  ago.

    Unproven

    There is not enough information about this file to recommend it.

    ____________________________

    Source File:

    winrar.exe

    File Created:

    game.exe

    ____________________________

    File Thumbprint - SHA:

    500eda7ae1dd86f41e533efc953899490f13c2edadac26afd7ec24d0cfbf6f28

    File Thumbprint - MD5:

    d4f9bc072fcc68577a6a0261d8164797

  • Heya,

    well... not sure how I'm gonna tackle that to be honest. I have no idea how to inject a developer or version ID into a blitzmax program. Maybe I can ask around...

    In the meantime though..:

    I got in-game screenmode switching working reliably now. Finally! So that means you'll be able to switch between resolutions and between window and fullscreen modes from within your game, just like in any native engine

  • Heya,

    well... not sure how I'm gonna tackle that to be honest. I have no idea how to inject a developer or version ID into a blitzmax program. Maybe I can ask around...

    In the meantime though..:

    I got in-game screenmode switching working reliably now. Finally! So that means you'll be able to switch between resolutions and between window and fullscreen modes from within your game, just like in any native engine

    These are some wonderful news

  • Heya,

    well... not sure how I'm gonna tackle that to be honest. I have no idea how to inject a developer or version ID into a blitzmax program. Maybe I can ask around...

    In the meantime though..:

    I got in-game screenmode switching working reliably now. Finally! So that means you'll be able to switch between resolutions and between window and fullscreen modes from within your game, just like in any native engine

    This is super exciting . Thanks for working on this!

  • Okay, this took a bit longer than expected! The program is done, save a couple of kinks to iron out. I have the documentation and another example capx to sort out. It's a bit involved to set up so I wanna make sure everything is arranged to make it as easy as possible for users to integrate into their projects. For now, here's a small demo of the system in action:

    https://www.dropbox.com/s/lzg06qfltawad ... o.rar?dl=0

    Run 'Game.exe' (and make sure your virus scanner doesn't gobble it up ;P). Arrow keys to select and enter to apply changes.

    Printscreen will take a screenshot and save it to the folder 'snapshots'.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)