Invisible AI ships using a custom ship style
Detailed explanation and debug.err included herein
https://forums.galciv2.com/?aid=144025
from
GalCiv2 Forums
In the course of assisting me with this issue, Kryo has asked that I create a new thread in this forum. For reference, and should it be required, the thread in which that happened is in the external link I included when I created this thread. It is located at the very end of the thread and listed as "Link." Please refer to it if necessary.
I wanted to create a custom ship style and ships for a custom race that would guarantee that all ships created by AI controlling that race would adhere only to custom ships rather than default ships that would look "out of place" due to the nature of the race (in this case, The Borg from Star Trek.) I wanted to use all in-game graphics, and basic custom ships and ship templates to dictate what the general appearance of AI controlled and produced ships would be. With the greatly appreciated aid of Kyro, I managed to successfully create a custom ship style that was selectable in-game by the player (myself,) which incorporated custom ships and templates with unique prefixes. However, ships produced by the AI remained invisible under certain circumstances. Below are the exact steps I took, and the situations in which ships remained invisible. I wish to be as thorough as possible for the sake of clarity, so that anything I did that might be causing this issue inadvertently can be discerned by those with far more technical comprehension of the game's inner workings than I possess. I hope this is sufficiently clear. Thank-you for your time and attention!
1) I opened an existing Ship Style.xml file in GalCiv2\DarkAvatar\Data\English\ShipStyles, changed instances of the original style's name to "Borg Style," and changed the
I wanted to create a custom ship style and ships for a custom race that would guarantee that all ships created by AI controlling that race would adhere only to custom ships rather than default ships that would look "out of place" due to the nature of the race (in this case, The Borg from Star Trek.) I wanted to use all in-game graphics, and basic custom ships and ship templates to dictate what the general appearance of AI controlled and produced ships would be. With the greatly appreciated aid of Kyro, I managed to successfully create a custom ship style that was selectable in-game by the player (myself,) which incorporated custom ships and templates with unique prefixes. However, ships produced by the AI remained invisible under certain circumstances. Below are the exact steps I took, and the situations in which ships remained invisible. I wish to be as thorough as possible for the sake of clarity, so that anything I did that might be causing this issue inadvertently can be discerned by those with far more technical comprehension of the game's inner workings than I possess. I hope this is sufficiently clear. Thank-you for your time and attention!
1) I opened an existing Ship Style.xml file in GalCiv2\DarkAvatar\Data\English\ShipStyles, changed instances of the original style's name to "Borg Style," and changed the
If it will still let me, I'll change your name to Kryo in my above post lol.