-
January 2nd, 2023, 07:51 #51
- Join Date
- Dec 2022
- Posts
- 4
Hi there. Extension doesn't seem to be working with the Mongoose Traveller 2nd Edition ruleset. It looks like it create the temp image fine (in the campaign portraits folder I see a dummy_portrait_reference-npcdata-name-module, which if I add a .png extension I can view in an image editor), but no image shows in the chat window. I notice without the extension loaded, I get the Imperial Sunburst.
Running on FGU Ultimate 4.3.2, Windows 11. New user to FG, long time Software Developer. Lua is not my strongest language. Let me know if you need any other info.
-
February 19th, 2023, 19:27 #52
Hello, forgive me for not being able to work this out myself; if I, as GM, talk in the chat as an NPC, will it show the PC's the portrait then?
Update: Ignore me. Wasn't working before because I was an idiot, but it works now!Last edited by WinterSoldier7; February 19th, 2023 at 19:57.
-
February 20th, 2023, 03:46 #53
Thanks for this is awesome.
-
March 29th, 2023, 17:24 #54
Hey Brian, thanks for your helpful reply! Can't believe it took me almost a year to see it. Unfortunately, I've no idea where to go to input that piece of code... Don't suppose you can help again?
And if the extension author is watching, would be superb if you could incorporate this function into the default extension...
-
March 29th, 2023, 20:13 #55
- Join Date
- Jul 2010
- Posts
- 36
I also completely missed the report of issues with the languages. I had my third baby around that time and moved internationally a few months after. Sorry about that, the fix is actually super easy and only took a few minutes. It is up on the Forge or available here if you prefer.
I verified in 5e and SWD that it is working. Obviously I can't test every ruleset, but the language functionality is CoreRPG functionality, so what fixes one should fix most.
Since there was some discussion about about how to fix in code, I like to keep things as simple as possible, so I just changed this:
Code:function onDesktopInit() if User.isLocal() or User.isHost() then ChatManager.registerDeliverMessageCallback(insertNpcPortraits)
Code:function onDesktopInit() if User.isLocal() or User.isHost() then ChatManager.unregisterDeliverMessageCallback(LanguageManager.onChatDeliverMessage); ChatManager.registerDeliverMessageCallback(insertNpcPortraits) ChatManager.registerDeliverMessageCallback(LanguageManager.onChatDeliverMessage);
Last edited by sirnoobsauce; March 29th, 2023 at 20:17. Reason: Updating after adding to Forge
-
March 29th, 2023, 20:36 #56
-
December 2nd, 2023, 05:12 #57
Thank you for this EXT, I wanted to report after the last update I'm getting this error from this EXT loaded.
[ERROR] Handler error: [string "NPC_Portraits:scripts/npc_manager.lua"]:18: attempt to call field 'isLocal' (a nil value)
-
December 2nd, 2023, 17:08 #58
Looks like all isLocal stuff got removed and you have to use Session.IsHost drop thru instead.
I noticed using this that some NPCs tokens work and some do not.Got a Bug - Click & FOLLOW the procedure here, it will save time
Ultimate Edition Fantasy Grounds - ONLY ON Linux
Twitch Channel
-
December 2nd, 2023, 20:33 #59
- Join Date
- Jul 2010
- Posts
- 36
-
December 2nd, 2023, 21:55 #60
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks