Starbound

Starbound

59 个评价
Portrait restorer - Consistently displays NPC portraits
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
356.247 KB
2016 年 9 月 19 日 上午 10:55
2019 年 6 月 14 日 上午 10:05
3 项改动说明 ( 查看 )

订阅以下载
Portrait restorer - Consistently displays NPC portraits

描述
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 条留言
small avali 2020 年 10 月 15 日 下午 10:07 
Breaks the avian priest's portrait. (I forget his name)
VOSA 2019 年 7 月 14 日 上午 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  [作者] 2019 年 7 月 12 日 上午 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 2019 年 7 月 11 日 上午 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 2019 年 4 月 1 日 下午 9:39 
ok much reasons to like dis, gud work meng!
Un petit chou-fleur  [作者] 2018 年 12 月 28 日 上午 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  [作者] 2018 年 12 月 28 日 上午 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 2018 年 12 月 27 日 下午 12:03 
this doesn't seem to work for me. any incompatible mods you know of?

Monolith 2018 年 8 月 21 日 上午 3:11 
Tenant responds: Is... this something other than a hole in the ground? ;)

(Couldn't help meself, sorry!)
warmainiac 2017 年 5 月 7 日 下午 3:01 
The inkling race mod affects diolog for florans