Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

RPG Farming Kit

Project template to make farming RPG games. · By Lowscope

[Help] Adding New Cosmetics

A topic by JosephC created Jul 11, 2018 Views: 192 Replies: 2
Viewing posts 1 to 2

When creating new items like hair, pants, shirts, etc... The character customization panel lets me cycle to the new item, but once I reach that item the visualization of the character is stuck on the new item.

For example, I added blue pants to the game. I duplicated the original pant scriptable object, and I went in under the character customization object in the start menu scene and added the new pants to the Selection Tab script for the "selection Tab Legs." This 'works'. you are able to select the new pants when you create a new character, but once you select them, pressing the '+' or '-' button to switch to the other legs doesn't work. The text changes but the visualization doesn't change. BUT. if you start the game, it will make the player keep whatever pants the text says. I'v attached a gif of what is happening to me and what I'm describing. 

Video of what's goin on


Hello JoeTheHunter,

I'm currently on holiday till the 14th, but I'll help you with this.

Have you set the data within the Body Sprite Setter as well?
I've attempted to replicate your issue, but it is working as intended on this side.

Are you sure all data is set correctly? Such as the sprites. Note that it is important that all sprite names should stay the same when creating new textures. (I've created a tool for this to make this less tedious, scroll down)

Sorry that this isn't documented but there is an easy tool available within the package to slice up and create new data files.
Only thing you would have to do is duplicate the pants image and go to:
Assets -> ScriptableObjects -> Character -> Generator -> Character Part Generator.asset

This will automatically slice up the texture for you, just ensure it has the same dimensions as the other pants images. It will also ensure proper naming. This will save a lot of time for you. The processed image will be placed at the same location as the Character Part Generator.

Ah, I had no idea you had those tools for the sprites, that does help a lot. And using them has fixed the issue. It seems duplicating a current cosmetic and swapping the sprites isn't sufficient, I believe it has something to do with what you said about the naming. Either way, using the tool to slice the sprites and create the scriptable object has fixed the issue and everything works great. Thank you for messaging back even on your holiday time. Take it easy!