Link a portrait to a new sprite?

Discuss coding questions, pull requests, and implementation details.
Post Reply
Letho
Posts: 8
Joined: Sat Nov 30, 2024 6:47 pm

Link a portrait to a new sprite?

Post by Letho »

Hi,

I dumped a json block file to replace a vanilla sprite to try and make this Brisienna unique:
Image

Leaving her the 182 27 spot to herself hopefully, and made this one 513 0 for testing:
Image

Looks too detailled for a random npc but I will worry about that later, for now the problem is that she doesn't have a
portrait anymore, and I have no idea where to link one to the new sprite then?

Edit: I found relevant pieces of code in TalkManager.cs, Flatsfile.cs, however I am unsure how to proceed from there, it gave
me new ideas to try at least, we will see.

Letho
Posts: 8
Joined: Sat Nov 30, 2024 6:47 pm

Re: Link a portrait to a new sprite?

Post by Letho »

Well that's a epic pursuit that just ended in the failed attempts folders. I didn't want to install the unity editor but I ended
up doing so this week-end for other attempts which I think will be more successful but that one, either giving a new flat
id to individual NPC which hopefully would still find their portraits through cs script and such just doesn't take.

Maybe it's doable, must be but I have no interest in learning unity particular quirks of scripting beyond this and I did it too many times on other projects to not know that by the time I am through with the hard part, I will have one more once
fun mod in my collection of abandoned mods because they were no longer fun to work on.

I did learn how to do other things I didn't plan to do while doing this so it's not a wash, and the unique NPC lacking a
missing flat, well that's a minor thing after all.

Post Reply