1. #1

    Join Date
    Mar 2014
    Location
    Staffordshire, UK
    Posts
    166

    FG Map Module Generator

    Having a requirement to create several maps modules I decided to write a routine to automate the creation process and to share with the FG community. Therefore attached is a zip file which contains a .exe routine I have created which will generate a .mod file for images (png/jpg).

    The fields are:

    Map Module Name: This is the name of the Modulefile (minus the .mod extension)

    Category: Category the map file will sit within on FG

    Author: Your name

    Image Folder: The folder containing jpg/png you want to make a module containing (no ending "\")

    Module Folder: The folder the module should be saved in when creating (no ending "\")

    Enclosed is an example of the completed fields - you will need to change these to reflect your system/configuration.

    The program will also add a thumbnail image to the final module if a "thumbnail.png" is included in the Image Folder.

    The program is written in PureBAsic which is free for upto 800 lines and cheap (79 euros). The program also contains compilers for Windows/Linux/Mac OS (you could amend the code and compile it natively to your OS if you wish). As an added bonus I have included the source code if you wish to modify or make use of the program for your own needs. Purebasic can be downloaded from: https://www.purebasic.com/
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by ColinBuckler; February 20th, 2018 at 00:46.

    Ultimate License Owner
    UK Time Zone (GMT/BST)
    DM'ing since 1977 (Basic D&D Holmes Blue Box)

    Currently Playing:
    Storm King's Thunder 5E Campaign
    Tales from the Yawning Portal 5E Campaign
    Rise of the Runelords Pathfinder 1e

    "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: Dragon Heist 5E Campaign
    The Blight 5E Campaign

  2. #2
    Erin Righ's Avatar
    Join Date
    May 2016
    Location
    Vernon, BC, Canada
    Posts
    391
    Thanks Colin, this could be hella useful

  3. #3

    Join Date
    Mar 2014
    Location
    Staffordshire, UK
    Posts
    166
    If you have a PDF and want to create a map module for your game, look at this post: https://www.fantasygrounds.com/forum...ges-From-A-PDF

    Using that process you can extract all images fro a PDF, review the images deleting the ones that you no longer require. Next use this program to repack all of the images into a mod file and inturn automatically creating the required xml files required.

    Ultimate License Owner
    UK Time Zone (GMT/BST)
    DM'ing since 1977 (Basic D&D Holmes Blue Box)

    Currently Playing:
    Storm King's Thunder 5E Campaign
    Tales from the Yawning Portal 5E Campaign
    Rise of the Runelords Pathfinder 1e

    "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: Dragon Heist 5E Campaign
    The Blight 5E Campaign

  4. #4
    Nice one Colin.
    Keep it up!
    Engineer Suite
    Import, build or edit NPCs/spells/equipment and then parse them directly into a Fantasy Grounds module.

    Download the latest version from the website.
    Support me by becoming a patron on Patreon.
    Chat directly about issues or suggest features on the
    Discord channel.
    Post issues on the issue tracker on Github.


  5. #5
    Kudos Colin! Just used this utility to create a module to share my frequently used battle maps between all my campaigns. Worked perfectly. Thanks!

  6. #6

    Join Date
    Apr 2008
    Location
    Virginia Beach
    Posts
    3,086
    Yes. This is very nice. Well done.

  7. #7

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in