Resolution auto-changer [Current version 1.0.1.0]

This is an archive of old tutorials that may still be of interest to the public, especially when it comes to debugging old mods on old versions of the game for nostalgia, but are nolonger helpful for modern versions of the game.
Post Reply
User avatar
Aury
Fleet Admiral
Fleet Admiral
Posts: 5510
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

Current version: 1.0.1.0

http://dl.dropbox.com/u/3061400/ChangeRes1010.zip

Description:
nominally speaking, this is a command line utility; basically what it does is it takes a number of arguments specifying a display mode, and then runs some specified program, and resets the display mode once the program has finished executing.
This program is meant for people with large displays, where the UI of transcendence is uncomfortably displaced from the game window, though it will work with any program.

How to use:
Step 1: create a shortcut to this program
Step 2: edit the "target" to look something like this:
""...path/ChangeRes.exe" -h=900 -w=1600 -f=60 -g=0 -b=32 "-p=...path/transcendence.exe" "-a=/windowed /debug""

-h controls height
-w controls width
-f controls frequency
-g controls flags (basically interlaced or not interlaced)
-b controls color depth

Its not necessary to include them all, as you can normally just specify height and width, and the rest of the values will be copied over from the current display mode, but this may not work if you have an interlaced display mode by default (in which case you need to put -g=0)
Step 3: save the link, and then run the program from there. It will do the rest. (note, if nothing seems to happen, its because you had invalid args. Try copying the line of text you have in the target, going into command prompt, right-clicking, select "paste" and then run that, and see what errors come up. Adjust it as necessary. Don't worry about experimenting, as it will reject any non-valid parameters. Do note that windows doesn't like some very low-res display modes & may experience glitches)

Changelog:

1.0.1.0
- added the ability to pass arguments to the target executable

1.0.0.2
- minor cleanup, no functionality changes.

1.0.0.1
- updated with readme, licensce, and license in assembly info

1.0.0.0
- initial release

License & Disclaimer:

Copyright (c) 2012, Alexander Huitric
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
User avatar
Star Weaver
Militia Commander
Militia Commander
Posts: 311
Joined: Sun Nov 07, 2010 10:20 pm
Location: . . . between the stars and the warm black sky . . .

Nifty! Do you happen to be using an API fo this that allows you to set and restore the gamma, too?
Image
Image
Image
User avatar
Ttech
Fleet Admiral
Fleet Admiral
Posts: 2767
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

How come I never saw this before? And I thought it was an april fools joke?
Image
Image
Amariithynar
Militia Commander
Militia Commander
Posts: 255
Joined: Sat Apr 30, 2011 9:58 pm

It works just fine for me! :D
User avatar
Star Weaver
Militia Commander
Militia Commander
Posts: 311
Joined: Sun Nov 07, 2010 10:20 pm
Location: . . . between the stars and the warm black sky . . .

Heh, I downloaded it but it's backlogged behind a tonne of portable software downloads which got delayed by me getting pissed off at how all unarchivers worked and writing a python script which got delayed by me getting pissed of at bash and beating my rc file into a bloody mess.... :D
Image
Image
Image
Post Reply