Starbound

Starbound

59 beoordelingen
Portrait restorer - Consistently displays NPC portraits
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Bestandsgrootte
Geplaatst op
Bijgewerkt op
356.247 KB
19 sep 2016 om 10:55
14 jun 2019 om 10:05
3 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Portrait restorer - Consistently displays NPC portraits

Omschrijving
Now compatible with Starbound 1.4!

Through some programming oddity, the portrait of an NPC isn't displayed in the sayToEntity function of dialog.lua.

This mod fixes that. The implication is that you can give your mod's tenants a portrait, by messing with their .npctype file:

"scriptConfig" : {
"chatPortrait" : "/interface/chatbubbles/PUTPORTRAITHERE.png:<frame>",
...

If the chatPortrait line isn't there, the speech bubble will just be normal, small, portrait-less, as it is in vanilla.
Special thanks to Kawa for figuring this out, uploaded with his permission.
27 opmerkingen
small avali 15 okt 2020 om 22:07 
Breaks the avian priest's portrait. (I forget his name)
VOSA 14 jul 2019 om 6:27 
After a few days testing my codes.I find that it is the "behavior" that determine whether npcs display their chatPortrait in chatbubble.
For example,npc will show the portrait by the code:

/spawnnpc human tutorial 1 1 '{"scriptConfig" : {"behavior" : "tutorial","chatPortrait" : "/interface/chatbubbles/grandprotector.png:talk.<frame>"}}

whereas won't show the portrait by the code:

/spawnnpc human tutorial 1 1 '{"scriptConfig" : {"behavior" : "villager","chatPortrait" : "/interface/chatbubbles/grandprotector.png:talk.<frame>"}}

The only difference is behavior.I found that behavior of "tutorial" and "base" allow npcs display their chatPortrait and others don't allow. Nuru,Baron,Koichi and Lana do not show their chatPortrait in outpost because their behavior turned into ""villager" in outpost rather than "base" in their mission.
I hope that will be helpful.
Un petit chou-fleur  [auteur] 12 jul 2019 om 11:18 
@1941302614: Can you post a link to the whole .npctype file, by putting it on pastebin? I may be able to pinpoint the problem.
VOSA 11 jul 2019 om 7:11 
Why the NPCs I spawned with codes" "scriptConfig" : {
"chatPortrait" : "/interface/chatbubbles/<portrait>.png:<frame>"} " do not display portraits when they talking please?Is this related to the code "behavior'?
I found that it is the npcs who have chatPortrait inherent in game,such as Koichi and Baron, that can code and display their chatPortrait. Other npcs,without chatPortrait in the intact game,will not have chatPortrait even though I code their chatPortrait.
Looking forward your receive,thank you very much!
shardinhand 1 apr 2019 om 21:39 
ok much reasons to like dis, gud work meng!
Un petit chou-fleur  [auteur] 28 dec 2018 om 1:55 
Oh, and obviously, it only works if the NPC you're talking to actually has a portrait, so a custom NPC programmed with this mod in mind. It won't work with Starbound's standard NPCs!
Un petit chou-fleur  [auteur] 28 dec 2018 om 1:53 
It only modifies dialog.lua, so it's incompatible with anything else that alters dialog.lua. I don't know any mods that do that, so your guess is as good as mine.
Lemon Drops 27 dec 2018 om 12:03 
this doesn't seem to work for me. any incompatible mods you know of?

Monolith 21 aug 2018 om 3:11 
Tenant responds: Is... this something other than a hole in the ground? ;)

(Couldn't help meself, sorry!)
warmainiac 7 mei 2017 om 15:01 
The inkling race mod affects diolog for florans