hey guys, I've been working on my mod, and everything was going smooth until I tried to change my weapon icons on the HUD+kit selection to my own versions. No errors or anything, they just don't show up in game. I know the directory and file names are right, I have also tried changing the file type from tga to dds, which hasn't worked either. Any ideas?
-ADMIN-> could you move this to bf2 community modding? in my haste I must have put this in Arma's mod stuff. I'm quite the noob...
[Help] weapon ICONS
-
Insanitypays
- PR:BF2 Developer
- Posts: 753
- Joined: 2009-06-13 09:23
[Help] weapon ICONS
Last edited by Insanitypays on 2012-04-15 08:30, edited 1 time in total.
-
CTRifle
- Retired PR Developer
- Posts: 1056
- Joined: 2011-01-03 14:57
-
Amok@ndy
- Retired PR Developer
- Posts: 5144
- Joined: 2008-11-27 22:13
Re: [help] weapon ICONS
icon stuff needs to be integrated in the Atlases check bfeditor.org for a tutorial on that

-
Devilman
- Posts: 13
- Joined: 2012-02-16 06:18
Re: [help] weapon ICONS
frank_beans wrote: And replace them with these:
rem ---BeginComp:WeaponHud ---
ObjectTemplate.createComponent WeaponHud
ObjectTemplate.weaponHud.weaponIcon Ingame\Weapons\Icons\Hud\your_icon.dds
ObjectTemplate.weaponHud.altWeaponIcon Ingame\Weapons\Icons\Hud\your_icon.dds
ObjectTemplate.weaponHud.selectIcon Ingame\Weapons\Icons\Hud\your_icon.dds
Or this
rem ---BeginComp:WeaponHud ---
ObjectTemplate.createComponent WeaponHud
ObjectTemplate.weaponHud.weaponIcon Ingame\Weapons\Icons\Hud\your_icon.tga
ObjectTemplate.weaponHud.altWeaponIcon Ingame\Weapons\Icons\Hud\your_icon.tga
ObjectTemplate.weaponHud.selectIcon Ingame\Weapons\Icons\Hud\your_icon.tga
No need to change the TGA to DDS
-
Devilman
- Posts: 13
- Joined: 2012-02-16 06:18
Re: [help] weapon ICONS
No it doesnt[R-DEV]Amok@ndy wrote:icon stuff needs to be integrated in the Atlases
Atlases are used to save a very,very,very small amount of system resources
By having the game engine load 1 (or more) large image/images,instead of dozens or hundreds of small images
-
AfterDune
- Retired PR Developer
- Posts: 17094
- Joined: 2007-02-08 07:19
Re: [help] weapon ICONS
Atlas isn't needed, but may be better if you have a lot if icons. If you don't use an atlas, you can save the images as .tga or .dds (or sometimes renamed to .dds, sometimes flipped vertically). But always refer to them as .tga in your .tweak files.

-
Devilman
- Posts: 13
- Joined: 2012-02-16 06:18
Re: [help] weapon ICONS
It doesnt matter[R-DEV]AfterDune wrote:But always refer to them as .tga in your .tweak files.
if it did, I would of stated that above
I have used DDS format icons,with DDS written in the tweak file,for years,and just to make sure my information is 100% correct
I just did a quick test,with DDS files,listed as DDS,with no problems at all
Why is it you say otherwise,have you had problems with that method ??
PS.Did you know frank_beans,is the best weapon icon maker,to ever walk this planet
-
AfterDune
- Retired PR Developer
- Posts: 17094
- Joined: 2007-02-08 07:19
Re: [help] weapon ICONS
I believe I had issues with that, yes, hence I always refer to them as .tga. But hey, if .dds works, feel free to use that
.

-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
Re: [help] weapon ICONS
Actually it saves quite a lot providing its optimized.Devilman wrote:Atlases are used to save a very,very,very small amount of system resources



