local character sdk.hook(sdk.find_type_definition("app.GuiManager"):get_method("reqTalkInteract(via.GameObject, System.Single)"), function (args) log.info("TEST1") local obj = sdk.to_managed_object(args[3]) character = obj:call("getComponent(System.Type)", CharacterType) end, function(ret) log.info("TEST2") return ret end )
Problem seems to come from method reqTalkInteract, used to find character name. This method is never called by the game (TEST1/TEST2 don't show in logs). Something must have changed, but I have no idea how to find the right method now.
Related, the mod showing a person's name despite you not having met them leads to minor spoilers at the masquerade; you're not supposed to know who someone is but the mod tells you. It'd be nicer if the name remained ??? for unknown characters.
I also wanted to ask if this would be possible. In the vanilla game, this effect appears when reviving dead NPCs who you have not met with a wakestone. The prompt appears as ??? instead of their name. If this behavior could be replicated with the hail prompt by this mod, it would allow you to keep track of which NPCs you've already met to fill out your NPC history and also prevent you from talking to the same NPCs over and over again just to make sure you didn't miss them when you get to a new town (as I do).
1.1 seems to show the normal Hail for "static" merchants (the three in Vernworth square are the ones I saw). I'm supposing that's a side effect of the changes you made to fix non-NPCs, and I'll definitely take it over the 1.0 bug, at any rate.
30 comments
v1.1:
Fix oxcart and other non-NPC interact name.
v1.1-favorprefix:
Same as v1.1, but add an asterisk (*) before NPC name if he/she is your favorite in your "History > NPC Logbook".
Show Name v2
local character
sdk.hook(sdk.find_type_definition("app.GuiManager"):get_method("reqTalkInteract(via.GameObject, System.Single)"),
function (args)
log.info("TEST1")
local obj = sdk.to_managed_object(args[3])
character = obj:call("getComponent(System.Type)", CharacterType)
end, function(ret)
log.info("TEST2")
return ret
end
)
Problem seems to come from method reqTalkInteract, used to find character name. This method is never called by the game (TEST1/TEST2 don't show in logs).
Something must have changed, but I have no idea how to find the right method now.
Related, the mod showing a person's name despite you not having met them leads to minor spoilers at the masquerade; you're not supposed to know who someone is but the mod tells you. It'd be nicer if the name remained ??? for unknown characters.
(Very good mod though.)
I'm supposing that's a side effect of the changes you made to fix non-NPCs, and I'll definitely take it over the 1.0 bug, at any rate.