Modding Intro: Difference between revisions
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
When making edits to the game, it is best to do them within a mod, so that the changes can be undone and redone to the base game. This tutorial will go over the steps needed to create a new mod, and link to other more specific tutorials for maps, ground maps, etc. | When making edits to the game, it is best to do them within a mod, so that the changes can be undone and redone to the base game. This tutorial will go over the steps needed to create a new mod, and link to other more specific tutorials for maps, ground maps, etc. Before you start, you must open the game in [[Dev Mode|Dev Mode]] | ||
== Creating a Mod == | == Creating a Mod == | ||
Access the Mods tab in the developer panel. You can see we currently have no mods. | Access the Mods tab in the developer panel. You can see we currently have no mods. | ||
[[File:DevPanel_Mod.png|frameless]] | |||
Create a new mod using the Add New button. | Create a new mod using the Add New button. | ||
[[File:DevPanel_Mod_Create.png|frameless]] | |||
Give it whatever name you want. We will go with “Test Mod”. | Give it whatever name you want. We will go with “Test Mod”. | ||
Line 13: | Line 17: | ||
Keep the mod type at “Mod”, and click OK. | Keep the mod type at “Mod”, and click OK. | ||
[[File:DevPanel_Mod_Added.png|frameless]] | |||
You will find a new mod created as a subcategory under the “[None]” mod. | You will find a new mod created as a subcategory under the “[None]” mod. | ||
[[File:TestMod_Folder.png|frameless]] | |||
You will also find a folder for the mod, generated in the MODS folder. | You will also find a folder for the mod, generated in the MODS folder. | ||
[[File:TestMod_Folder_Inside.png|frameless]] | |||
Within the mod, you should find these subfolders and a Mod.xml file. | Within the mod, you should find these subfolders and a Mod.xml file. | ||
The basic data for the mod name, ID, version and mod type is stored in this xml. | The basic data for the mod name, ID, version and mod type is stored in this xml. | ||
Switch to the mod. Game will automatically restart. | |||
[[File:DevPanel_Mod_Switched.png|frameless]] | |||
Note the Current Mod has changed. However, nothing will look different in the game right now, since no changes have been made. If you were to play through the game, it would be identical to vanilla in every way except for the indicator on the top menu: | |||
[[File:TestMod_Start.png|frameless]] | |||
== Altering Data == | == Altering Data == | ||
Line 39: | Line 43: | ||
Go to the Data tab, choose Monster, and double click on Charmander to edit it. | Go to the Data tab, choose Monster, and double click on Charmander to edit it. | ||
[[File:DevPanel_Data.png|frameless]] | |||
[[File:TestMod_Edit_Search.png|frameless]] | |||
There are a lot of attributes to edit, but the one we are interested is Name. | There are a lot of attributes to edit, but the one we are interested is Name. | ||
[[File:TestMod_Edit.png|frameless]] | |||
Click on “Edit” for Name. | Click on “Edit” for Name. | ||
[[File:TestMod_Edit_String.png|frameless]] | |||
Change the name to something else, and click OK. | Change the name to something else, and click OK. | ||
Click OK on the parent menu to save its changes as well. | Click OK on the parent menu to save its changes as well. | ||
[[File:TestMod_Edit_Done.png|frameless]] | |||
This change is now reflected in the Pokemon list; you have successfully altered data within the mod! | This change is now reflected in the Pokemon list; you have successfully altered data within the mod! | ||
You can see this in action in the starter selection. | You can see this in action in the starter selection. | ||
[[File:TestMod_Edit_Example.png|frameless]] | |||
Changes made within a mod are confined to that mod. If you switch back to no mod in “[None]”, Charmander’s name will revert to normal. | Changes made within a mod are confined to that mod. If you switch back to no mod in “[None]”, Charmander’s name will revert to normal. | ||
Line 57: | Line 69: | ||
Whenever you make a change in a mod, that file is saved to the mod folder itself. You can see Charmander’s changed file in MODS/Test_Mod/Data/Monster: | Whenever you make a change in a mod, that file is saved to the mod folder itself. You can see Charmander’s changed file in MODS/Test_Mod/Data/Monster: | ||
This makes it easy to revert changes within your mod as well: to change charmander back, simply remove | [[File:TestMod_Folder_Edit.png|frameless]] | ||
This makes it easy to revert changes within your mod as well: to change charmander back, simply remove charmander.json and index.idx. | |||
If you want to share the mod with someone else, you will simply need to zip the mod folder and send it to them. They will simply need to place the folder in the MODS folder. | If you want to share the mod with someone else, you will simply need to zip the mod folder and send it to them. They will simply need to place the folder in the MODS folder. | ||
[[File:TestMod_Access.png|frameless]] | |||
From there, they will be able to select the mod under the main menu option “Special Episodes” (If the mod was of type Quest) or Mods (If the mod was of type Mod). | From there, they will be able to select the mod under the main menu option “Special Episodes” (If the mod was of type Quest) or Mods (If the mod was of type Mod). | ||
== Tips == | == Tips == | ||
You can start the game automatically set to your mod with a command line flag: | You can start the game automatically set to your mod with a command line flag: | ||
Windows: | Windows: | ||
< | <pre>PMDO.exe -dev -quest Test_Mod</pre> | ||
Linux/Mac: | Linux/Mac: | ||
< | <pre>./PMDO -dev -quest Test_Mod</pre> | ||
Whether your mod is of type Mod or Quest, in order to edit it you must set it to the current quest as done above. | Whether your mod is of type Mod or Quest, in order to edit it you must set it to the current quest as done above. | ||
As the game gets updated, so too does the way the data is stored. PMDO automatically converts data stored in previous versions when it loads them. This means that in order to update your mod to the latest version of the game, you should load all mod files and then save them. This can be done by running Reserialize: | As the game gets updated, so too does the way the data is stored. PMDO automatically converts data stored in previous versions when it loads them. This means that in order to update your mod to the latest version of the game, you should load all mod files and then save them. This can be done by running Reserialize: | ||
Windows: | Windows: | ||
< | <pre>PMDO.exe -dev -quest Test_Mod -reserialize all</pre> | ||
Linux/Mac: | Linux/Mac: | ||
< | <pre>./PMDO -dev -quest Test_Mod -reserialize all</pre> | ||
For advice on how to mod specific types of data, such as Maps, Dungeons, Items and more, visit the [[:Category:Modding Data]] category. If you want to modify sprites, visit the [[:Category:Modding Assets]] category. If you want one tutorial to start with specifically, is recommended you start with [[Creating Ground Maps]]. | |||
[[Category:Modding]] |
Latest revision as of 20:12, 11 March 2023
When making edits to the game, it is best to do them within a mod, so that the changes can be undone and redone to the base game. This tutorial will go over the steps needed to create a new mod, and link to other more specific tutorials for maps, ground maps, etc. Before you start, you must open the game in Dev Mode
Creating a Mod
Access the Mods tab in the developer panel. You can see we currently have no mods.
Create a new mod using the Add New button.
Give it whatever name you want. We will go with “Test Mod”. In this game, mods are split into two types: Quests are mods that have their own save files, and only one can be active at a time. This can be used for side stories like in Explorers of Sky. On the menu they are even titled as “Special Episodes” Mods do not need their own save files, and multiple can be active at one time. These are meant for small changes such as altering the starter list, the effects of items, or adding extra dungeons.
Keep the mod type at “Mod”, and click OK.
You will find a new mod created as a subcategory under the “[None]” mod.
You will also find a folder for the mod, generated in the MODS folder.
Within the mod, you should find these subfolders and a Mod.xml file. The basic data for the mod name, ID, version and mod type is stored in this xml.
Switch to the mod. Game will automatically restart.
Note the Current Mod has changed. However, nothing will look different in the game right now, since no changes have been made. If you were to play through the game, it would be identical to vanilla in every way except for the indicator on the top menu:
Altering Data
The easiest way to see a change take effect is to alter some data. In this example, we will alter a Pokemon’s name.
Go to the Data tab, choose Monster, and double click on Charmander to edit it.
There are a lot of attributes to edit, but the one we are interested is Name.
Click on “Edit” for Name.
Change the name to something else, and click OK. Click OK on the parent menu to save its changes as well.
This change is now reflected in the Pokemon list; you have successfully altered data within the mod! You can see this in action in the starter selection.
Changes made within a mod are confined to that mod. If you switch back to no mod in “[None]”, Charmander’s name will revert to normal.
Whenever you make a change in a mod, that file is saved to the mod folder itself. You can see Charmander’s changed file in MODS/Test_Mod/Data/Monster:
This makes it easy to revert changes within your mod as well: to change charmander back, simply remove charmander.json and index.idx.
If you want to share the mod with someone else, you will simply need to zip the mod folder and send it to them. They will simply need to place the folder in the MODS folder.
From there, they will be able to select the mod under the main menu option “Special Episodes” (If the mod was of type Quest) or Mods (If the mod was of type Mod).
Tips
You can start the game automatically set to your mod with a command line flag:
Windows:
PMDO.exe -dev -quest Test_Mod
Linux/Mac:
./PMDO -dev -quest Test_Mod
Whether your mod is of type Mod or Quest, in order to edit it you must set it to the current quest as done above.
As the game gets updated, so too does the way the data is stored. PMDO automatically converts data stored in previous versions when it loads them. This means that in order to update your mod to the latest version of the game, you should load all mod files and then save them. This can be done by running Reserialize:
Windows:
PMDO.exe -dev -quest Test_Mod -reserialize all
Linux/Mac:
./PMDO -dev -quest Test_Mod -reserialize all
For advice on how to mod specific types of data, such as Maps, Dungeons, Items and more, visit the Category:Modding Data category. If you want to modify sprites, visit the Category:Modding Assets category. If you want one tutorial to start with specifically, is recommended you start with Creating Ground Maps.