Site Tools


tutorial:sdt-adding-a-new-icon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:sdt-adding-a-new-icon [2025/03/08 23:56] – admintutorial:sdt-adding-a-new-icon [2025/03/09 00:16] (current) – admin
Line 1: Line 1:
-====== Adding a New Icon ======+====== Adding a New Icon (SDT) ======
 Authors: Vawser Authors: Vawser
  
Line 10: Line 10:
  
 ===== Tutorial ===== ===== Tutorial =====
-In this tutorial, we will be adding a new icon, specifically, icon ID ''1099''. +In this tutorial, we will be adding a new icon, specifically icon ID ''1099''. 
  
 The same instructions apply for any icon ID, so substitute ''1099'' for your actual icon ID when reading the instructions below. The same instructions apply for any icon ID, so substitute ''1099'' for your actual icon ID when reading the instructions below.
Line 43: Line 43:
   - Change the ''y'' attribute to ''2048''   - Change the ''y'' attribute to ''2048''
   - Repack the ''01_common.sblytbnd.dcx'' file.   - Repack the ''01_common.sblytbnd.dcx'' file.
 +
 +==== Image ==== 
 +=== General ===
 +Edit the icon file found within the ''01_common.tpf.dcx'' file.
 +
 +=== Specifics ===
 +  - Unpack the ''01_common.tpf.dcx'' file.
 +  - Open the ''SB_Icon.dds'' file (with Photoshop or other image editoring software).
 +  - The icon has been placed a placed at x-coordinate 0 and y-coordinate 2048, covering the x-coordinate space to 256, and the y-coordinate space to 2304. Create your new icon within that square.
 +  - Save the ''SB_Icon.dds'' file.
 +  - Repack the ''01_common.tpf.dcx'' file.
  
 ==== Interface ==== ==== Interface ====
Line 50: Line 61:
 You need to edit the following ''GFX'' files: You need to edit the following ''GFX'' files:
   - ''01_000_FE.gfx''   - ''01_000_FE.gfx''
 +  - ''01_000_FE_Stadia.gfx'' (can be skipped)
 +  - ''01_012_itemquantityselect.gfx''
 +  - ''01_990_Trial_FE.gfx'' (can be skipped)
 +  - ''02_200_mainmenu.gfx''
 +  - ''02_202_equipweaponselect.gfx''
 +  - ''02_205_bossselect.gfx''
 +  - ''02_206_costumeselect.gfx''
 +  - ''02_207_bossselect_multi.gfx''
 +  - ''02_280_getitem.gfx''
 +  - ''02_281_getitem_middle.gfx''
 +  - ''02_282_getitem_high.gfx''
 +  - ''02_284_getitem_event.gfx''
 +  - ''02_991_Trial_MainMenu.gfx'' (can be skipped)
 +  - ''03_001_shop.gfx''
 +  - ''03_202_bonfire.gfx''
 +  - ''03_204_upgrade.gfx''
 +  - ''03_206_skill.gfx''
  
 You should use the batch scripts as found in [[tutorial:ffdec-tutorial]], they will let you quickly decompile the ''GFX'' files into ''XML'', and vice versa. You should use the batch scripts as found in [[tutorial:ffdec-tutorial]], they will let you quickly decompile the ''GFX'' files into ''XML'', and vice versa.
Line 62: Line 90:
   - **ShowFrameTag**: this displays the tag you defined previously.   - **ShowFrameTag**: this displays the tag you defined previously.
  
-The reason it is done like this is because the ''DefineSpriteTag'' section uses the icon ID of the external image as an index to indicate which ''frameTag'' to show. Therefore each group of ''RemoveObject2Tag'', ''PlaceObject3Tag'' and ''ShowFrameTag'' can be thought of as representing a frame. +The reason it is done like this is because the ''DefineSpriteTag'' section uses the icon ID of the external image as an index to indicate which ''frameTag'' to show. Therefore each group of ''RemoveObject2Tag'', ''PlaceObject3Tag'' and ''ShowFrameTag'' can be thought of as representing a group, indexed by their position in the list.  
 + 
 +Note, the ''DefineSpriteTag'' sections are split into blocks of 1000, which tend to be groups of individual types of icons, such as weapons, equipment, etc.
  
 === Specifics === === Specifics ===
Line 79: Line 109:
 == Displaying the Texture == == Displaying the Texture ==
   - With the ''01_000_FE.xml'' file open in your text editor, search for the ''characterID="532"''.   - With the ''01_000_FE.xml'' file open in your text editor, search for the ''characterID="532"''.
-  - You will find a ''PlaceObject3Tag'' line. +  - You will find a ''PlaceObject3Tag'' section. 
- +  - Duplicate both the ''RemoveObject2Tag'' and the ''PlaceObject3Tag'' section, placing them above the ''ShowFrameTag'' that precedes the found ''PlaceObject3Tag'' section. 
-== XXX ==+  - Change the ''characterId'' in the duplicated ''PlaceObject3Tag'' to your new ''characterID''.
  
-== XXX ==+== Save === 
 +  - Convert the ''01_000_FE.xml'' back to ''01_000_FE.gfx''.
  
 ===== Source ===== ===== Source =====
 [[https://www.youtube.com/watch?v=hAOD9TTw1mU|View Youtube Video]] [[https://www.youtube.com/watch?v=hAOD9TTw1mU|View Youtube Video]]
tutorial/sdt-adding-a-new-icon.1741478176.txt.gz · Last modified: by admin