DICE PACKS BUNDLE
Page 1 of 2 12 Last
  1. #1

    script error with custom skin

    .
    hi.

    i am getting this error message:

    Script Error: [string ""]:1: attempt to set a value for an invalid handler 'onLockChanged'

    no idea what it is -- is it something i can fix? thx
    -----
    roll dice. it builds character.

  2. #2
    There is somewhere in the script for your custom skin where a script is defining something like "onLockChanged = ...". Since onLockChanged is not a handler-type event, it can't be assigned that way. onLockChanged is just a custom function that is called by the button_record_locked template from CoreRPG.

    Also, most themes should not need to trigger any changes on the lock changing, so not sure why it's even needed for a custom skin.

    Ultimately, you will have to reach out to the person who made the skin to fix the error.

    Regards,
    JPG

  3. #3
    .
    haha thx for the response -- i have no idea what you said in your explanation {:-(

    i made the skin myself, and all i did was changed graphics and fonts (see here), which i updated the graphics_fonts.xml file. that's it. i don't know enough and did not touch any script.

    it was actually working for a long while, then only recently that error message propped up. i'm thinking maybe something eventually conflicted with fg updates? i dunno know.
    -----
    roll dice. it builds character.

  4. #4
    Mortar's Avatar
    Join Date
    May 2014
    Location
    New Brunswick, Canada
    Posts
    1,127
    Blog Entries
    18
    Run a search on all the files in your extension for "onLockChanged" and see what turns up.
    Ultimate License Holder

  5. #5
    .
    all right, @mortal... thx. will try to find that pin in the haystack lol
    -----
    roll dice. it builds character.

  6. #6
    .
    ok, i'm back. wasn't as hard to find as i imagined.

    the result came back with stuff that's pretty cryptic for me... could someone check out the screengrab attached and shed some light? thx

    Screenshot_2.png
    -----
    roll dice. it builds character.

  7. #7
    Unless you have customized the CoreRPG/3.5E rulesets; you should not have unpacked folders in your rulesets directory. Those will actually override the default updated rulesets, which will eventually cause issues.

    The first thing I would do is to delete or move the subfolders (CoreRPG/3.5E) within the FG data rulesets folder. If you haven't made any modifications, you can just delete the ruleset folder; then the CoreRPG.pak and 3.5E.pak files updated by the updater will take over.

    Once you do that, you can see if you still get the error.

    If you do, please upload the extension (.ext) to your next post.

    Regards,
    JPG

  8. #8
    .
    thx @moon -- that actually made sense, and pointed me to where i need to go.

    (yea, i do have the stuff unpacked and in same directory, as you described, so i can edit the graphics. i think what you're saying is, ultimately the final step is to repack and remove the unpacked stuff from directory; then the problem might go away once i let fg update).
    -----
    roll dice. it builds character.

  9. #9
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,272
    Blog Entries
    9
    Turn your changes into an extension with a different name. Otherwise your unpacked ruleset will never get updates and if you repack to the same name it will get lost when you upate.

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  10. #10
    .
    thx, everyone, for the guidance and tips.

    worked as expected and no more script error message.
    -----
    roll dice. it builds character.

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