Thread: How to edit .mod files
-
January 21st, 2011, 15:02 #1
- Join Date
- Jan 2011
- Posts
- 1
How to edit .mod files
I've managed to find them in the appdata/roaming/Fantasy Ground II/modules folder, but when I try to open them with notepad++, as I would think they would be opened, I cannot. What program do I have to use to edit the modules? I'm making my own system based off of 4E with new stats, skills, weapons, monsters, etc.... and it really would be nice to have a resource for the players as far as classes and weapons go, as well as factions, which are replacing class in this, and possibly a couple lore books, just put in module for good measure.
-
January 21st, 2011, 15:09 #2
rename the .mod files to .zip, then extract and you'll see the xml files within
Previously: MurghBpurn
-
January 21st, 2011, 15:24 #3
.mod files are simply renamed .zip archives. Open them and uncompress the contents using something like WinZIP, WinRAR or StuffIt.
You can build a 4E module in three ways:
- From within FGII and a 4E campaign - create content as per normal and then use the /export command
- Using Tenian's 4E Parser tool - Link - Great for bulk loading of data if you have access to a PDF or are a DDI subscriber
- Manually using a text/xml editor
Most of the 4E modules you will read about here on the forums have been built using the 4E Parser. This for several reasons:
- the tool works by reading plain text files which contain marked up content or scraping it directly from the online tools to produce a ready to use module - meaning its relatively straightforward to rebuild content and thus errata.
- the tool has been tuned/optimised to detect specific formatting used in 4E published content and to allow for easy import of bulk data - meaning its often a simple case of just copying and pasting content with no need for additional markup
- the 4E ruleset does not expose campaign based windowclasses for library content - making it impossible (with the current ruleset version) to build library content easily from within FGII's interface
If your system will use the 4E ruleset, take a look at the Parser. If on the other hand you plan to adapt a new ruleset from 4E then you will be better of finalising the ruleset and then creating the content either from within FGII whilst in a campaign using your new ruleset or by hand manually. This is because modules are generally ruleset specific (exception being basic module types e.g token packs).
FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
February 1st, 2011, 18:41 #4
- Join Date
- Jun 2010
- Location
- Vancouver, BC
- Posts
- 382
Hey Doctor,
Do you know if the tags used in a given .mod file (let's say the Player's Handbook) is defined outside of the db.xml file?
I wanted to know if it was possible to create a new .mod, using the 4E ruleset as a base, but defining things differently.
Example:
Code:<a009blackironarmor> <link type="windowreference"> <class>referencemagicitem</class> <recordname>magicitemdesc4EPHB1.blackironarmor_009@4E Player's Handbook</recordname> </link> <name type="string">Black Iron Armor +2</name> <cat type="string">Scale, Plate</cat> <level type="number">9</level> <cost type="string">4,200 gp</cost> </a009blackironarmor>
The weird part is that they are displayed in order of : level, name, cost, and category.
I couldn't find anywhere where this is handled inside the XML file.
Is it possible to change these categories?
Do they get formatted somewhere outside of the MOD file; adding yet another level of complexity when creation custom rulesets?
-
February 2nd, 2011, 00:42 #5
Stitched - The XML data structure within a module usually follows a standard structure as defined by the ruleset its keyed to. The tags used in a module are usually defined within the ruleset windowclass definitions.
Most rulesets support the standard Story, Encounters, Personalities, Items and Notes classes (Icons on the right of the desktop), these data nodes are therefore usually available in modules too, directly under the module's root tag. This way when a module is opened any data within these tags is 'merged' with the data in the campaign db.xml (this is presented in the FGII interface under the Category controls at the bottom of the windows).
In addition most rulesets also support a Library windowclass. The library tag is also directly under the module's root tag and contains 'lists' of data that can also be referenced from within the module (but often outside of the Library tag structure, in 4E the tag is called 'referencedata').
In this case, the example module XML you provided, conforms to the structure of the windowclass, 'referencemagicitem' as defined in the 4E ruleset. It is this windowclass that sets the output order under FGII's UI. The XML module data is not written out in any particular order that I am aware of (although I suspect the order of control initialisation during the windows initialisation may have a baring).
The names of the lists tags just under the 'referencedata' e.g. Skills, Feats etc. etc. are again defined in the 4E ruleset. The names of the data nodes under each can generally be anything however for cross-linking to work you will have to ensure all references within the module to the data object are consistently named.
So in summary, to change the data tags you we will need to revise the ruleset reference windowclasses and rename the window fields. Its probably better to copy an existing reference windowclass from the 4E ruleset into a extension. This way you can customise the new windowclass without overwriting or changing the core ruleset reference objects.FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
February 2nd, 2011, 11:07 #6
- Join Date
- Jun 2010
- Location
- Vancouver, BC
- Posts
- 382
It was more of a question about how the list's columns got ordered.
With your answer in mind, I need to create an extension that overwrites the windowclass files, in order to change the tags used throughout the ruleset, correct?
Which windowclass files need to be edited? Since it's the 4E ruleset we are talking about, they are embedded in the program as .pak files.
-
February 2nd, 2011, 21:15 #7Originally Posted by Stitched
Originally Posted by Stitched
Originally Posted by Stitched
To get to the 4E ruleset, just open the 4E.pak file in FGII's Program Directory with WinZIP and extract the contents to a folder somewhere on your machine (not a folder within the rulesets subfolder of the FGII app data directory).FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
February 5th, 2011, 21:15 #8
- Join Date
- Jul 2006
- Posts
- 43
All my modules show up as windows movie clips that can't be opened, I open with word doesn't work, notepad just a bunch of weird characters.
I zip it and it still comes out as wmv files i can't open.
-
February 5th, 2011, 21:45 #9Originally Posted by trheel
After clicking OK, WinZIP should open and you should see a list of the files inside the .mod file. From here you can click the Extract to button to extract the contents of the .mod file to a folder of your choosing.FG Project Development
Next Project(s)*: Starfinder v1.2 Starship Combat
Current Project: Starfinder v1.1 - Character Starships
Completed Projects: Starfinder Ruleset v1.0, Starfinder Core Rulebook, Alien Archive, Paizo Pathfinder Official Theme, D&D 5E data updates
* All fluid by nature and therefore subject to change.
-
February 5th, 2011, 22:08 #10
- Join Date
- Jul 2006
- Posts
- 43
Thanks, that helped alot I really appreciate that.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks