X4: Foundations

X4: Foundations

Grandsome's Better Icons
 This topic has been pinned, so it's probably important
Grandsome  [developer] 23 Jun, 2022 @ 1:17pm
How to Add Icon to Ship
Standalone new ship: If you're making a new ship copy the icons.xml and the assets/fx/gui folder, delete the unwanted icons from both folder and file and add the identifiers (see list below) in the id line in your macro file.

Not standalone: make this mod a requirement for your ship mod and add any of the identifier in the list below in your id line in the macro file.

Patch: to make a patch for a mod first create a content.xml folder that includes both this mod and the targeted mod as requirements. (see the egosoft forum for more details.)
Then create an extensions folder in wich you put the extracted targeted mod folder.
Find the "{ship_name}_macro.xml" file under "asset/units/{insert size}/macros" in the extracted directory.
Then add a line like the following line in an empty xml file of the same name at the same place as your targeted ship macro file.

<diff> <replace sel="//macros/macro/properties/identification/@icon">ship_m_carrier</replace> </diff>

and replace ship_m_carrier by any of the following identifiers.


Identifiers list:


VRO Default Category:
ship_xl_battleship
ship_l_frigate
ship_m_bomber
 ship_s_heavyfighter
 ship_s_scout
MoistDream's additional Category:
 ship_l_cruizer_01 Note: cruiser with a Z (my edit to avoid conflicts)
 ship_l_battlecruiser_01 Note: battlecruiser with a S
 ship_l_battleship
Grandsome New Icons Category
:
ship_xs_fight_heavy
ship_s_bomber
 ship_s_miltrade_01
ship_m_carrier
 ship_m_miltrade_01
 ship_m_milminer_01
ship_l_carrier_01
 ship_l_miltrade_01
 ship_l_milminer_01
ship_xl_cruizer_01 Note: cruiser with a Z ship_xl_milminer_01
 ship_xl_miltrade_01
ship_xxl_carrier
Khak Icons (credit MoistDream):
 ship_kha_s_fight_01
 ship_kha_m_fight_01
 ship_kha_l_destroyer_01
Grandsome's Khaak:
 ship_kha_s_fight_01_heavyfighter
Adding Xen Icons (credit MoistDream):
ship_xen_s_fight_01
ship_xen_s_scout
ship_xen_m_fight_01
ship_xen_xl_carrier_01
ship_xen_xl_u_carrier
ship_xen_xl_destroyer_01
Grandsome's Xenon:
ship_xen_s_fight_01_heavyfighter
 ship_xen_s_bomber
ship_xen_m_miner
ship_xen_m_bomber
ship_xen_l_frigate
 ship_xen_l_destroyer_01
 ship_xen_xl_frigate
 ship_xen_xl_battleship_01

(see icon type list in the screenshot section)
Last edited by Grandsome; 23 Jun, 2022 @ 1:18pm