DICE PACKS BUNDLE
  1. #1

    Moving Campaign to new directory broke image links

    I had a single campaign that was getting too big to be single so I broke it up into separate campaign modules with a base campaign and additional location modules that get loaded as needed. When I did this the image links got broken. The images for each module are still under the images directory for the module but not of the base module. I suspect that moving the image files out of the "base" campaign module and into its separate module images folder is what broke it since the "base" campaign doesn't know where to find the file. Is there some way to just point the image record in Images to the correct location?

    The campaign was just a normal campaign with the images folder under it:

    campaigns\<BaseCampaign>\images


    Now they are split:

    campaigns\<BaseCampaign>\images
    campaigns\<Location1Module>\images
    campaigns\<Location2Module>\images
    etc

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,402
    Welcome to the FG forums!

    What image links are we looking at here? If you have an old link in a story entry or similar, then that link is pointing to the old campaign based image and will be broken - you'll need to recreate that link by dragging the new link from the campaign "Images" data list over the old broken link icon.

    If this isn't what you're referring to please provide some screenshots of where you're having the problem.
    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
    Yeah, I wish it were that easy. It is the actual link in Images to the file.
    Images Issue.png

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,402
    Quote Originally Posted by rivenbarkc View Post
    Yeah, I wish it were that easy. It is the actual link in Images to the file.
    Images Issue.png
    That's going to require manual editing of the underlying XML I'm afraid. If you attach your campaign db.xml I can point out some info to get you started.
    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
    Here is the db.xml file.
    Attached Files Attached Files
    Last edited by rivenbarkc; March 1st, 2022 at 10:23.

  6. #6
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,402
    Here's an example of a portion of the FG XML in one of the images in the map screenshot you posted earlier:

    Code:
    			<id-00030>
    				<image type="image">
    					<color>#66FFFFFF</color>
    					<layers>
    						<layer>
    							<name>Port Landis Map (PC).jpg</name>
    							<id>0</id>
    							<parentid>-21</parentid>
    							<type>image</type>
    							<bitmap>images/Port Landis Map (PC).jpg@The Ring of Fate</bitmap>
    						</layer>
    ...
    ...
    This is an example of a portion of the XML that make up the layers of the "MAP: Port Landis (PC)" image - the bitmap used is this "images/Port Landis Map (PC).jpg@The Ring of Fate" which is a file images/Port Landis Map (PC).jpg in a module called "The Ring of Fate" (the name after the @ sign).

    It is these references that you'll need to check and update to be the correct image filenames within the relevant module/s.

    Be sure to make a copy of the campaign directory - and only edit the XML in the copy, so that you have a backup in case things go awry.
    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!

  7. #7
    I assume that the <bitmap> tag in the excerpt you provided means that it is looking for the file "Fantasy Grounds/campaigns/The Ring of Fate/images/Port Landis Map (PC).jpg"

    So let's say that I renamed the Campaign (and folder) to "[TRoF] Port Landis". I should then just change the @ part to "[TRoF] Port Landis" and it should work, correct?
    Last edited by rivenbarkc; March 3rd, 2022 at 23:22.

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