ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Adding new outfits - help with icons

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  20:22:38  25 January 2015
profilee-mailreply Message URLTo the Top
NATHANa1
(Novice)
 
On forum: 01/25/2015
Messages: 5
Adding new outfits - help with icons

Hello guys

I'm currently working on adding a few customized suits to Stalker Complete 2009, however i have ran into a big problem.

The suit itself is pretty much finished, with working visuals and stats. However, i have spent the better part of the day trying to figure out how to add entirely new suit icons (the one that shows your character in the inventory). I have no idea how to proceed, as i don't want to replace existing suit icons in ui_icons_npc.

How would i accomplish this?
Any help would be greatly appreciated
  20:35:24  25 January 2015
profilee-mailreply Message URLTo the Top
nashathedog
Senior Resident
 

 
On forum: 01/31/2011
Messages: 8111
Hello,
This is the easiest tool, The read me includes instructions.
Then all you need is additional icons which you can get from various sources be it other mods, other games or making your own.

www.mediafire.com/download/qdrc0brahnbtlzk/ICON+tool.7z
  21:05:13  25 January 2015
profilee-mailreply Message URLTo the Top
NATHANa1
(Novice)
 
On forum: 01/25/2015
 

Message edited by:
NATHANa1
01/25/2015 21:15:41
Messages: 5
Thanks for quick reply!

I don't know if i'm just being dum and didn't understood the readme correctly, but will this allow me to create a new logo space entirely? I already have an icon in place, and i know how to edit the ui_icons_npc config, but my problem is with creating an entirely new icon that doesn't replace an existing slot.

ui_icons_npc.xml:
<ui_texture>
<file_name>ui\ui_icons_npc</file_name>

<texture id="npc_icon_without_outfit" x="384" y="384" width="128" height="320" />
<texture id="npc_icon_novice_outfit" x="0" y="704" width="128" height="320" />
<texture id="npc_icon_bandit_outfit" x="0" y="384" width="128" height="320" />
<texture id="npc_icon_killer_outfit" x="256" y="704" width="128" height="320" />
<texture id="npc_icon_monolit_outfit" x="384" y="704" width="128" height="320" />
<texture id="npc_icon_specops_outfit" x="256" y="384" width="128" height="320" />
<texture id="npc_icon_military_outfit" x="640" y="384" width="128" height="320" />
<texture id="npc_icon_stalker_outfit" x="896" y="704" width="128" height="320" />
<texture id="npc_icon_scientific_outfit" x="768" y="704" width="128" height="320" />
<texture id="npc_icon_exo_outfit" x="128" y="704" width="128" height="320" />
<texture id="npc_icon_svoboda_light_outfit" x="640" y="704" width="128" height="320" />
<texture id="npc_icon_svoboda_heavy_outfit" x="128" y="384" width="128" height="320" />
<texture id="npc_icon_dolg_outfit" x="512" y="704" width="128" height="320" />
<texture id="npc_icon_dolg_scientific_outfit" x="512" y="384" width="128" height="320" />
<texture id="npc_icon_ecolog_outfit" x="896" y="384" width="128" height="320" />
<texture id="npc_icon_protection_outfit" x="768" y="384" width="128" height="320" />
<texture id="npc_icon_veteran_outfit" x="0" y="1024" width="128" height="320" />

</ui_texture>

The icon i'm trying to add is "npc_icon_veteran_outfit". However, there is no space left in ui_icons_npc.dds (like i said, i would like to add entirely new icons, not replace existing ones ) Is it possible to referrence two different ui_icons_npc versions in this file?
  22:16:45  25 January 2015
profilee-mailreply Message URLTo the Top
nashathedog
Senior Resident
 

 
On forum: 01/31/2011
 

Message edited by:
nashathedog
01/25/2015 22:23:51
Messages: 8111
Add the icon to the icon file with the tool and then use it to get the position coordinates (all in the read me) and then add the coordinates to the outfit.ltx file.

It will look a bit like this


In your outfit.ltx file you added a section for each outfit that although longer includes something like this

[made_up_outfit] utfit_base
GroupControlSection = spawn_group
discovery_dependency =
$spawn = "outfit\made_up_outfit"
;$prefetch = 32
class = E_STLK
cform = skeleton
visual = dynamics\outfit\whatever_outfit
actor_visual = actors\whatever
player_hud_section = actor_hud_01

ef_equipment_type = 3

inv_name = made_up_outfit_name
inv_name_short = made_up_outfit_name
description = made_up_outfit_description
inv_weight = 4.0

The coordinates go in this part

inv_grid_width = 2
inv_grid_height = 2
inv_grid_x = 0
inv_grid_y = 18

You do not need to tweak other files


EDIT


Forget all that, You mean in SOC where it has Strelok standing there and it changes what he's wearing correct?

If so the file above can be added to by simply going to the end of this line

<texture id="npc_icon_veteran_outfit" x="0" y="1024" width="128" height="320" />

and spamming enter to add blank lines while you have it opened in notepad.
Then just copy paste the same line in and tweak it with the outfits name and new c0ordinates

I'm not sure what else will need doing as I don't really play around with SOC
  22:52:53  25 January 2015
profilee-mailreply Message URLTo the Top
NATHANa1
(Novice)
 
On forum: 01/25/2015
Messages: 5

---QUOTATION---

Forget all that, You mean in SOC where it has Strelok standing there and it changes what he's wearing correct?

---END QUOTATION---



Exactly!

Oh my bad, i don't mean space in the XML file, i mean in the .dds file itself

(This is vanilla file)
http://img2.wikia.nocookie.net/__cb20120611184616/stalker/images/thumb/5/51/Ui_icons_npc.jpg/500px-Ui_icons_npc.jpg

I want to add another icon, but i can't do so because all the space is filled up

If i try to extend the picture size, the X and Y coordinates get all messed up and i have to calibrate every icon in there from the start, which i would much like to avoid
  01:13:50  26 January 2015
profilee-mailreply Message URLTo the Top
TKGP
Senior Resident
 

 
On forum: 01/25/2013
Messages: 454
As long as the old parts are still starting in the top left corner, you shouldn't need to edit the coordinates. Change the canvas size of the texture to be twice as tall (2048px); if the dimensions aren't both some power of 2 it won't render properly, which may be the problem you encountered.
  17:35:16  26 January 2015
profilee-mailreply Message URLTo the Top
NATHANa1
(Novice)
 
On forum: 01/25/2015
Messages: 5

---QUOTATION---
As long as the old parts are still starting in the top left corner, you shouldn't need to edit the coordinates. Change the canvas size of the texture to be twice as tall (2048px); if the dimensions aren't both some power of 2 it won't render properly, which may be the problem you encountered.
---END QUOTATION---



You are my savior, man! thank you so much! it works perfectly now!

This is the result:
http://imgur.com/a/u0mnY
  12:13:39  27 January 2015
profilee-mailreply Message URLTo the Top
Tejas Stalker
Official Stalker on Facebook
(Resident)

 

 
On forum: 05/12/2007
Messages: 26948
Adding new outfits - help with icons

NATHANa1~

And we meet again...

You'll find some great help here as you see already.

Good luck with your project.

TS
  17:45:50  31 January 2015
profilee-mailreply Message URLTo the Top
NATHANa1
(Novice)
 
On forum: 01/25/2015
Messages: 5
Ah, hello there Tejas!
Again thanks a lot!
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2020 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.