1. #1

    Library error: "bad argument #-1 to 'getModuleInfo' (string expected, got nil)


    When opening a Savage Worlds campaign I have, it has started producing the following error in the console when I open up the library:

    Script Error: (string "library_booklistentry"):1: bad argument #-1 to 'getModuleInfo' (string expected, got nil)

    Image of the error and interface here:

    As can be seen by the screenshot, the area is selectable where a module image should be, but doing so displays nothing.

    There are no modules loaded in the campaign when this screenshot is taken, and the error was not always there.

    I seem to recall having experienced a similar error in one of my D&D 5E campaigns at some point and managed to fix it by removing some database entries.

    So I had a look through all the xml files that came with the campaign, but was unable to locate the position where the loaded library files were shown, and for the life of me I can't remember exactly what I did last time in the different gaming system.

    Does anyone know how I can fix this? It's in a module creating campaign with thousands of lines of entries and hundreds of linked images at this point, so scrapping it and setting up a new campaign is going to be a less than favorable solution. Probably doable by copying lines from the db.xml file over, but that is likely to take a long time and be error prone.

    Last edited by Styrmir; August 23rd, 2019 at 03:44.
    Ultimate License holder, enables Demo Players to join my games for free.

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Denver, Colorado, USA (for a bit)
    - Close FG down.
    - Go to the campaign directory.
    - delete modulestate.xml - or rename it to modulestate.xml.old if you don't like deleting stuff.
    - Start FG and load up your campaign.

    FG Product Development status: Pathfinder Playtest Ruleset and add-ons: In development. Pathfinder Bestiary, Pathfinder Bestiary 2, Pathfinder Bestiary 3 (in store).

    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!

  3. #3
    Ikael's Avatar
    Join Date
    Jan 2008
    It seems you have been using SWEL extension to create module into your campaign. Then you have disabled the extension which is causing that issue. The fix is to enable the extension and remove that module. You can of course first export it if you need to use it.
    "Alright, you primitive screwheads, listen up: THIS... is my BOOMSTICK!" -- Ash Williams, Army of Darkness

    Post your SavageWorlds ruleset feature requests and issue reports here!

    Enhance your core Savage Worlds ruleset with SW Enhancement Extensions, get more to savage!
    Want to create SW NPCs quickly? Use SW NPC Maker extension!
    Want to prove your dices are cursed or blessed? Try out SW Roll Statistics

  4. #4
    Thanks guys!

    Good suggestion Trenloe, I think that's what I did when this happened to my 5E campaign. I deleted the file and disabled all extensions, but didn't work this time around, the error remained.

    I wouldn't have thought of that Ikael, but you were spot on! Enabling the "Enhanced Library" extension caused this empty module to appear (see screenshot).

    2019-08-23 (1).png

    I was able to remove it normally after that. Afterwards I restarted with the other extensions enabled again and the error no longer appears.
    Ultimate License holder, enables Demo Players to join my games for free.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Log in

Log in