Refer a Friend
  1. #1
    Sulimo's Avatar
    Join Date
    Dec 2014
    Location
    Pacific Time Zone
    Posts
    946

    Hoping for suggestion of what to change

    Some time back there was a change to RMC (forget when this started) and my custom module for Creatures of Middle-earth started throwing errors for every NPC.

    Just looking for what I need to fix.

    This module was hand-coded back before RMC was based on Core-RPG, and it was working ok for a while, but then started getting these errors when I open any of the NPCs.

    Code:
    [1/11/2026 9:22:13 AM] [ERROR]  windowcontrol: Database type mismatch on path (size) in control (size) in class (npc_main)
    [1/11/2026 9:22:13 AM] [ERROR]  windowcontrol: Database type mismatch on path (maxpace) in control (maxpace) in class (npc_main)
    [1/11/2026 9:22:13 AM] [ERROR]  windowcontrol: Database type mismatch on path (ms) in control (ms) in class (npc_main)
    [1/11/2026 9:22:13 AM] [ERROR]  windowcontrol: Database type mismatch on path (aq) in control (aq) in class (npc_main)
    [1/11/2026 9:22:13 AM] [ERROR]  windowcontrol: Database type mismatch on path (critmod) in control (critmod) in class (npc_main)
    [1/11/2026 9:22:13 AM] [ERROR]  windowcontrol: Database type mismatch on path (immunity) in control (immunity) in class (npc_main)
    [1/11/2026 9:22:13 AM] [ERROR]  Script execution error: [string "RolemasterClassic:..gn/scripts/npc_main.lua"]:29: attempt to index global 'size' (a nil value)
    Is there something I can do to quickly get things working again?

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    34,716
    All of the controls that are listed as having a type mismatch are type="string" in the current ruleset. You'll need to do a find/replace within your module db.xml file to set the current field type to string.

    I don't know what type is used in your module, but here's an example if the size field in your module is type="number": <size type="number">0</size> should be <size type="string">0</size> So, you could find <size type="number"> and replace with <size type="string"> - check what type needs replacing in your code for the various fields listed in the error message.
    Last edited by Trenloe; January 11th, 2026 at 17:42.
    FG Wiki: How to Compile the FG Logs

    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
    Sulimo's Avatar
    Join Date
    Dec 2014
    Location
    Pacific Time Zone
    Posts
    946
    I originally copied what was in Creatures & Treasures, one of the modules included with RMC.

    I'll go through the ones I have and compare them to C&T and see what is different.

    Thanks for the pointer for that.


    Probably going to need to go through to find out what the new values need to be.

    Seems like it was changed from the numbers being translated to a text type to straight text.

    Not a big deal, just some digging necessary
    Last edited by Sulimo; January 11th, 2026 at 17:42.

  4. #4
    Sulimo's Avatar
    Join Date
    Dec 2014
    Location
    Pacific Time Zone
    Posts
    946
    All fixed now, thanks again Trenloe

  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    34,716
    Glad you got it sorted out.
    FG Wiki: How to Compile the FG Logs

    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!

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
  •  
DICE PACKS BUNDLE

Log in

Log in