5E Product Walkthrough Playlist
  1. #1

    Yet another custom calendar thread

    Hello everyone. I am having a bit of a problem. I am trying to create a custom calendar for my setting within Fantasy Grounds. I have looked at various threads on here about this subject, but apparently my comprehension of these threads is abysmal. So, I turn to creating my own thread, and asking more knowledgeable people here that might be able to help me out.

    I have changed the calendars.mod file to calendars.zip, extracted the files, and opened db.xml in notepad++. I copied and pasted the gregorian calendar into a new file, adjusted the periods to reflect my setting, changed "gregorian" to my own setting's name, saved it, renamed it back to .mod, and fire up FG. I try to load the calendars.mod into the active mods in the library, and a window pops up saying this: "Database Error: A XML parse error occurred processing file Calendars:db.xml - Error on line 11: Error reading Attributes"

    So I check line 11, which is " <day2 type="string">Monday</day2> " (minus the outer quotes, of course). I must be missing something or am exceedingly dull. Both are quite possible as I am getting into the older spectrum of age. Also, my custom calendar that I created as a seperate .mod doesn't even show up.

    Any help would be greatly appreciated.

  2. #2
    It would be easier to give you more help if you posted the file in question.

    Regards,
    JPG

  3. #3
    I had originally tried adding it into the regular calendars.mod file, but then removed it from that and made it into its own file. Since doing that, the regular calendars.mod file doesn't want to load. So that's why it is included in this attachment.

    The other one is the one I attempted to make for my setting. I basically just copy pasted the Gregorian from the regular mod into that, and adjusted things to match my setting.
    Attached Files Attached Files

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Quote Originally Posted by oreofox View Post
    "Database Error: A XML parse error occurred processing file Calendars:db.xml - Error on line 11: Error reading Attributes"

    So I check line 11, which is " <day2 type="string">Monday</day2> " (minus the outer quotes, of course).
    You have a - instead of a = after "type".

    <day2 type-"string">Beathday</day2>
    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!

  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Quote Originally Posted by oreofox View Post
    Since doing that, the regular calendars.mod file doesn't want to load. So that's why it is included in this attachment.
    You can only have one module of the same name. In your definition.xml file in your custom module, change the <name> tag from "Calendars" to something unique for your module.
    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!

  6. #6
    Thank you Trenloe. I got that fixed, and then had a couple more errors (had an end tag for holiday1 as holiday, then for some reason end tag on line 127 wasn't registering so I took out the whole holiday for that portion).

    Anywho, I got it fixed up and working! Thank you for your help.

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
  •  
FG Spreadshirt Swag

Log in

Log in