zztong
Hunter
Consider the following:
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<ModInfo>
<Name value="ZZTong-Prefabs" />
<Description value="Adds prefabs made by ZZTong." />
<Author value="ZZTong" />
<Version value="20.6.013" />
</ModInfo>
</xml>
(1) I suspect I'm using "Version" incorrectly. I suspect the desired value is to be the game version. I'd like to be able to express a modlet version too as this can be handy for debugging. Consider this log file entry:
2022-12-17T16:04:59 8.907 INF [MODS] Trying to load from folder: 'ZZTong-Prefabs'
2022-12-17T16:04:59 8.908 INF [MODS] Loaded Mod: ZZTong-Prefabs (20.6.013)
(2) It would be handy to be able to enable/disable a modlet, rather than move modlet files around. I suspect this would ultimately best be done via a future game feature that allowed for modlet management. In the mean time, perhaps allowing folks to enable/disable a modlet's loading when entering a new game or continuing a game (when modlet XML is actually applied).
(3) It would also be handy to be able to express modlet dependencies in the XML. That is, allow a modlet to indicate zero or more other modlets that must be present. Then, have the game check to see if those dependencies are met and either put a message in the logfile and/or via some kind of dialog.
So, final proposal, consider this example ModInfo.xml file:
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<ModInfo>
<Name value="ZZTong-Prefabs" />
<Description value="Adds prefabs made by ZZTong." />
<Author value="ZZTong" />
<Game-Version value="20.6" />
<Modlet-Version value="013" />
<Dependencies>
<Modlet name="Cranberry-Monster-Arcade" />
</Dependencies>
<Load-Modlet value="Enabled" />
</ModInfo>
</xml>
Which might result in:
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<ModInfo>
<Name value="ZZTong-Prefabs" />
<Description value="Adds prefabs made by ZZTong." />
<Author value="ZZTong" />
<Version value="20.6.013" />
</ModInfo>
</xml>
(1) I suspect I'm using "Version" incorrectly. I suspect the desired value is to be the game version. I'd like to be able to express a modlet version too as this can be handy for debugging. Consider this log file entry:
2022-12-17T16:04:59 8.907 INF [MODS] Trying to load from folder: 'ZZTong-Prefabs'
2022-12-17T16:04:59 8.908 INF [MODS] Loaded Mod: ZZTong-Prefabs (20.6.013)
(2) It would be handy to be able to enable/disable a modlet, rather than move modlet files around. I suspect this would ultimately best be done via a future game feature that allowed for modlet management. In the mean time, perhaps allowing folks to enable/disable a modlet's loading when entering a new game or continuing a game (when modlet XML is actually applied).
(3) It would also be handy to be able to express modlet dependencies in the XML. That is, allow a modlet to indicate zero or more other modlets that must be present. Then, have the game check to see if those dependencies are met and either put a message in the logfile and/or via some kind of dialog.
So, final proposal, consider this example ModInfo.xml file:
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<ModInfo>
<Name value="ZZTong-Prefabs" />
<Description value="Adds prefabs made by ZZTong." />
<Author value="ZZTong" />
<Game-Version value="20.6" />
<Modlet-Version value="013" />
<Dependencies>
<Modlet name="Cranberry-Monster-Arcade" />
</Dependencies>
<Load-Modlet value="Enabled" />
</ModInfo>
</xml>
Which might result in:
Code:
2022-12-17T16:04:59 8.904 INF [MODS] Trying to load from folder: 'Cranberry-Monster-Arcade'
2022-12-17T16:04:59 8.905 INF [MODS] Loaded Mod: Cranberry-Monster-Arcade version 02 for Game version 20.6
2022-12-17T16:04:59 8.906 WRN [MODS] Modlet Cranberry-Monster-Arcade disabled in ModInfo.xml
2022-12-17T16:04:59 8.907 INF [MODS] Trying to load from folder: 'ZZTong-Prefabs'
2022-12-17T16:04:59 8.908 INF [MODS] Loaded Mod: ZZTong-Prefabs version 013 for Game version 20.6
2022-12-17T16:04:59 8.909 WRN [MODS] Modlet Dependency Not Found: Cranberry-Monster-Arcade
Last edited by a moderator: