Advertisement
metaphoria

Colour Override Tutorial

Mar 21st, 2023
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.82 KB | None | 0 0
  1. Colour overrides can be changed very easily, and this can be done in one of two ways. The recommended way is to use QuickEntity Editor, although a code editor or even a text editor can work as well. In either case, though, you will need to locate the entity.json file that corresponds to the option you're changing.
  2.  
  3. WHERE TO FIND THE ENTITY.JSON FILE
  4. 1. Navigate to your SMF mod folder: [YourGameLocation]\HITMAN 3\Simple Mod Framework\Mods\
  5. 2. Navigate to the mod folder for the mod you want to edit (in this case, it would be either GloveMod_AddGloves_Unlockable or NoMoreDrivingGloves)
  6. 3. For Glove Mod - Add Gloves, the folder structure is [SuitFolder]\[OptionFolder]\chunk0\Option.entity.json. For No More Driving Gloves, it's [SuitCategoryFolder]\[SuitFolder]\[OptionFolder]\chunk0\Option.entity.json. For example, if you wanted to change the colour of the black leather gloves on the Arkian Tuxedo, you would navigate to: HITMAN 3\Simple Mod Framework\Mods\GloveMod_AddGloves_Unlockable\ArkianTuxedo\ArkianTuxedo_BlackLeather\chunk0 and open the ArkianTuxedo_BlackLeather.entity.json file located there. This is where the steps diverge slightly.
  7.  
  8. EDITING THE ENTITY.JSON FILE WITH QUICKENTITY EDITOR
  9. 1. Open QuickEntity Editor
  10. 2. Click "Load" at the top, then "Load entity from file"
  11. 3. Navigate to the entity.json file you located in the previous section and select it.
  12. 4. Here you will see a tree view of all the components that make up the suit. You can either click the white arrow next to the "OUTFIT_Agent47_*****" string, then find the glove entity in this list and click on it. Or, you can search for it using the search box next to the word "Tree." If you are editing leather gloves, you can type "Gloves_Leather" into the search box and press enter. If you are editing driving gloves, you can type in "Agent47_Gloves_Driving" and press enter. In either case, you should see the glove entity highlighted in red. Click on it. In some cases, the glove entity will use a different name, such as "Mesh Gloves", but the process is the same. Find the glove entity in the tree view or via the search box, and left click on it.
  13. 5. If you look in the box on the right, you should see a "Diffuse_Color_01_Value" section. Most black leather gloves and all coloured gloves will have this section, while black driving gloves will not. If you want to edit colour overrides for driving gloves and there isn't already a coloured option to edit, I will provide the required code you can paste in at the end of this tutorial.
  14. 6A. In the Diffuse_Color_01_Value section, you'll see it says "value" followed by a hash symbol (#) and six letters/numbers. This is the hex colour code. To change the colour of the gloves, all you need to do is change this code and then save the file. For example, if you wanted to make the gloves white, you would change this value to #FFFFFF. If you wanted to make them red, you could try #FF0000.
  15. 6B. If you look at the bottom of the right box, you'll see it says "Visual editors". If you click the coloured square next to Diffuse_Color_01_Value, it will open up the visual editor, which you can use to set the colour without knowing its specific code.
  16. 7. Once you've changed the value to your preferred colour, simply click "Save entity" at the top. But please keep in mind that this will overwrite the original option you're editing, so you may want to make a backup. While it's of course possible to create an entirely new option instead, that's a bit beyond the scope of this tutorial, although you might be able to figure it out by examining the folder structure and the mod's manifest.json, or by reading the Manifest.md document included in SMF's Info folder.
  17. 8. Select the option in SMF and deploy. That's it!
  18.  
  19. EDITING THE ENTITY.JSON FILE WITH VS CODE/NOTEPAD++
  20. 1. Open VS Code/Notepad++
  21. 2. Navigate to the entity.json file you located in the previous section and select it.
  22. 3. You will see a big block of text. What you need to find is the glove entity, and from there, its Diffuse_Color_01_Value section. If you are editing leather gloves, you can search for "Gloves_Leather", and if you are editing driving gloves, you can search for "Agent47_Gloves_Driving". In either case, it should bring you to the section for the glove entity. In some cases the glove entity will use a different name, such as "Mesh Gloves", but the process is the same. Find the glove entity somewhere in the document.
  23. 4. Once you've found the glove entity, you should see a section that starts with "Diffuse_Color_01_Value". Most black leather gloves and all coloured gloves will have this section, while black driving gloves will not. If you want to edit colour overrides for driving gloves and there isn't already a coloured option to edit, I will provide the required code you can paste in at the end of this tutorial, but I would strongly recommend doing this with QuickEntity Editor instead.
  24. 5. In the Diffuse_Color_01_Value section, you'll see it says "value" followed by a hash symbol (#) and six letters/numbers. This is the hex colour code. To change the colour of the gloves, all you need to do is change this code and then save the file. For example, if you wanted to make the gloves white, you would change this value to #FFFFFF. If you wanted to make them red, you could try #FF0000.
  25. 6. Once you've changed the value to your preferred colour, simply save the JSON, overwriting the original. But as this will overwrite the original, you may want to make backup first. While it's of course possible to create an entirely new option instead, that's a bit beyond the scope of this tutorial, although you might be able to figure it out by examining the folder structure and the mod's manifest.json, or by reading the Manifest.md document included in SMF's Info folder.
  26. 7. Select the option in SMF and deploy. That's it!
  27.  
  28. THE DRIVING GLOVE SECTION TO PASTE (FOR GLOVE MOD)
  29. Simply select the "Agent47_Gloves_Driving" entity in QNE, then replace EVERYTHING under the "parent": "....", line with the section below. Finally, change the #ffffff value in Diffuse_Color_01_Value to whatever colour you'd like, and save the file.
  30.  
  31. "name": "Agent47_Gloves_Driving",
  32. "factory": "008897FB54E3DB82",
  33. "blueprint": "00F716010CB776C3",
  34. "properties": {
  35. "m_pMeshResource": {
  36. "type": "ZRuntimeResourceID",
  37. "value": {
  38. "resource": "00FBF04263964123",
  39. "flag": "5F"
  40. }
  41. },
  42. "Diffuse_Color_01_Value": {
  43. "type": "SColorRGB",
  44. "value": "#ffffff"
  45. },
  46. "Texture2D_03": {
  47. "type": "ZRuntimeResourceID",
  48. "value": {
  49. "resource": "[assembly:/_pro/characters/assets/hero/agent47/textures/agent47_gloves.texture?/specular_b.tex](ascolormap).pc_tex",
  50. "flag": "5F"
  51. }
  52. },
  53. "ConstantVector1D_01_Value": {
  54. "type": "float32",
  55. "value": 20
  56. }
  57. }
  58. }
  59.  
  60. THE DRIVING GLOVE SECTION TO PASTE (FOR OTHER MODS)
  61. If you're not using an entity.json file from Glove Mod or are creating one on your own, the "m_pMeshResource" section is not needed as that refers to a custom mesh. Instead, you can use this, changing #ffffff to whatever colour you'd prefer:
  62.  
  63. "name": "Agent47_Gloves_Driving",
  64. "factory": "008897FB54E3DB82",
  65. "blueprint": "00F716010CB776C3",
  66. "properties": {
  67. "Diffuse_Color_01_Value": {
  68. "type": "SColorRGB",
  69. "value": "#ffffff"
  70. },
  71. "Texture2D_03": {
  72. "type": "ZRuntimeResourceID",
  73. "value": {
  74. "resource": "[assembly:/_pro/characters/assets/hero/agent47/textures/agent47_gloves.texture?/specular_b.tex](ascolormap).pc_tex",
  75. "flag": "5F"
  76. }
  77. },
  78. "ConstantVector1D_01_Value": {
  79. "type": "float32",
  80. "value": 20
  81. }
  82. }
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement