Closed ZekNikZ closed 3 years ago
Someone should double-check, but the the only merge conflicts arise from the interweaving of the DMG editor with the Multiple Bombs editor. I built the DMG editor into the version of the Multiple Bombs editor present in this repo, so it shouldn't cause any issues.
Now, come to think of it, for people only making mission packs, it might be nice to have a mission_packs
branch or something for a modkit with just the mission editor features
Wow! Awesome work there!
Seems like everything works as intended.
The only modification I've done is preventing the mode
setting from going into the module pool.
Overall, I've merged the files in 073c3f5.
A mission_packs
branch is a good idea, I'll definitely work on that.
Thank you for your contribution! :)
I built this feature off of the main modkit, so this might create a merge conflict but should be easily resolved. I can rebase off of the master branch of the community modkit if needed.
For more information about this feature, below is a copy of the working draft of the user guide for the feature:
Modkit support for DMG
The community fork of the KTANE modkit supports loading and editing missions using DMG syntax.
All features above are supported, with the exception of
room:[name]
,mode:[mode]
,tm/zm/sm
settings, and!
(duplication reduction).In addition, documentation comments ("doc comments") are also supported to specify mission names and descriptions within the DMG string. There are variants of doc comments using either inline or multiline comments:
In both cases, whitespace is ignored.
Creating a new mission using a DMG mission file (such as one saved using DMG in-game)
Under the
Keep Talking ModKit
menu, clickMissions/Load DMG Misison File
. This will create a mission in theAssets/Missions
directory with a name matching the mission name, if specified in the doc comments.Editing mission using DMG syntax / getting DMG version of a mission
As seen in the screenshot below, there is now a DMG mission string box in the mission editor panel. The text area will automatically update with the current version of the DMG mission. If it does not update, use the
Force Refresh DMG Mission String
button to forcefully refresh it.You can edit the DMG mission string in this text area. Clicking
Load from DMG Mission String
will update the mission asset to match the DMG specficiation.Loading a DMG mission pack
The modkit supports loading an entire pack of missions specified in DMG syntax into mission and table of contents assets. To do so, begin by verifing that your "pack" directory looks like the following:
In other words, the "pack" directory should contain subfolders, each containing a series of mission files.
Section names are determined from the name of the section folders. Mission names are determined by the mission names in the mission doc strings. By default, sections and missions are ordered alphabetically. To override this behaivour, you can optionally specify numbers in the file names to order sections and missions:
This will result in a table of contents like this:
Under the
Keep Talking ModKit
menu, clickMissions/Load DMG Misison Folder
. This will create a mission pack in theAssets/Missions
directory matching the above.