Hull icons
Moderator: JeremyaFr
Hull icons
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
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
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
- Darksaber
- Posts: 10931
- Joined: Mon Jan 10, 2000 12:01 am
- Contact:
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?
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?
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
"HullIconList.txt" is placed next to the hook dll in the main xwa directory.
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- John Lydgate
Good Things Come To Those Who Wait....
Darksaber's X-Wing Station
- Driftwood
- Posts: 2173
- Joined: Wed Oct 22, 2003 11:01 pm
- Contact:
Yay! It's really great that we're getting these "small" engine related limitations fixed after all these years.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
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.
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.
- AngeI
- Posts: 515
- Joined: Sun Jan 24, 2016 5:27 pm
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.
You do not have the required permissions to view the files attached to this post.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
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.
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.
- JeremyaFr
- Posts: 3839
- Joined: Mon Jan 18, 2010 5:52 pm
- Contact:
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.
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.