Thread: Better Menus (CoreRPG, 5E/etc)
-
December 14th, 2022, 17:01 #271---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
December 14th, 2022, 17:08 #272
-
December 14th, 2022, 17:46 #273---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
December 16th, 2022, 01:34 #274
- Join Date
- Mar 2012
- Posts
- 93
Hey Celestian, sent you a message the other day about my extension not working with yours. Have you had a chance to look at that? Thanks.
-
December 17th, 2022, 03:11 #275---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
December 17th, 2022, 04:21 #276
- Join Date
- Mar 2012
- Posts
- 93
When you are logged in you should see a little envelope symbol click on that and you can see direct messages. If for some reason you can't i'll post it here as well.
-
December 17th, 2022, 06:56 #277---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
December 17th, 2022, 12:18 #278
- Join Date
- Mar 2012
- Posts
- 93
Hi Celestian. A user has identified an issue where my extension is generating an error when running your extension.
I've narrowed it down to how the window is being called from the menu. In particular if we call the extension from your improved menu it will open and appear to run but generates errors. e.g. it's not getting a value back from an Interface.findWindow() call.
If I open my extension via the /openwindow command from the command line it seems to work fine.
Thoughts? The only thing I can think of is perhaps the data source is empty?
I've included how i'm initializing things and the declarative for the xml. Thanks.
function onInit()
local tButton =
{
sIcon = "button_CRND",
tooltipres = "sidebar_tooltip_CRND",
class = "CeleRNDWindow",
};
DesktopManager.registerSidebarStackButton(tButton, false);
DB.createNode("RNPC").setPublic(true);
Debug.console("DB created")
end
<?xml version="1.0" encoding="iso-8859-1"?>
<root>
<windowclass name="CeleRNDWindow">
-----
So a console command of /openwindow CeleRNDWindow and the extension works as built, called from your better menu errors.
-
December 19th, 2022, 07:55 #279
If you're adding sidebar menus like the standard ones it should work fine. If not perhaps instead of having a undefined datasource set it as ''. FGU has in the past not liked that in some cases tho I dont know about in this case. All I can say is it should work if the sidebar is configured like the standard ones are. If you can't resolve it with that then post the console log and I might can see whats going on.
---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
December 23rd, 2022, 14:12 #280
- Join Date
- Mar 2012
- Posts
- 93
I don't know if I can grab images from someone else so i'll link the post where she put it.
https://www.fantasygrounds.com/forum...-Generator-PF1
Post #6, she has included images showing the errors.
So from my investigation what is happening is when you click on the menu button, with your extension, it creates the window. But when you go to do anything when I do a findWindow it is returning nil. If we open the window using the /openwindow it works fine.
So it has to be the window instantiation from the menu buttons is where the issue is. I'm not strong enough in LUA/XML foo to really understand why it's not creating correctly, if it's something on my end I need to do differently or if it's something odd from yours. Any help is appreciated.Last edited by celebrindal; December 23rd, 2022 at 14:14.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks