Wayward
Wayward Mods
Make a new creature! Make a new item! Make a troposphere! Your imagination is the only limit with Wayward Mods on Steam Workshop.
了解更多
Slayerjerman 9 2020 年 9 月 15 日 下午 9:52
How to replace sprite artwork in Wayward - the short, easy and simple way.
Here's the quick, dirty and simple way to replace sprite art without any hard code or strange tools to extract the original game assets. Although I would advise that you do follow the developer's instructions as the original assets are useful!

I am using Windows 10 and Notepad++ for the JSON (text) files. For sprites, I use Photoshop CC 2019, but anything will work if it can save PNG format.

1. First lets make a shortcut to the Wayward folder inside Steam. We'll want this for easy access to the mod folders. I just go to where Wayward is installed inside of Steam... \Steam\steamapps\common\Wayward\

2. Inside the "Wayward" folder, you should see a folder called "mods". If not, create this folder now.

3. Go inside the "mods" folder. Next create a new folder with the name of your mod. For this example, I name my folder "MyTestMod".

4. Inside of "MyTestMod", we need an asset folder. Create one now and name it "static".

5. Inside of "static" create another folder named "image". Obviously this is where our images will go.

6. Now, if you had extracted the original assets, you'd have several folders here. Let's focus on just replacing the character and terrain tiles for now... Create two new folders, name them "character" and "terrain".

7. The easiest way to add more characters is by adding new "hairstyles". Currently as of 2.9.5-beta, Wayward only allows for a single body sprite, so it's better to make hairstyles that cover over the entire default body sprite. Create another folder called "hairstyle" here.

8. Making a HAIRSTYLE SPRITE
8a. Make a new PNG file (this will be our "sprite sheet") (in whatever paint program you use). Make it 384px long by 72px tall.
8b. Next, you will want to divide it into 3 rows, each row should be 24px tall.
8c. Next, make columns, you will need 16 columns. This is for the 8 walking sprites and 8 swiming sprites.
8e. When making the sprite art, you will need to make animations, which are two-frames per direction.

These are ordered in the PNG in this order: Walk-left1, Walk-left2, Walk-up1, Walk-up2, Walk-down1, Walk-down2, Walk- right1, Walk-right2. Followed by Swim-left1, Swim-left2, Swim-up1, Swim-up2, Swim-down1, Swim-down2, Swim-right1, Swim- right2

8e. Only use the 3rd row of this sprite sheet. The first and second rows should be blank unless you want your character to turn colors from the hair color choices.

9. Save your sprite as a 16-bit PNG (with transparency). Save it inside of your \static\image\character\hairstyle\ folder. Name it something temporary like "MyCharacter.png" for now...

10. Next, we're going to just REPLACE an existing hairstyle. Let's replace the "afro". Make a copy of your sprite, and rename the copy to "afro.png". Be sure that this is inside of \static\image\character\hairstyle\ folder!

11. OK lets tell the game with some very basic code we want to use this to replace the afro. Go back to your "MyTestMod" folder where you created the "static" folder from step 5.

12. Using Notepad, right-click and create-->new-->text document inside of "MyTestMod". Rename this to "mod.json". Then open this blank file with Notepad.

13. The code you want to use is:
引用自 code
{
"name": "MyTestMod",
"description": "Just a test mod",
"version": "1.0.0",
"author": "YourNameHere",
"imageOverrides": true,
"allowUnlockingMilestones": true,
"multiplayer": "clientside",
"tags": [
"Character"
]
}

13a. Make sure the "name" is exactly the same as your folder's name!

14. Now we need another JSON file. This time, create a blank one and name it "imageOverrides.json".

15. Open this one with notepad and we're going to tell the game to replace the vanilla afro with our afro (character).

引用自 code
[
{
"replace": "character/afro",
"animated": true
}
]

Save the JSON and that's it!

16. Load up Wayward and you should now see "MyTestMod" in the mod list. Turning it on should now replace the afro hairstyle with your character.


NOTE - To get a list of all the assets and file structures to replace more stuff, you really should extract the assets... Would be really awesome if the devs grant us permission to post the already-extracted vanilla assets or would do so themselves for us modders.
最后由 Slayerjerman 编辑于; 2020 年 9 月 15 日 下午 9:55