5E Character Create Playlist
  1. #1

    Changed data structure & ruleset compatibility

    Hi there,
    quick question for "best practice".

    I have created a initial version of a ruleset based on CoreRPG using "windowlist" objects to track attributes and sub-"windowlist" items to track associated skills. I meanwhile I switched to 5E as the basis for the ruleset and use the data structure of the 5E ruleset for attributes (so, specific DB nodes for attributes and one skill list). I now need to move the Player Character data from the old DB structure to the new one to keep the ruleset compatible for the users.

    Has anyone encountered that topic before? Any ideas on how to best accomplish this?

    My current thinking is to search the campaign DB of the user for the old data structure and copy over values to the new structure via a lua script.

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    Have a look in the 5E ruleset - scripts\manager_version2.lua - this is a script that is used to upgrade older data to the latest version. You should get some ideas from there as to how to migrate data.
    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
    Perfect! This will help a lot!

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