Hull icons

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderator: JeremyaFr

Post Reply

Hull icons

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Aug 24, 2017 8:15 pm

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

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Thu Aug 24, 2017 8:33 pm

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?
“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

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Aug 24, 2017 8:36 pm

"HullIconList.txt" is placed next to the hook dll in the main xwa directory.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Thu Aug 24, 2017 8:39 pm

Thought so :) thanks
“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

Tuskin
Ensign
Posts: 457
Joined: Sat Aug 13, 2005 11:01 pm

Post by Tuskin » Thu Aug 24, 2017 10:35 pm

You are just amazing.

User avatar
Driftwood
Admiral (Moderator)
Posts: 2174
Joined: Wed Oct 22, 2003 11:01 pm
Contact:

Post by Driftwood » Thu Aug 24, 2017 11:11 pm

Yay! It's really great that we're getting these "small" engine related limitations fixed after all these years.

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Fri Aug 25, 2017 4:57 am

Excellent. Thank you.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Jul 08, 2020 1:34 pm

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.

User avatar
AngeI
Lieutenant JG
Posts: 522
Joined: Sun Jan 24, 2016 5:27 pm

Post by AngeI » Sat Feb 20, 2021 7:13 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.
1.jpg
2.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Feb 24, 2021 2:32 pm

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.

User avatar
JeremyaFr
XWAU Member
Posts: 3918
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Feb 05, 2023 12:19 pm

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.

Post Reply