This mod replaces the RPGmaker-like PCCs with ones that have a single pose, to resemble NPCs more.
Currently the mod features only one shape, but more can be added with the lua API or minimal coding.
Body shapes can have a variety of ‘Slots’, these can range from hairstyles, ears, tails to faces and horns. Anything really.
No C# code is required to add new shapes, add slots to existing shapes or modify shape textures.
//////////////
For modders:
in your mod’s init.lua: (example girl shape script used for demonstration)
— Create a new spcc body and register it — name x and y texture size local girl = NewSPCC("girl", 128, 128) girl.Scale = .65 — overall scale girl.Center = { .45, .15 } — percentual offset girl.HoldSlot = { -.01, .05 } — offset from middle where tools are shown — Add slots — name color fg z layer — | | | bg z layer girl.AddSlot("body", SPCCColor.Free, 0);– | girl.AddSlot("face", SPCCColor.None, 6);– | girl.AddSlot("hair", SPCCColor.Hair, .1);–| girl.AddSlot("ear", SPCCColor.Hair, 20, -.2); girl.AddSlot("tail", SPCCColor.Hair, -20, -20); — color explanation: — SPCCColor.None = slot is not colorable — SPCCColor.Hair = slot color follows pcc hair color — SPCCColor.Free = freely choose color — Load textures for shape. — When called from a mod’s .init, it automatically adds the mod’s path LoadSPCCResources(girl, "assets/girl")
loaded textures can be overridden by loading images with the same name afterward:
local existingshape = SPCCUtils.Shapes["shapename"] — any slot elements with the same name will be overridden — elements with new names will be added LoadSPCCResources(existingshape, "path/to/textures")
Todo:
– Add a male example body shape
Anything unclear? Please open a discussion on this mod’s page and let me know!