Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
How to change the appearance of an NPC
By ⭕⃤220 Tuhcs
This tutorial will show you how to change the appearance of any npc in your world.
   
Award
Favorite
Favorited
Unfavorite
Intro
In this guide I will show you how to edit the appearance of an NPC, using Adilson as an example.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2709317539
You will need to edit xml file, so I recommend using a source code editor like Sublime, VSCode or Notepad++.

I also highly recommend testing on a new save.
Finding the folder with your saves
  • Press Windows + R and type %appdata% and Enter.



  • Find the Stormworks folder.



  • In it, open the saves folder.



  • There will be all your Stormworks saves.



  • Choose one to edit the file.

As I mentioned at the beginning, I strongly recommend testing it on a new save before doing it on your game save.
Editing the scene.xml file
  • On the save, open the scene.xml file. You can open it with Windows Notepad, but I recommend using a source code editor.



  • In the file, press CTRL + F and write Adilson.



  • Find the NPC object.



  • Inside the object you will find a visual_data part.



  • In it will be all the visual attributes of the NPC.

Before editing anything in the file, I recommend you make a copy. If your save doesn't load anymore after editing, just replace the file with the original copy. Remember not to change the file name.
If you only change correctly inside the visual_data, your save will load normally.
Visual Attributes
On the first line of visual_data you will find the attributes is_male, upper_mesh, lower_mesh, hat_mesh, glasses_mesh, clothing_mesh and is_generated. In them, you can edit only the values inside the double quotes (" ").



  • is_male accepts only true or false values.
  • upper_mesh will change the eyebrows. "1" means your character's Eyebrows 1 and so respectively.



  • lower_mesh will change the beard. Follows the same path as upper_mesh, with "0" being none.



  • hat_mesh will change the hat. Same thing as lower_mesh.



  • glasses_mesh will change the glasses.



  • clothing_mesh will change clothes.



  • is_generated like is_male, it accepts only true or false values. If set to false, the NPC will have a random appearance.

Inside the visual_data you will find the color part. As before, you can only edit the values inside the double quotes (" "). Here you can change skin color, clothes, glasses, hats with rgb colors. Using a color picker will make it easier.




Adilson's default appearance
For those who want Adilson's default appearance, here's the code:
<visual_data is_male="true" upper_mesh="1" lower_mesh="5" hat_mesh="1" glasses_mesh="2" clothing_mesh="0" is_generated="true"> <color_skin r="246" g="187" b="147"/> <color_chest r="36" g="41" b="71"/> <color_shoulders r="36" g="41" b="71"/> <color_arms r="36" g="41" b="71"/> <color_belt r="200" g="122" b="50"/> <color_legs_upper r="200" g="122" b="50"/> <color_legs_lower r="200" g="122" b="50"/> <color_feet r="20" g="20" b="20"/> <color_mesh_hat r="200" g="122" b="50"/> <color_mesh_hair r="69" g="69" b="69"/> <color_glasses r="32" g="51" b="123"/> <color_mesh_mask r="204" g="121" b="60"/> <color_mesh_clothing g="245" b="0"/> </visual_data>

End
To save the file, just press CTRL + S. Load your save to see the differences on the NPC. If you made any changes with the save open, to see it you will have to reopen it. For the code not to change without you seeing it, I recommend closing the game without saving.

Thanks for reading :) If you have any questions or find an error, feel free to comment, I'll get back to you as soon as possible!
3 Comments
⭕⃤220 Tuhcs  [author] 29 Jul, 2024 @ 4:24pm 
You can find out the coordinates of the NPC by the transform tag on the NPC object, it will be something like this: <transform 30="-12065.239094" 31="4.053065" 32="8672.20205"/> the number 30 means the X coordinate and the number 32 the Y coordinate. In this case the NPC is at X -12065 and Y 8672. Since you didn't name the NPC, it might be harder to know what you're looking for, but you can search the xml file for time_alive and see if at the beginning of the object tag the type is 1.
Messerschmitt-Me-262 29 Jul, 2024 @ 12:16pm 
can i find NPC's i spawned with the Utility Addon? they spawn with no name and i think are spawned as a Survivor, because you can carry them and make them follow you
🅾️rder💲 19 Jul, 2023 @ 9:37am 
╱|、
(˚ˎ 。7
|、˜〵
じしˍ,)ノ
my extension