FreeSpace Releases > Scripting Releases
In-Mission Techroom Script v0.4 (Updated 19/06/2013)
FelixJim:
All your colour requests are perfectly doable - I've been looking at user-set colours for the based-on-health colours, and setting the border colour, title colour and press-to-leave colours separately should simple enough to add in as well. The colour system needs looking at anyway - I have a feeling there's a potential bug in there somewhere.
The custom descriptions feature was purely designed for specific ships, but there's no reason a similar, but separate, feature shouldn't be set up for an entire class without having to do anything FRED-side. I can see a new file called imt_classdescriptions.txt taking a form like:
--- Code: ---GTF Hercules: Custom Description.
SD Demon: Custom Description.
--- End code ---
These would be applied automatically, but any custom descriptions applied using imt.dsc() would take priority.
A straightforward true/false setting would be useful allow for letting you access ships not in the techroom. It'll be added!
In other news, I've got the new settings system set up (although it still needs a bit of rearranging to improve efficiency) - you can store your settings in a text file which override those in the script. This'll mean you don't have to reset all your settings every time I update the script.
And thanks for all these suggestions - it's good to have someone take an interest. The scripting board doesn't seem to get much love generally.
mjn.mixael:
:yes:
That all sounds great to me!
I try to make sure I pay attention to new scripts because they allow us FREDers to do things we otherwise couldn't. Admiral MS' shipsave script, for example, was originally intended to replace Red Alerts but I found it highly useful for checkpoints and in-mission cutscences with it's copy-ship functions. I have a few useful ideas for this script as well, especially with all the FRED based control you added...
FelixJim:
Hotfix release
I can't believe I released something with this huge a bug - the previous version would crash every time you restarted a mission. I wonder how many more releases I can squeeze into such a short time.
Bugfixes:
* Restarting the mission no longer causes FSO to crash
* Requirement for "End of File" at the end of imt_descriptions.txt removed, fixing a bug where FSO would crash if it was not present. It is removed from the sample imt_descriptions.txt, but documentation still erroneously demands you have it in place. It won't cause any harm if it is there - it'll be treated as just another custom description.
New features:
* Settings file support added, but it is unoptimised, has not been fully tested and no sample file or documentation exists yet - I do not recommend you rely on this feature yet
* Ability to set the colour of the text and border (not separately yet and untested)
* Script is mostly commented now
This is a hotfix release to fix a major bug, and the new features are in whatever state they happened to be in, if you catch my drift. Several colour settings are commented out as they are not implemented yet.
FelixJim:
Updated to version 0.4.
New features (in no particular order):
* Presence in techroom override added - can now set the techroom description to appear regardless of the ship's presence in techroom (off by default)
* Colour settings added - colours for the title, text, border, press-to-close, subsystems at high health, subsystems at low health and "Disabled" message can now all be set individually. The subsystems and "Disabled" message can also be set to use the regular text colour (off by default)
* Ability to set settings via imt_settings.txt is now in a state where I can recommend using it; example file and documentation included in modder pack
* Settings for the positions of all elements added
* Setting to centre title removed, as it's replaced by the above - hint for suitable value included in script comments and modder documentation
* Ability to set custom descriptions for ship classes in imt_classdescriptions.txt added
* Ability to set custom descriptions for specific ships tweaked slightly - now the last custom description applied will be used, not the first
* Ability to edit settings from FRED using imt.c() added; should be used carefully, this is a powerful function
* Auxiliary script added to modder pack to provide an alternative to the auxiliary text files - imt_settings.txt, imt_descriptions.txt and imt_classdescriptions.txt will not work from inside a VP, but the auxiliary script will
* Settings added to disable the target specifications section for specific IFFs and ship classes
* Ability to set background images added
Bugfixes:
* Users can no longer crash FSO by passing bad data through imt_settings.txt
* Not exactly bugs, but all magic numbers eliminated from script and some optimisations (not significant enough to notice, but what the heck) performed
Worth reiterating: Script will still happily work if you just drop it into data/tables without any of this extra stuff.
BLARGHER:
This is very nice. Complements the Tech Room without making it redundant, which can be quite hard to do. This would have been particularly nice for WoD and DE too. If my mod ever comes out, it will certainly have this.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version