ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Call of Pripyat Forum » Mod discussion
OXR Texture Tool

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  03:48:32  7 September 2015
profilee-mailreply Message URLTo the Top
Alundaio
Sad Clown
(Resident)

 

 
On forum: 04/05/2010
 

Message edited by:
Alundaio
09/08/2015 4:19:01
Messages: 2231
OXR Texture Tool

Open X-Ray Texture Tool
Author: Alundaio
Download: https://github.com/revolucas/OXR-Texture-Tool
Official thread: www.epicstalker.com
Readme: http://pastebin.com/sq1Lfceu

About:
This tools purpose is to unpack ui_icon_equipment.dds into separate individual icons so that they can be manipulated individually or merged more easily. This tool is capable of creating a new sprite sheet using the unpacked icons and writing the new geometry values (w,h,x,y) into the system configs. It also allows you to merge up to 4 existing unpacked ui_icon_equipment directories into a single sheet.
Stalker Icon Editor, aka SIE is also included and can be launched from the GUI.


Example Usages:
Say you create a mod, such as a weapon mod or an item mod with additional icons. If you want your mod to be mergeable into different mods, it is hell for the person who downloads the mod to merge your icons into their existing ui_icon_equipment.dds. That is where this program comes in. Simply create and package your mod like normal. But then you can unpack the ui_icon_equipment.dds and keep only the icons you added written in shared.ltx and the individual icons. Then you can redistribute the unpacked icons along side your mod so that the person who is using your mod can merge your icons into theirs.

Here is an example with OWR3:
CoC icons before: http://www.epicstalker.com/uploads/stalker/misc/coc_ui_icon_equipment.png
CoC icons after: http://www.epicstalker.com/uploads/stalker/misc/owr_ui_icon_equipment.png

This was a single click of a button! And all inv_grid_x, inv_grid_y, inv_grid_width and inv_grid_height were updated automatically in the output gamedata directory! Magic!

You can get the OWR3 package I've used from the mod section of the CoP subforum, to see how you should set up package to be merged into another project: http://forum.epicstalker.com/viewtopic.php?f=8&p=4682#p4682

Another possible use is to simply make more room by repacking your icons. The algorithm sorts by cell size, X-Ray engine class and alphabetically. So there is less likely to be unused space allowing you to fit more icons onto the sheet.

Information:
The source is all here It was created using AHK (ANSI 32-bit) and lua, and is completely standalone so no need to have lua or AHK installed. Anyone is welcome to fork and modify it for their own purposes. The launcher.exe should be the latest compilation of launcher.ahk. It's just mainly here for those that do not know how to use AHK.

The tool is not perfect. Sometimes you will have to do manual changes to the shared.ltx and rename/add/remove sections and icons to get a perfect merge. Once you get used to how the process is done this step is also quick. An example is when I merged OWR3 icons with CoC. OWR was missing a quest item section for svu and a ak74u; this created duplicate icons on the sheet. The fix was to simply add these missing sections to owr's shared.ltx for the sections using the icons I wanted them to use.

The final output of new_ui_icon_equipment is in .png format because of a quality issue when using ImageMagick to convert the png to dxt5 dds.

Although it is very unlikely to ruin system configs, I highly recommend your backup your output gamedata\configs folder before a merge or repack.
  05:27:19  7 September 2015
profilee-mailreply Message URLTo the Top
nashathedog
Senior Resident
 

 
On forum: 01/31/2011
Messages: 7386
Brilliant tool, Why not add it too the downloads section so it's not lost so easily as it will be in this section, If you don't want to give it it's own thread there (I think you should do a thread (Alun's tools?) and put all your different tools and smaller mods in it) you could add it too the mini-mod thread.
  04:12:41  8 September 2015
profilee-mailreply Message URLTo the Top
Alundaio
Sad Clown
(Resident)

 

 
On forum: 04/05/2010
 

Message edited by:
Alundaio
09/08/2015 4:22:17
Messages: 2231
New in 1.0.1 is the ability to unpack ui_actor_weapons.dds and ui_actor_armors.dds when checking the Upgrade Icon Mode in the unpack tab. There is no feature to repack/merge ui_actor_armors or ui_actor_weapons, yet.

I also updated the readme, here: https://github.com/revolucas/OXR-Texture-Tool/blob/master/README.MD

@David: Took your advice
  11:44:28  27 December 2016
profilee-mailreply Message URLTo the Top
Alundaio
Sad Clown
(Resident)

 

 
On forum: 04/05/2010
 

Message edited by:
Alundaio
12/27/2016 11:46:08
Messages: 2231
AXR Toolset info: http://gsc-game.com/main.php?t=community&s=forums&s_game_type=xr3&thm_page=1&thm_id=6555&sec_id=19#123173

Bumping to make it known that LTX QuickEdit has been updated with a new search feature. The Pattern Matching edit field allows you to use lua pattern matching to filter the results. For tutorials on pattern matching see here: http://wowwiki.wikia.com/wiki/Pattern_matching

So say for example you only want to search cost field for Artefacts, you would select inventory_cost.ltx as your filter then put ^af_ in the Pattern Matching field because the ^ indicates you want af_ to match the beginning of the string. Or if you only wanted outfits to appear in the list you would use outfit$ because $ indicates you want to match the ending of a string. Or say you have a huge list and just want to find bread, you would type bread into the field.

http://imgur.com/HFLi7UK

Modding the ltx files has never been this Quick
  14:50:43  14 March 2017
profilee-mailreply Message URLTo the Top
nashathedog
Senior Resident
 

 
On forum: 01/31/2011
 

Message edited by:
nashathedog
03/15/2017 8:56:31
Messages: 7386

---QUOTATION---
OXR Texture Tool
---END QUOTATION---



Thanks for the update and reminding me what I should be using
  00:03:01  15 March 2017
profilee-mailreply Message URLTo the Top
Alundaio
Sad Clown
(Resident)

 

 
On forum: 04/05/2010
 

Message edited by:
Alundaio
03/15/2017 0:04:31
Messages: 2231

---QUOTATION---
OXR Texture Tool

Thanks for the update and reminding me what I should be using
---END QUOTATION---



Yep. About a month ago I forgot to mention that there was a nice big update to AXRToolset. It has multilingual support and you can check if there are new updates available.

I do plan to remake OXR Texture Tool into AXRToolset, but not anytime soon. OXR Texture Tool makes it really easy to merge different equipment icon sheets and saves a lot of time.
 
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.: Call of Pripyat Forum » Mod discussion
 

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


 

Copyright © 1995-2017 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.