DICE PACKS BUNDLE
  1. #1

    Per-campaign extensions

    A random thought passed through my mind regarding extensions. I was discussing elsewhere about storing one's campaign data in source control, and noticed an "extensionstate.xml" file. A thought popped into my head that perhaps it would be useful to copy the extensions into the campaign folder to make committing the entire campaign into source control easier. You'd have the extensions right with the campaign. Just clone it to a new installation of FG and it would Just Work (instead of having to go hunt down the extensions and manually copy them to the FG data folder).

    I've not fully thought out all of the mechanics of it. Things like: what if the FG-level extension is newer than the campaign's... re-copy it? (Ask the user?) What about the reverse? Copy from the campaign to the FG-level? Scan all campaigns on launch to synchronize all of the extensions?

  2. #2
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    20,893
    I'm not really following what you are on about; but if you set up your extensions in one campaign then you can copy the extensionstate.xml into any other campaign folder and it will load those same extensions in the campaign you copied into.
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php

  3. #3
    Sure, but the extensions themselves won't have been copied over. Was thinking of the idea that one has a desktop install of FGU set up with a campaign and extensions. Now the user gets a laptop and goes to the friend's house (OK, in a non-covid world...) to go run a session. So they install FGU, copy the campaign over and go to the friend's house. Whups, forgot to copy the extensions. Where with something resembling my idea, copying the campaign would also copy the extensions (one directory instead of two). And 3 months down the road when they want to do it again, and the extensions have been updated on the desktop (but not the laptop.. it's been sitting in a corner) we end up with a similar problem.

  4. #4
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,337
    Blog Entries
    9
    Yep, in that case you would need to copy/install the extensions as well. But, you can't change the folder architecture of FG. Extensions have to be stored in the extensions folder outside the campaign folder. Though in your use case I can see the convenience, architecturally it would be a bad thing since that would mean in a normal use case you would have to install and maintain copies of extensions in every campaign.

    So, if you want to make run-ready backups of your campaigns, you will need to make backups of your extensions folder, as well as your modules, tokens, etc folders since all of those are stored outside the campaign folder and referenced as well. At that point, just make GIT copies of your FG Data folder (except vault folder) and be done with it

    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.

  5. #5
    Sure, as a user I can't change the folder structure of FG. But Smiteworks on the other hand... This probably all boils down to campaigns not really being designed to be "portable". (Nor do I think that this is a world-shaking problem. There are more important things that people want than this....)

    I suppose a quick script, and commit each piece (extensions, tokens, individual campaigns) into a separate git repo each. (A monorepo might be a little overkill, particularly if one wished to collaborate with someone on an individual module.)

  6. #6
    I have all of my FG and campaign data under a single folder (I know ... not the normal, but it works for me).

    I have written a batch command which copies the entire folder ( FG, campaign data, extensions, & modules) to a location on my NAS drive as well as copies it to my one drive for it to get synched to the cloud as a backup. On the NAS drive I retain multiple copies just in case...

    If I need to restore, its a just question of copying the data back.

    Code:
    @echo off
    cls
    echo ==============================
    echo ==  Backup Fantasy Grounds  ==
    echo ==============================
    echo ==
    timeout 10
    
    echo ==
    echo =========================================================================
    echo == Fantasy-Grounds-Unity
    echo =========================================================================
    
    echo ** Delete Oldest
    if exist  ".\Fantasy-Grounds-Unity.004"    rmdir ".\Fantasy-Grounds-Unity.004" /s /q
    
    echo ** Rename
    if exist  ".\Fantasy-Grounds-Unity.003"    rename  ".\Fantasy-Grounds-Unity.003"    "Fantasy-Grounds-Unity.004"
    if exist  ".\Fantasy-Grounds-Unity.002"    rename  ".\Fantasy-Grounds-Unity.002"    "Fantasy-Grounds-Unity.003"
    if exist  ".\Fantasy-Grounds-Unity.001"    rename  ".\Fantasy-Grounds-Unity.001"    "Fantasy-Grounds-Unity.002"
    
    echo ** Copy to NAS
    xcopy    "c:\Fantasy-Grounds-Unity\*.*"    ".\Fantasy-Grounds-Unity.001\*.*"    /E
    
    echo ** Copy to OneDrive
    if exist  "d:\OneDrive\Backup\Fantasy-Grounds-Unity\"    rmdir  "d:\OneDrive\Backup\Fantasy-Grounds-Unity\" /s /q
    xcopy  "c:\Fantasy-Grounds-Unity\*.*"   "d:\OneDrive\Backup\Fantasy-Grounds-Unity\*.*"    /E
    
    echo ==
    echo =========================================================================
    echo ==
    echo ================
    echo ==  Finished  ==
    echo ================
    echo ==
    
    timeout 10
    Last edited by ColinBuckler; March 9th, 2021 at 16:38.
    Ultimate License
    UK Time Zone (GMT/BST)
    DM'ing since 1977 (Basic D&D)

    Currently Playing:
    Empire of the Ghouls 5E Campaign
    Tales from the Yawning Portal 5E Campaign
    Rise of the Runelords Pathfinder 1e
    Amazing Adventures 5E Campaign
    "Some are born to move the world, to live their fantasies
    But most of us just dream about the things we'd like to be."
    Rush - Losing It


    Currently DM'ing
    Princes of the Apocalypse 5E Campaign
    Waterdeep: Mad Mage 5E Campaign
    The Blight 5E Campaign

  7. #7

  8. #8
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,337
    Blog Entries
    9
    Quote Originally Posted by Nylanfs View Post
    But what about hard copy backups?
    I print those out every other week. They get sent to Iron Mountain on a monthly basis. While still onsite they are in a fireproof safe inside a panic room.

    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.

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