Resolution auto-changer [Current version 1.0.1.0]

This is a moderated forum that collects tutorials, guides, and references for creating Transcendence extensions and scripts.
Post Reply
User avatar
Aury
Fleet Admiral
Fleet Admiral
Posts: 5421
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on 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)
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
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