class icons - where? -1 reply

Please wait...

bbble

Don't mess with my Teddy!

50 XP

30th September 2004

0 Uploads

357 Posts

0 Threads

#1 15 years ago

I am adding a custom class (springfield assault) to my map. I have come to the stage that the class actually works. Weapons are ok, the map does not crash. I can run around and shoot, throw nades and have a good time. My proplem is the class icon. It does not show up, I get a blank (white) spot instead. This I guess is caused by my reference to the springfield icon being wrong. I have searched for the icon*.tga files in the rfa's to double check my reference, but I cannot even find the files. Anyone knows where they are stored? The reference in the object.con looks like this:

ObjectTemplate.setKitIcon 0 "kits/Icon_NagantRuss_selected.tga" This is the picture that appears on the spawn screen. Again can be changed out for anything.

(Ehmmm yes this is snipped from the FAQ, mine would look much the same except Nagant changed to springfield and russ to us... i am on a different computer just now so I cannot access my file) I looked for a /kits/ folder somewhere with no success, I have searched all my unpacked rfa's but these icon*.tga files I am not able to find...any advice? My reference is exactly the same as for the Springfield engie kit, but somehow it all gets screwed up, and I end up with no icon at all. Could this be because I am making this Springfield assault class for position no.3 while springfield icon usually is assigned to class.no 5 (counting from top in my spawn menu)?




ctz

FH Devolver

50 XP

17th May 2004

0 Uploads

655 Posts

0 Threads

#2 15 years ago

try "kits/icon_Springfield03US_selected.dds"




Kingrudolf

Fan FH Mapper

50 XP

9th October 2003

0 Uploads

1,345 Posts

0 Threads

#3 15 years ago

It's not the pictures files themselves:

ObjectTemplate.setKitIcon 4 "kits/Icon_Panzerfaust100Ger_selected.tga" ObjectTemplate.setKitName 4 "RESPAWN_AT" ObjectTemplate.setKitActiveName 4 "RESPAWN_ACTIVE_AT"

These are lines from the Faust100 kit. You can see the numbers mentioned each time; this is the place where this class is put. At the selection menu, you have five classes. The first one is 0, the second one 1, third one 2, etc. So it starts counting at 0. If you'd put the sniper class in the third slot, the number in the objects.con should be 2.

I think that should do the trick for ya..




bbble

Don't mess with my Teddy!

50 XP

30th September 2004

0 Uploads

357 Posts

0 Threads

#4 15 years ago

:fixed:

Consider including this about the icons in the FAQ, I can't be the first, and not the last...

Thanksalot...only those stupid color spots and some other details left now.




Admiral Donutz Advanced Member

Wanna go Double Dutch?

735,271 XP

9th December 2003

0 Uploads

71,460 Posts

0 Threads

#5 15 years ago

A question very simlar to this one answers the question more or less (it refers to classes in the init.con but the structure is the same):

How do I change the weapon kits in my map? I made my first map for FH but when i want to test it is crashes to the desktop?

It to shows to the number 0-4, so i think that with that information you should be able to apply this on kits aswell. ;)




NateDawg=US=

=Unknown Soldiers=

50 XP

22nd November 2004

0 Uploads

37 Posts

0 Threads

#6 15 years ago

Thank you Donits. :flag: