Page 1 of 1

Hull icons

Posted: Thu Aug 24, 2017 8:15 pm
by JeremyaFr
Hello,

I've created a hook to set the hull icon for any craft. You are no longer limited by the limit of 70 crafts that have a hull icon. Crafts beyond slot 70 can now have a hull icon.

The table in the exe that set the hull icons have been moved to a file named "HullIconList.txt".

Download link:
xwa_hook_hull_icon.zip

Re: Hull icons

Posted: Thu Aug 24, 2017 8:33 pm
by Darksaber
Cheers Jeremy that was super fast

Just one question where do you place the HullIconList.txt as you don't mention it in the readme

Is it the main XWA DIR?

Re: Hull icons

Posted: Thu Aug 24, 2017 8:36 pm
by JeremyaFr
"HullIconList.txt" is placed next to the hook dll in the main xwa directory.

Re: Hull icons

Posted: Thu Aug 24, 2017 8:39 pm
by Darksaber
Thought so :) thanks

Re: Hull icons

Posted: Thu Aug 24, 2017 10:35 pm
by Tuskin
You are just amazing.

Re: Hull icons

Posted: Thu Aug 24, 2017 11:11 pm
by Driftwood
Yay! It's really great that we're getting these "small" engine related limitations fixed after all these years.

Re: Hull icons

Posted: Fri Aug 25, 2017 4:57 am
by Bman
Excellent. Thank you.

Re: Hull icons

Posted: Wed Jul 08, 2020 1:34 pm
by JeremyaFr
UPDATE

Hello,
I've updated the hull icon hook.

You can now define the map icon via a txt file instead of patching the xwa exe.

To set the map icon for a craft, open "MapIconList.txt" and change the corresponding line to the desired value.
If the file does not exist, default values are used.

Re: Hull icons

Posted: Sat Feb 20, 2021 7:13 pm
by AngeI
Hi, I've been trying to get the MapHull Icon to work but it doesn't seem to. I can get the regular Hull icons to work, no problem, but when I try to follow the same rules for MapHull, they refuse to show in game. See screenshots, I think I've done this right. The highlighted parts are Ship slots 116-125.
1.jpg
2.jpg

Re: Hull icons

Posted: Wed Feb 24, 2021 2:32 pm
by JeremyaFr
Hello,
I've just tested the hook for map icons and it works fine.

The values in "MapIconList.txt" are the indexes of the images in the dat file multiplied by 100. The values are not the Id of the images.
You can see the indexes of the images with the latest version of XwaDatEditor.

Re: Hull icons

Posted: Sun Feb 05, 2023 12:19 pm
by JeremyaFr
UPDATE

Hello,
I've updated the hull icon hook.

Suppose that the mission is "[MissionDir]\[Mission].tie".
To replace the player hull icon for a given mission, create a file named "[MissionDir]\[Mission]_HullIcon.txt" or create a section named "[HullIcon]" in "[MissionDir]\[Mission].ini".
The format is:
PlayerHullIcon = value
If the value is 0, then no icon is replaced.

To replace the craft hull icon for a given mission, create a file named "[MissionDir]\[Mission]_Objects.txt" or create a section named "[Objects]" in "[MissionDir]\[Mission].ini".
The format is a line per object: "FlightModels\ObjectA_HullIcon = value"
If the value is 0, then no icon is replaced.