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
Wolfy
Fleet Admiral
Fleet Admiral
Posts: 5342
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.

Resolution auto-changer [Current version 1.0.1.0]

Post by Wolfy » Sun Mar 18, 2012 7:29 pm

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 'hycrotan 'nonBinary))
Image
Image

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 . . .

Re: Resolution auto-changer [Current version 1.0.1.0]

Post by Star Weaver » Mon Mar 26, 2012 8:51 am

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: 2738
Joined: Tue Nov 06, 2007 12:03 am
Location: Traveling in the TARDIS
Contact:

Re: Resolution auto-changer [Current version 1.0.1.0]

Post by Ttech » Sun Apr 01, 2012 3:29 pm

How come I never saw this before? And I thought it was an april fools joke?

Amariithynar
Militia Commander
Militia Commander
Posts: 254
Joined: Sat Apr 30, 2011 9:58 pm

Re: Resolution auto-changer [Current version 1.0.1.0]

Post by Amariithynar » Sun Apr 01, 2012 4:06 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 . . .

Re: Resolution auto-changer [Current version 1.0.1.0]

Post by Star Weaver » Mon Apr 02, 2012 12:10 am

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

Who is online

Users browsing this forum: No registered users and 2 guests