Starfinder Playlist
  1. #1

    Add Button Error

    I set up an 'add' button on one of my inventory lists, and it does add a blank item, however it also throws an error:
    [ERROR] Script execution error: [string "common/scripts/list_text.lua"]:46: attempt to index field '?' (a nil value)

    This seems to be an issue with where focus is established, but I can't, for the life of me figure out where the actual problem lies...
    It does add the item just fine, so I'm not sure what the problem is or where to look...

  2. #2
    I believe it wants to add focus with that lua script for a 'name' control. You might need to setup a new template to use and change the code to the proper focus.
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  3. #3
    You can also set a newfocus tag on the button definition to specify the alternate control name to accept focus. (Ex: <newfocus>label</newfocus>)

    Regards,
    JPG

  4. #4
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    Under General >> Custom Properties and a new one
    Property Name newfocus
    Property Value name of control that you want focus on

  5. #5
    Quote Originally Posted by damned View Post
    Under General >> Custom Properties and a new one
    Property Name newfocus
    Property Value name of control that you want focus on
    Is that placed on the button or the item to receive focus?

  6. #6
    Quote Originally Posted by damned View Post
    Under General >> Custom Properties and a new one
    Property Name newfocus
    Property Value name of control that you want focus on
    Ah, I had done that on the windowlist, but I misspelled focus...

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 Character Create Playlist

Log in

Log in