-
October 15th, 2022, 01:12 #11
- Join Date
- Mar 2020
- Location
- Sydney, Australia
- Posts
- 247
Excellent ... I will give that a go and see if it handles what I want.
Once again, thank you for your guidance ... documentation would be updated when you release the new API versions?Thanks In Advance,
D
-
October 15th, 2022, 01:14 #12
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
It will be updated after the release over time, as I have time.
Regards,
JPG
-
October 15th, 2022, 01:21 #13
- Join Date
- Mar 2020
- Location
- Sydney, Australia
- Posts
- 247
You need a co-coder who looks over your shoulder writing the documentation as you write the code
Thanks In Advance,
D
-
October 15th, 2022, 08:25 #14
- Join Date
- Mar 2020
- Location
- Sydney, Australia
- Posts
- 247
Sorry to bother again ... however addEventHandler is throwing the error: attempt to call field 'addEventHandler' a nil field.
Thanks In Advance,
D
-
October 15th, 2022, 18:30 #15
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
This only works in v4.3 which is in the beta Test channel.
If you want to get it working in v4.2.x right now, you'll have to follow the original code I gave you:
https://www.fantasygrounds.com/forum...l=1#post665271
Regards,
JPG
-
October 16th, 2022, 00:59 #16
- Join Date
- Mar 2020
- Location
- Sydney, Australia
- Posts
- 247
Yes, I assumed it was the Test server, however it was not working on my Mac yesterday ... turns out that FGU requires a reboot of the machine when the server is changed.
So I joined the Test channel, updated, then ran the code and it finds the function now ... great ... however now it is claiming that
attempt to call field 'getDatabaseNode' is a nil value now
Has the DB code changed as well?
Is there a resource I can use where you list things that you are testing and changing in a quick summary way?Thanks In Advance,
D
-
October 16th, 2022, 02:06 #17
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
The changes are all in the beta test channel notes in the Laboratory forum.
However, nothing has changed for getDatabaseNode function. So, I'd have to see your code to give any input on what might be happening.
Regards,
JPG
-
October 16th, 2022, 02:11 #18
- Join Date
- Mar 2020
- Location
- Sydney, Australia
- Posts
- 247
Unfortunately the error comes from another Extension by somebody else (WindowSaverX2).
I have simply disabled it and have been happy testing the addEventHandler.
The funny thing is that sometime ago when I was able to store/chain overrides I had essentially written my own Event Handler which can chain callbacks based on event type (currently based on connections/disconnections).
addEventHandler has simplified the code since I do not have to check the previous version for existence and then execute it in the order a user can set for when its execution occurs.Thanks In Advance,
D
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks