DICE PACKS BUNDLE
Page 2 of 2 First 12
  1. #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

  2. #12
    It will be updated after the release over time, as I have time.

    Regards,
    JPG

  3. #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

  4. #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

  5. #15
    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

  6. #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

  7. #17
    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

  8. #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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Product Walkthrough Playlist

Log in

Log in