NewOpts
by Zear
⤓ Download · 46.6 KBThis is a collection of scripts that provide new options screens and support required for a wide variety of other scripts. Among other things: -Autoload allows drop-in script installation - no editing autoexec.cs, no mis-placed files, no hassles. -HudMover is a simple way to place your Huds where you want them onscreen. -NewPrefs provides three pages of options, exposing many preferences that were hidden by default in Tribes. -NewOpts provides a framework which will allow other scripts to insert options pages into the Tribes Options screen, including the first version of a new Help system. -DialogOpts provides pre-made generic and specific use modal dialogs for use by other scripters. -SenseStack provides freelook sensitivity management to prevent scripts from setting sensitivity to the wrong values and to preserve your axis flip the way you set it. -FovStack provides Field Of Vision management, prevents scripts from interfering with each other in unwanted ways. -MoreString includes many more string manipulation functions, including pixel sizing. Requires PrestoPack http://www.planettribes.com/zear/zears.html
- Filename
NewOpts966.zip- Size
- 46.6 KB (listed 46.6KB)
- Type
- ZIP
- Developer
- Zear
- Date
- 2000-01-24 (newest file inside)
- theexiled upload
- Jan 14, 2009 - 19:45
- Format
- Zip archive data, at least v2.0 to extract, compression method=deflate
Readme — NewOpts0.966readme.txt (from the archive itself)
NewOpts v0.966: with HudMover, Autoload and FovStack
============================================================================
Special thanks to BigBunny and especially Draclich for their debugging and
bug fixes on this version!
============================================================================
To install:
0. IMPORTANT: You have to have Presto v0.93 (or later) installed first!
1. Unzip NewOpts966.zip into the <Tribes>\config directory.
If you already have installed NewOpts 0.95 or earlier, you can delete
the NewOpts directory from <Tribes>\config, and you can delete the
Option.gui file from <Tribes>\gui.
2. In your <tribes>\config\autoexec.cs file, IMMEDIATELY after the line
exec("presto\\install.cs");
add the line
Include("Autoload.cs");
If you have the line
Include("NewOpts\\Install.cs");
go ahead and remove it.
3. (Re)Start Tribes
Don't forget to check out the new prefs on the Option Screen!
Regards,
Tim '[SS-12]Zear' Hammock
[email redacted]
*** Visit Zear's Client-side Scripting at *** http://www.planetstarsiege.com/zear
============================================================================
About Autoload:
Autoload will automatically search for files (in the search path) with the
extensions '.acs.cs' and '.avl.vol' and execute those scripts. By default,
the search path contains the directories:
config
base
base\missions
base\fonts
base\skins
base\voices
base\scripts
recordings
temp
In the case of an '.avl.vol' file, autoload will assume it contains a file
with the same base name and '.cs' extension (and located at the root of the
.vol file), and will execute that script file. For instance, if it finds a
file named 'example.avl.vol', autoload will load the volume, and attempt an
'Include("example.cs");' call.
If a file contained inside the .vol file exists as a bare file (outside of
the .vol file), that file will be Include()'ed instead.
This should make future script installations a snap, since the script
could be entirely contained within the .vol file and would require no editing
of autoexec.cs at all. Simply drop the new script's .vol file into the config
directory and the install is complete.
Preventing autoload of a script:
--------------------------------
Once a file has been autoloaded at least once, you can disable autoloading for
that file by editing '<Tribes>\config\AutoloadPrefs.cs'. Within that file
you will find lines similar to:
$Autoload::doAutoload["example.avl.vol"] = "true";
By changing the "true" to a "false" and saving the file, the file
"example.avl.vol" will be ignored on startup until the "false" is changed back
to a "true". Of course, you could simply move the offending file elsewhere,
which will prevent it from being loaded (naturally).
In the future I plan to move this operation to an in-game gui interface.
Note to scripters:
------------------
To add a directory to the search path, append it to the end of
$ConsoleWorld::DefaultSearchPath. For instance:
$ConsoleWorld::DefaultSearchPath = $ConsoleWorld::DefaultSearchPath@";MyDirectory"
When naming files, be aware and try not to pick a name that is in use anywhere
else. The autoload routines work on a first-found first-loaded basis. I intend
to create an API document to cover all of the NewOpts package, including
Autoload (time is a wee bit precious lately). Patience please...
============================================================================
Using HudMover:
The 'default' position for a HUD is the position specified (by
the HUD's script) when the HUD was created. The 'reset'
position is the last position it occupied before HudMover was
activated.
HudMover will save the position to which you moved each HUD,
and upon restarting Tribes, it will restore each HUD to the
new position.
To activate HudMover:
1. Make sure you have assigned a key or key combination to
HudMover on the NewPrefs Play options screen.
2. Go to the screen where the hud (you wish to move) appears.
If you wish to move an in-game HUD, and you are not
currently connected to a server and in a game, you can use
a practice map.
3. Press the key(s) assigned in step 1.
4. Move and save the HUD using the following keys:
+ Click on a HUD to select it.
+ Tab & shift-tab to cycle the selection through the HUDs.
+ Up, down, left & right arrow keys to move the selected
HUD.
+ Number pad keys 5, 2, 1 & 3 to resize the selected HUD.
+ Holding 'shift' while moving or resizing increases the
speed of change.
+ 'r' key to reset the selected HUD to its last position.
+ shift-'r' key to reset all HUDs to their last positions.
+ 'd' key to reset the selected HUD to its default
position.
+ shift-'d' key to reset all HUDs to their default
positions.
+ Spacebar to open the positioning dialog (see below) for
the selected HUD.
+ 's' key to shift the status bar position (this window).
+ 'i' key to toggle the display of these instruction on or
off.
+ ESC or 'q' key to quit HudMover.
New:
+ 'h' key to hide/show the selected hud (while in HudMover).
+ shift-'h' key to hide/show all huds (while in HudMover).
NOTE:
Standard Tribes HUDs can be repositioned by dragging while
HudMover is active.
Using HudMover's positioning dialog:
Note: For informatiContents — 25 files (inside the archive)
- NewOpts0.966readme.txt 14.3 KB
- Autoload.cs 5.3 KB
- NewOpts.vol 204.7 KB
- NewOpts.vol/NewOpts\DialogOpts.cs 9.9 KB
- NewOpts.vol/NewOpts\EvalSearchPath.cs 3.0 KB
- NewOpts.vol/NewOpts\FovStack.cs 2.7 KB
- NewOpts.vol/NewOpts\HudMover.cs 22.8 KB
- NewOpts.vol/NewOpts\HudMoverConfig.cs 2.3 KB
- NewOpts.vol/NewOpts\HudPos.cs 15.2 KB
- NewOpts.vol/NewOpts\MoreString.cs 14.0 KB
- NewOpts.vol/NewOpts\NewOpts.cs 8.5 KB
- NewOpts.vol/NewOpts\NewOptsInstall.cs 512 B
- NewOpts.vol/NewOpts\NewPrefs.cs 10.8 KB
- NewOpts.vol/NewOpts\NewPrefsHelp.cs 9.4 KB
- NewOpts.vol/NewOpts\SenseStack.cs 4.6 KB
- NewOpts.vol/NewOpts\Gui\Badwords.gui 1.1 KB
- NewOpts.vol/NewOpts\Gui\ColorBox.gui 4.2 KB
- NewOpts.vol/NewOpts\Gui\HudPosition.gui 16.0 KB
- NewOpts.vol/NewOpts\Gui\LgDialog.gui 1.5 KB
- NewOpts.vol/NewOpts\Gui\NewPrefs1.gui 6.0 KB
- NewOpts.vol/NewOpts\Gui\NewPrefs2.gui 4.8 KB
- NewOpts.vol/NewOpts\Gui\NewPrefs3.gui 5.2 KB
- NewOpts.vol/NewOpts\Gui\NewPrefsIntervals.gui 3.1 KB
- NewOpts.vol/NewOpts\Gui\SmDialog.gui 1.5 KB
- NewOpts.vol/Gui\Options.gui 56.5 KB
Source: The Exiled — Tribes Repository
Original page: https://library.theexiled.pwnageservers.com/file.php?id=446
Archived source HTML: theexiled/mirror-html/file/446.html
Original page: https://library.theexiled.pwnageservers.com/file.php?id=446
Archived source HTML: theexiled/mirror-html/file/446.html