Elin
28 ratings
TSPCC — NPClike PCC with visible equipment
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
96.253 KB
Nov 8, 2024 @ 6:07am
Nov 15, 2024 @ 1:06pm
5 Change Notes ( view )

Subscribe to download
TSPCC — NPClike PCC with visible equipment

Description
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!
15 Comments
Butterlord May 5 @ 9:20pm 
Hey, any updates on this?
サムザ Dec 4, 2024 @ 2:43am 
@keko bleibt keko
Thank you for taking the time in your busy schedule to reply.
I tried to see if I can change the resident's image by using the “Change PCC” function in the resident board, but when this mod is installed, the UI when changing the resident's PCC & portrait is broken and inoperable.
keko bleibt keko  [author] Dec 2, 2024 @ 3:10am 
@サムザ
It should be possible already I believe. This mod overrides PCC rendering in general, so if another Chara is made to use PCC, this mod's rendering will be used. I've read that it is apparently possible to make residents into PCCs through one of the boards, though I will admit that I have not verified this.
In the case that it's not possible after all, or some problems occur I will of course add this! I just don't have time to test or verify this myself right now
サムザ Nov 30, 2024 @ 1:32am 
Thank you for the wonderful mod.
Is it possible for you to add a feature so that it can be used by residents and friends?
Momo Nov 16, 2024 @ 10:34am 
I love it ! can't wait to see more content by you
keko bleibt keko  [author] Nov 15, 2024 @ 1:08pm 
Update: While a save is loaded you can now change the width and height of the PCCs.
Move the profile UI and the editor to the side to see the effects of the sliders!
keko bleibt keko  [author] Nov 15, 2024 @ 7:26am 
@サムザ
That is a very good idea, I will begin work on that immediately.

Also thanks to everyone else for the nice comments!
サムザ Nov 15, 2024 @ 7:18am 
Thank you for creating a very nice mod.
Since they are very small compared to other NPCs, would you please consider adding the ability to change the size they appear in the game?
Le pp baguette De wewe Nov 13, 2024 @ 7:23am 
I love you
Butterlord Nov 10, 2024 @ 10:38am 
Wow, this mod is amazing. Have no idea how you did it but amazing how you got equipment to show so fast; best mod by far. Can't wait for more features like a male body.