Jump to content

problem with SWAP_ICON (modded character head skins)


Recommended Posts

When you press the "i" key ingame and inspect yourself as a modded character, there will be no head icon and the item name will be called "Thingamabob".

Is there any way to fix this?

i'd like to provide as much context as possible so this is the code i have in my character's character_none.lua file

local assets =
{
    Asset( "ANIM", "anim/suu.zip" ),
    Asset( "ANIM", "anim/ghost_suu_build.zip" ),
}

local skins =
{
    normal_skin = "suu",
    ghost_skin = "ghost_suu_build",
}

return CreatePrefabSkin("suu_none",
{
    base_prefab = "suu",
    type = "base",
    assets = assets,
    skins = skins, 
    skin_tags = {"SUU", "CHARACTER", "BASE"},
    build_name = "suu",
    rarity = "Common",
})

suu_none.lua

how the icon is supposed to look like

SWAP_ICON-0.png.78241f00859da3d961db66bdfea29f4d.png

and what it actually looks like ingame

20190328204707_1.jpg.1d4f7b0eaa37d014256ddd9b1141e9bf.jpg

any help would be appreciated

Link to comment
Share on other sites

Good to know I'm not the only one who has this problem.

Change build_name to build_name_override to fix the missing head icon.

As for the thingamabob thing, put this in your modmain.lua file

GLOBAL.STRINGS.SKIN_NAMES.suu_none = "Suu"

I've also encountered another problem with modded characters where they do not use the correct big portrait in the inspection screen and the character selection screen (basically, they use the old big portrait from the old character selection screen before the Forge update).

Proof:

Spoiler

fix_it.png

Basically, it can be fixed by changing the old big portrait file with the new big portrait file but I honestly believe this is something that should be fixed by Klei (even if things are fine on their end).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...