Skip to content

mj0331/modmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modmanager

A simple mod management tool created for the game Tooth & Tail(http://www.toothandtailgame.com/), but can be used for other games as well. The tool works by swapping modded files with the original ones.

Platform: Windows

Requires: .NET Framework v4.6

Creating a profile

There isn't much you can do with the mod manager without a profile loaded. The profile contains info the mod manager needs in order to install an uninstall mods. In order to create a profile click Profile -> Create new profile. A window will pop up with the following fields.

  • Game name: The name of the game for which the profile will be used.

  • Game folder: The path to the folder containing the game executable.

  • Mod files folder: The path to a folder which will contain the unarchived version of the mods added to your profile.

  • Backup folder: The path to the folder containing backups of the original game files.

  • Profile save location: The location where the profile file will be saved.

Once you are done filling out the fields, press Confirm and now you have a profile file.

NOTE: The mod manager currenty does not automatically reload the last profile file when starting it up.

Loading a profile file

To load a profile file, click Profile -> Load profile. Make sure the file you selected is indeed a profile file!

#Installing a mod It should be noted that installing a mod is a 2-step process. First, the mod package needs to be added to your profile. After that's done, you can now install and uninstall the mod with the press of a button.

  • Obtain the .TNT archive The mods are packaged conveniently in a single .TNT file.

  • Add the mod to the profile In the mod manager, go to Mod Packages -> Add package to profile (From .TNT archive) and browse for the .TNT file of the mod you want to install.

  • Installing/Uninstalling the mod You can now install/uninstall the mod at will using the and buttons, respectively(or use the ›› and ‹‹ buttons to install/uninstall all mods at once).

#Packaging your own mod This is a bit of a lengthy process as each individual file you alter/add needs to be manually added to the package.

###Create a folder for the mod This folder will be the root folder for all the files of the mod. You may simply copy-paste the mod files in this directory, or you may put them in a different one, as long as the mod folder can still be used as a root(eg. if you want to use the my_mod folder as the root folder for your mod, "C:/my_mod/textures" is GOOD, "C:/textures" is BAD)

###Create the package manifest In the mod manager, go to Package Editor -> Open Mod Package Editor. This will open the package editor with all fields blank. Fill in the name, author(s) and the description of the mod(NOTE: The mod name will also be the name of the .TNT archive)

###Add each mod file to the package You've now reached the most fun part of the entire thing. Got several dozen files in your mod? You better be the patient type. On the right of the mod package info(name, author, description), there's a list which displays the game files/folders your mod targets. Below the list, there are 3 buttons: New, Edit, and Delete. To add a new mod file, press the New button. The mod editor window will pop up and you'll need to fill out the following:

  • Modded file This is the path to the modded file inside you mod folder.
  • Target file This is the path to the file/folder you want your modded file to replace/be added to(depending on the mod type)
  • Mod type The mod manager can currently handle 2 types of mods:
    • Replacement mods are mods that replace existing files
    • Addition mods are mods that add new files

After you filled in ALL the fields in the mod editor window, press Confirm. Repeat the process for all files of your mod.

###Save the mod manifest file After all the mod files have been added, in the package editor, go to File ->Save Package(New Manifest) and select your mod folder. This will create a package.json file in that folder which is the manifest of the mod package.

###Create the .TNT archive From the main mod manager window, go to Mod Packages -> Make .TNT Archive From .JSON Manifest and browse for the manifest file you've created earlier. It will now create your .TNT archive in the folder above your mod folder. Congratulations on creating your packaged mod!

#Changelog

###v0.6 - Last of the summer

  • The profile creation form will now have default values for paths so creating a new profile can take as few as 2 clicks
  • Drag'n'drop support extended to the profile creation form. You can now drag'n'drop files and folders in the textboxes to automatically fill them with the file/folder's path
  • Extra input validation during profile creation
  • Menu highlight colors now changed so that the text is easier to read
  • Most file and folder browser dialogs should have titles and/or descriptions now
  • Added scrollbars to some widgets

###v0.5 - Like v0.4, but better

  • Newly created profiles will now be automatically loaded
  • You can now open the game folder from the Game menu
  • Fixed issue #17: Profile existence check broken
  • Fixed issue #18: About button does nothing

###v0.4 - Drag'n'Drop is nice

  • There is a Game menu item, allowing users to start the game from within the mod manager, either as it is or with all known mods disabled
  • You may now drag'n'drop files and folders onto the mod editor inputs to get their paths
  • Addition mods now have the name of the modded file displayed in the package editor mod list
  • Fixed issue #9: Mod editor removes the last directory in the path when addition mods are edited
  • Fixed issue #11: Manifest file not being properly written to after multiple mods deleted
  • Fixed issue #14: Exception when attempting to overwrite .TNT file.
  • Fixed issue #15: Mod editor not updating target path after mod type change
  • Fixed issue #16: ModFile string not relative to package manifest path

###v0.3 - More AntiStupid

  • The menu bar is less of an eye sore. It is now white text over dark grey background
  • The mod manager now reloads the profile you had opened last time you ran the program
  • Additional exception handling for adding mod packages to profile
  • The mod manager now detects if you try to install a mod that conflicts(affects the same file) with a mod already enabled and will prevent the installation of the new one.
  • Fixed issue #6: Cannot install mods if the game is on a different drive

###v0.2 - Bug fixes and QoL improvements

  • Enabled the New Package and Open Package Manifest buttons in the package editor.
  • Added exception handling and error messages when loading profile files and mod manifests
  • Fixed issue #5: Exception crashed the mod manager after the package editor is closed.
  • Fixed issue #4: When a ModPackage is removed from profile, the folder is not deleted
  • Fixed issue #1: NullReference Exception crashes the editor after a ModPackage target file update (Unable to reproduce issue)

v0.1 - Initial release

  • Ability to toggle mods On/Off
  • Ability to install mods from .TNT archives and raw .JSON manifests
  • Ability to create own mods via the package and mod editors

About

A simple mod management tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages