5E Product Walkthrough Playlist
  1. #1

    Join Date
    Apr 2007
    Location
    Mississippi, USA
    Posts
    1,096

    Attempt to call 'onTokenDelete' (a nil value) error

    4e rule set

    Every time I delete a token I get the following error:

    Code:
    Script Error: [string "scripts/manager_token.lua"]:97: attempt to call field 'onTokenDelete' (a nil value)
    Script Error: [string "scripts/manager_token.lua"]:97: attempt to call field 'onTokenDelete' (a nil value)
    Script Error: [string "scripts/manager_token.lua"]:97: attempt to call field 'onTokenDelete' (a nil value)
    Script Error: [string "scripts/manager_token.lua"]:97: attempt to call field 'onTokenDelete' (a nil value)
    Script Error: [string "scripts/manager_token.lua"]:97: attempt to call field 'onTokenDelete' (a nil value)
    Script Error: [string "scripts/manager_token.lua"]:97: attempt to call field 'onTokenDelete' (a nil value)
    Script Error: [string "scripts/manager_token.lua"]:97: attempt to call field 'onTokenDelete' (a nil value)
    Firstly I'd like to report the error, and secondly I'd like to know if there is a setting somewhere to suppress errors. This problem doesn't interfere with game play or anything at all. I'd just like to not see it every time I delete a monster.

    Next I get the following error whenever I create an encounter and drag the tokens to the map:

    Code:
    Script Error: [string "battle_npcmaplink:token"]:1: attempt to call field 'getNPCSpaceReach' (a nil value)
    Is there anything I can do to fix or suppress that error?

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,688
    Blog Entries
    1
    what extensions have you got loaded?
    does it do this in a new 4e campaign?
    remove all tokens from the combat tracker and restart. Does it still happen?

  3. #3

    Join Date
    Apr 2007
    Location
    Mississippi, USA
    Posts
    1,096
    Quote Originally Posted by damned View Post
    what extensions have you got loaded?
    I've got advanced images, dungeon background, shop and I think that's it.

    does it do this in a new 4e campaign?
    Yes.

    remove all tokens from the combat tracker and restart. Does it still happen?
    Yes. It happens on a new campaign which means I have nothing loaded.

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,420
    Quote Originally Posted by lokiare1 View Post
    Yes. It happens on a new campaign which means I have nothing loaded.
    You have no extensions loaded when you try it in a new campaign?

    The error your seeing sounds like you're running an old version of the enhanced images extension - please update to the latest and retest.

    Most extensions use copies of sections of code from a FG ruleset. This means that when FG updates to a new ruleset, older extensions can be broken/break some functions in FG and need to be updated to use the most recent FG ruleset code.

    The golden rule when getting script errors like these is:
    • Check if you have any extensions enabled. If you do, try to recreate the issue in a brand new campaign with no extensions enabled. This will help to identify if the issue is in the base ruleset or might be caused by an extension or campaign data. If the issue occurs within the base ruleset (a new campaign with no extensions loaded) then post in the House of Healing forum with details of the issue (like you have here).
    • If you do have extensions enabled for your campaign, check the relevant extension development pages to see if there is an updated extension and use that.
    • If, after updating your extensions, the error still occurs remove each extensions one-by-one and restest. This will help to identify which extension is causing the issue. If you identify an extension that is causing an issue and there is no updated extension, let the extension developer know - there will usually be a forum thread for the specific extension.
    • If, after removing all extensions the issue still occurs (and it doesn't occur in a brand new campaign for the same ruleset) then post in the House of Healing thread saying that the issue just occurs for a specific campaign - be prepared to provide your campaign files for further debugging.

    The above process is especially important after a FG version update.

    I'd suggest you check the extensions pages for all of the extensions you use and see if there is a version updated to FG 3.0.7.
    Last edited by Trenloe; August 29th, 2014 at 20:02.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  5. #5

    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    7,410
    If you can identify which extension is creating the problem please let the extension creator know if you find there is not an update.

  6. #6

    Join Date
    Apr 2007
    Location
    Mississippi, USA
    Posts
    1,096
    Where can I find the most recent version of enhanced images?

  7. #7

    Join Date
    Mar 2006
    Location
    Arkansas
    Posts
    7,410
    Its listed in the list of CoreRPG extensions which is a sticky. The actual thread is: https://www.fantasygrounds.com/forum...-on-CoreRPG%29

  8. #8

    Join Date
    Apr 2007
    Location
    Mississippi, USA
    Posts
    1,096
    Updating the enhanced images extension removed the errors.

    I was under the impression that it would update automatically with fantasy grounds, apparently I was wrong.

  9. #9

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
  •  
Starfinder Playlist

Log in

Log in