Jump to content

What is the new layout for ModInfo.xml V2?


Recommended Posts

Hey folks,

 

Gave this a bit of a Google but couldn't find the details. Rather than reverse engineer it myself I figured I'd check in to see if anyone already knows the new format A21 expects the ModInfo.xml file to be in?

 

I'm in the process of updating my mods to the new Alpha and am getting this warning on load:

 

Quote

2023-06-26T23:36:04 9.419 INF [MODS] Start loading from: 'D:/Steam/steamapps/common/7 Days To Die/7DaysToDie_Data/../Mods'
2023-06-26T23:36:04 9.431 INF [MODS] Trying to load from folder: 'StonesAreBuses'
2023-06-26T23:36:04 9.452 WRN [MODS] StonesAreBuses/ModInfo.xml in legacy format. Please consider upgrading to V2 for future compatibility.
2023-06-26T23:36:04 9.458 INF [MODS] Loaded Mod: Stones Are Buses (0.1)
2023-06-26T23:36:04 9.458 INF [MODS] Initializing mod code
2023-06-26T23:36:04 9.459 INF [MODS] Loading done

 

Can't find this topic on the forum either so if I do end up working it out before getting an answer I'll come back to post it up to hopefully help others.

Link to comment
Share on other sites

Excellent, thank you BFT2020.

 

Copying here to save people a click (and by people I mean future me): from Mod Structure - Official 7 Days to Die Wiki (fandom.com)

 

ModInfo.xml


The ModInfo.xml is required for the game to recognize the folder as a Mods folder.

Example of ModInfo.xml v2 (beginning with Alpha 21):

<?xml version="1.0" encoding="UTF-8" ?>
<xml>
    <Name value="SomeInternalName" /> <!-- (Required) Internal name, like an ID, of the mod. Should be globally unique, like an author prefix + name. Only allowed chars: Numbers, latin letters, underscores, dash -->
    <DisplayName value="Official Mod Name" /> <!-- (Required) Name used for display purposes, like shown in the mods UI at some point. Could be the same as you would later on use on workshop or wherever mods get distributed -->
    <Version value="1.0.3.243" /> <!-- (Required) SemVer version of the mod. Has to be in the format major.minor[.build[.revision]] (i.e. build and revision can be left out, recommend using them though as typically done with Semantic Versioning -->
    <Description value="Mod to show format of ModInfo v2" /> <!-- (Optional) More text to show on UIs -->
    <Author value="TFP" /> <!-- (Optional) Name(s) of the author(s) -->
    <Website value="" /> <!-- (Optional) URL of a website of the mod -->
</xml>
Link to comment
Share on other sites

  • 1 month later...

thank you!

This yellow error is
It was a mystery.

I thought it was my PC's fault

The description method of ModInfo.xml is
What has changed?

----------------------

<?xml version="1.0" encoding="UTF-8" ?>
<xml>
    <Name value="SomeInternalName" /> 
    <DisplayName value="Official Mod Name" /> 
    <Version value="1.0.0.0" /> 
    <Description value="Mod to show format of ModInfo v2" /><!--Unchangeable?-->
    <Author value="Name" /> 
    <Website value="HP" /> 
</xml>

------------------

ありがとう!

この黄色のエラーは
謎でした。

PCのせいだと思いましたが

ModInfo.xmlの記述方法が
変わってたとは。

Link to comment
Share on other sites

2 hours ago, a_jp said:

thank you!

This yellow error is
It was a mystery.

I thought it was my PC's fault

The description method of ModInfo.xml is
What has changed?

----------------------

<?xml version="1.0" encoding="UTF-8" ?>
<xml>
    <Name value="SomeInternalName" /> 
    <DisplayName value="Official Mod Name" /> 
    <Version value="1.0.0.0" /> 
    <Description value="Mod to show format of ModInfo v2" /><!--Unchangeable?-->
    <Author value="Name" /> 
    <Website value="HP" /> 
</xml>

------------------

ありがとう!

この黄色のエラーは
謎でした。

PCのせいだと思いましたが

ModInfo.xmlの記述方法が
変わってたとは。

 

This was the old version (pre A21)

 

  <ModInfo>
    <Name value="BFT2020_AllInOneMod" />
    <Description value="MyMod" />
    <Author value="BFT2020" />
    <Version value="0.1" />
  </ModInfo>

 

So they added DisplayName and Website.  They also removed having to put in between ModInfo and /ModInfo.  Note A20 ModInfo files will work in A21, but won't around A22.

Link to comment
Share on other sites

  • 1 month later...
  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...