Releases: jamesjonesphoenix/X3-Colour-By-Race
Releases · jamesjonesphoenix/X3-Colour-By-Race
v2.0.1
v2.0.0
- Added dynamic colouring of sector names available only in FL.
- Sector colouring is activated as a separate AL plugin so you can use it standalone or alongside colouring ships & stations.
- Sector colours are editable in the 9964 t file set as a red, green and yellow value to be combined into an RGB colour. By default these RGB colours are identical to the colours used for ship & station names.
- Border sectors can be set to use different colours to core sectors. By default they are the same. You can set the border sector colours for individual races manually or set a general % value to lighten/darken the core sector colour.
- Colour By Race in FL now requires the unofficial patch by Cycrow as sector colouring requires some of the new scripting functions.
- Rewrote plugin to start a task on new ships and station for rechecking their names instead of adding them to a global array to be checked on a timer. More elegant and more efficient on CPU and less likely to show uncoloured objects while waiting on 180 second timer.
- Changed to use SIGNAL_CREATED instead of SIGNAL_CHANGESECTOR to detect new ships for colouring in FL. SIGNAL_CREATED is called once per ship only, meaning reduced CPU load.
- Improved reset functionality.
- Added check on game load to see if settings are changed from the last session due to a change in the t file. If a change is detected, the plugin will inform the player and reset and recolour all ships, stations and/or sectors to match the new settings. This way the player can change settings without needing to deactivate and reactivate the plugin - though this method is still possible.
- The reset and recolouring is run in parallel for a seamless transition from the user's point of view - user won't see the entire universe uncoloured for a few minutes.
- If a version update is detected, the plugin will inform the user of the update and reset and recolour ships, stations and/or sectors.
- Old data from a previous game session is now stored to be used for any reset deemed necessary on session start. It's then deleted.
- Pirate Guild 3 Mob Bosses and special XRM stations such as "Farpoint Station" are now reset properly.
- Added script to check for short prepend on objects with short names and replace with the long prepend. This is run once on version upgrade. This was a mistake introduced to a couple of objects in earlier version of plugin. Only seen it in German translation so is fairly rare.
- More informational messages. Short messages now appear as a game tip in FL and AP.
- Changed Terran colour from "silver" to white as I can see it better. If you prefer to revert to silver, you can edit settings in the 9964 t file.
- t file improvements.
- Separated True Relations & Colour By Race into separate t files. 9964 is the main t file. 9965 now only contains hard coded coloured names of stations and is not used by FL as we can immediately detect creation of stations with SIGNAL_CREATED.
- Added more documentation comments to the t file to explain editable settings.
- Moved some hardcoded settings into t file so they can be edited.
- XRM command ship job IDs and relevant sector string IDs.
- References to object names to be prepended with race name.
- Replaced "Pirate Ship" entry at id="3771" with original uncoloured string.
- Added some strings to German t file to ensure an entire word is coloured in stations. For example "Piratenhafen" was only getting "Piraten" coloured which looked odd.
- Added check to see if plugin is running processes. This stops the plugin from running two intensive processes at the same time and prevents breakage from conflicting processes. For example deactivating while init process is running would break things and vice versa.
- Added handling of OWNER_CHANGED signal to rename a ship when its owner changes.
- Improved debugging logging
- Added dedicated script for enabling debugging - plugin.jj.colour.by.race.set.debug.
- Debug now set to text number (9964) rather than boolean true.
- A bunch of refactoring including some functions from jj.colour.by.race to jj.lib.
v1.3.1
- Prevented search substrings from being deleted when processing a plugin update. This bug prevented the galaxy from being reset so objects could be recoloured from a "blank slate".
v1.3
- Improved plugin deactivation. Plugin will now remove the colour from the coloured part of the name of all ships and stations in the galaxy and remove all local vars and global vars. It will be as if Colour By Race was never installed.
- Setup [SIGNAL_CREATED] for stations in FL. In FL stations will now be coloured as soon as they appear in the universe.
- Improved detection of FL. The plugin would fail to detect FL if X3 was running unofficial patch version 1.3.6 and later. Amongst other things, this would leave corporation ships uncoloured.
- Changed prepending of ships without a race substring to colour. Previously the plugin queried a list of approved jobs to prepend with a race name. This was cumbersome, it's quicker to query jobs which shouldn't be prepended with a race name. Currently the only job we make sure not to prepend is the UFO Unknown Ship job 8660 and any drones.
- Setup a feature where a set of station-only search substrings will be searched before any others. For example I added "Boronen" to this set for the German translation which will be searched and coloured before "Boron". These strings are set with IDs from x50 to x60 where x is the race ID. So for example strings 450 to 460 for the Paranid.
- Fixed some t file typos
- German translation:
- Added "Militärischer" to German translation substrings and made sure it gets coloured before Militär.
- Added "Herzogs" as a substring to search for Duke's
- Added descriptions to all script files.
v1.2.2
- Added German translation - thanks to Olsch for checking and improving my initial attempt.
- Added ability to add strings to t file to check for stations only, but checked before other strings - needed for German translation which has masculine and feminine noun modifiers.
- Made a dubious attempt at other French, Spanish, Italian, Czech and Polish translations. I took these translations straight from Google translate.
v1.2.1
- Forgot to version up event file to 1.2
v1.2
- Now compatible with Terran Conflict.
- Wrote alternate code for command
get race id for race
. This was the only plugin code which TC couldn't handle.
- Wrote alternate code for command
- Deleted extraneous files player.xml and init.xml
- Lasertower activation timer fix now called on lasertower change sector signal
- Now only check XRM stations if XRM is activated - was renaming McCallum station but couldn't find string.
v1.1
- Now compatibile with Farnham's Legend.
- Added FL corporations as races to search for. Includes conditional script which checks which engine version.
- Added prepending of ship & station names with race name if none found for certain jobs. Uses shortened name if name length already quite long.
- Fixed bug where lasertower activation timer would be saved into the name.
- Added/Fixed search strings to be coloured:
- FL - corps, The Marauder, Nikkonofune
- Terraformers, Exterminator, ATF Orbital Defence Station
- fixed Beryll string
- Added script to remove the local variable on all ships and stations. This is used when updating the plugin so we can re-check the galaxy and when the plugin is deactivated.
v1.0
Initial Release.