steam Workshop
or better currently "Advanced Renaming" only since its not dependent on the other Project and because i just finished it its also not yet Integrated there (but integration is planned )
This Extension allows more Flexibility in Object Names. Especially you can define a Name Template and all Objects will be named according to this Template and it adds Colored Object Names. Its simple to use since you just rename your Properties as usual, but you can simply include expressions which will be replaced by what you really want to write there. Also the Names can be edited easily since the Expression will be displayed in the Rename Menu, not the resulting Name
Also three Mass Renaming Functions have been added to the Renaming Menu. Buttons should be self-explaining.
Colored Names
To color Object Names just put these Expressions before the part intended to be colored:
/blk black
/gr1 gray 1
/blu blue
/cya cyan
/grn green
/mag magenta
/red red
/lbl light blue
/whi white
/yel yellow
/gr2 gray 2
/hex for Hexadecimal (RRGGBB) Color in the format /hexBADA55#
Insert Expressions
these pre-definied Expressions exist:
###> First the ones which dont change for a specific update (or wont cause an update if they should change) - generally perfixed with /
/type = > Typename of the Object Macro (for example Scaldis)
/class = > Object Class (currently XL, L, M, S, XS and ST - please notify me if more pop up)
/purpose = > InGame-Purpose of the Obejct (Trade, Fight, Build, Mine, Scan or Hack)
/freightclass => Compatible Freight Classes ( BCEL ), if its universal its U and if its all Types in seperate bays its M (Scaldis)
/zone \
/sector = > Name of the Zone/Sector/Cluster the Object is currently in (Intended for Stations, No Auto Update)
/cluster /
/sup.zone \
/sup.sec = > Similiar to the 3 before, but refering to the Superior, not the Object itself
/sup.clu /
###> Next the Expressions which will cuase an Update if their Value changes (prefixed with $)
$stageA# => building progess of a Stations build sequence (A for example; works up to I) - will result in nothing if the Station doesnt have the related sequence in its full plan.
$sup.name => Inserting the Name of the Superior ($-Expressions are curt away for this)
$money => current amount of Cash the Pilot/Manager has
=> Skills: Skill Values of certain Control Entities can be inserted with a 3-letter-combo:
$SAB
where the $S is always the same (S for Skill )
A stands for the following options:
B => Boarding NPC
C => Pilot,Captain (both are technically equal)
D => Defense Officer
E => Engineer
M => Manager
and B defines the Skill to be inserted:
A => All(Combined; goes from 0 to 100 instead of the others 0 to 5)
B => Boarding
C => Combat
E => Engineering
L => Leadership
M => Managment
N => Navigation
O => Morale
S => Science
###> And last Mass Renaming Expressions - these are only useable via Mass Renaming:
%sub.id => Serial Number of Subordinate Ship
%sub.total => Total Number of Subordinate Ships
Custom Expressions
There is a seperate Extension available here - it is seperate from the Steam Workshop to not mess up custom expressions.
Additionally you can define Initial Names for Stations, Big Ships and Small Ships when you buy/build them there now. i recommend putting a curstom expression there and define the full name with this Expression, because that way you can change it easily when you change your mind
i have left a short explaination how to use it there. Also all previously explained / and $ Expressions can be used inside there without restrictions (no support for %-Expressions) here a short example which was used to create the Workshop preview:
Code: Select all
<t id="0">/BShip</t>
<t id="1">/grn/type /blu$SCP /mag$SDP /yel$SEP /cya/class/purpose/freightclass</t>
<t id="2">/Station</t>
<t id="3">/grn/type /blu$SMP /mag$SDP /cya$stageA#$stageB#$stageC#$stageD#$stageE#$stageF#$stageG#$stageH#$stageI#</t>
here.
Download
here.
Script-defined Expressions (for use by other Modders)
You can also provide Additional Expressions via Script by writing to a Blackboard Var of the Captain/Manager of the Ship/Station ( this.$namereplacement.$expression ) and send an Update Signal immediately after writing there ( <signal_objects object="this.container" param="'Object Name Updated'" delay="100ms"/> )
This is currently used by these Mods:
=> My Navigation Scripts
-> $destination
=> My Defense Officer Scripts
-> $utcac_do_state
-> $utcac_do_droneratio
Changelog
Updates (2) on 2016-09-06:
=> fix: mod mow enabled by default
=> fix: removed unnecesary dependencies
=> fix: Updating all Object Names on Game loading now doesnt leave null ships
=> feature: 2 new dynamic expressions: %class and %purpose
=> feature: Additional Post-Processing expresssions (to cut out/change dynamic parts)
update on 2016-09-25:
=> new Function: Mass Renaming Big Ship/Small Ship Subordinates only
=> new expressions:
-> %subnumber - serial number of Subordinate when mass renaming
-> %subtotal - total number of Subordinates
Note: when mass renaming small/big Ships both apply to the specific sub-set of subordinates only.
=> Fixed/Completed German Lang File
=> some preperation work to work togehter with another mod of mine (not functional yet)
update on 2016-09-26:
=> French Language Added (still needs some refinement)
=> Fixed: several Issues with renaming the wrong/no Objects
=> as sideeffect a manual Name Update is now possible by Renaming but leaving the Name unchanged
update on 2016-10-03:
=> Added leading Zeroes to %subnumber (based on total number of renamed subordinates)
=> new Expression %scriptset to indicate the Script Set used by the Objects controlentity (Currently only Vanilla and my Manager Scrit)
=> new Special Expressions DEBUG and DEBUG OFF - first one stays in the Name unchanged, but sets this.$debug on all relevant Entities on the Object (used by my scripts to activate debug output), second one is removed completely from the Name but also deletes the aforementoined Variable
Note: it does not activate the vanila debug output yet - have to find out how to do this best first.
=> (only fot my Manager- and soon-to-be Fleet Command Script) 2 new Expressions:
%ordercount => Length of Command Queue
%currentorder => currently executed Command
=> diverse bugfixes and opimisations
update on 2016-10-12:
=> Added Normal Color Tag at the end of all Names (happens transparently and is not displayed in the Rename menu)
=> Changed Renaming Responsibility on Stations from DO to Manager (transition shouldnt be noticeable - if something doesnt work as expected let me know)
=> New automatically generated Shortname Added (its the Object Name minus all expressions which can change) - it is used for exressions like %superiorobject
=> (forgotten in last changelog): new Expressions %SCP, %SMP, %SDP etc. - displays all primary Skills of Captain/Manager/Defense in order of importance ( like "534" )
=> (forgotten in last changelog): new expressions /rco0 to /rco9 - results in random colors (one for each of the 10 expressions)
update on 2016-10-16:
=> Fixed: Updating Object Names Globally using the Version Number in the Custom Expressions file didnt work
(note: patch forces an update of all Player Object Names)
update on 2016-10-31:
=> Added new Function to use a Name Template for new Ships in the custom file
=> Changed many Expressions to shorter Variants (you may have to check/update your custom file)
-> made obvious distinction between updating expressions and non-updating ones (former is prefixed with $, the latter with / )