Jump to content

V2 of ModInfo.xml Template (for game V1.x)


Recommended Posts

<?xml version="1.0" encoding="UTF-8" ?>
<xml>
    <Name value=" " />
    <DisplayName value="   " />
    <Description value="    " />
    <Author value="   " />
    <Version value="1.0.0.1" />
    <Website value=" " />
</xml>

Link to comment
Share on other sites

I am using the following in my ModInfo

<?xml version="1.0" encoding="UTF-8" ?>
<xml>
    <Name value="EpicSpire's Quality ModSlot Boost" />
    <DisplayName value="EpicSpire's Quality ModSlot Boost" />
    <Version value="1.0.0.0" />
    <Description value="Increases the ModSlots based on Quality and Tier" />
    <Author value="TheEpicSpire" />
    <Website value="www.7daystodie.com" />
</xml>


but when i go to test my mod, I am getting a red line in my console saying : EpicSpire's Quality ModSlot Boost/ModInfo.xml does not define a valid non-empty Name (^[0-9a-zA-Z_\-]+$), ignoring

can someone explain to me what i am doing wrong?

 

Link to comment
Share on other sites

 

30 minutes ago, sphereii said:

Try a more boring Name value:  epicSpire_quality_modslot_boost

 

 

Thank you

ok, that works. is it because the name value has to be all one "word"/no spaces? or is it as simple as the name value has to be different than the display name?

Edited by EpicSpire (see edit history)
Link to comment
Share on other sites

On 6/27/2024 at 2:06 PM, xyth said:

<?xml version="1.0" encoding="UTF-8" ?>
<xml>
    <Name value=" " />
    <DisplayName value="   " />
    <Description value="    " />
    <Author value="   " />
    <Version value="1.0.0.1" />
    <Website value=" " />
</xml>

How does one go about using this to create a mod?

Link to comment
Share on other sites

15 hours ago, Diche_Bach said:

How does one go about using this to create a mod?

There is a good guide on xpath and xml to start with

 

I would recommend doing something small at first to learn the basics before trying something more complicated 
 

 

Link to comment
Share on other sites

  • xyth changed the title to V2 of ModInfo.xml Template (for game V1.x)
1 hour ago, BFT2020 said:

There is a good guide on xpath and xml to start with

 

I would recommend doing something small at first to learn the basics before trying something more complicated 
 

 

 

Thanks a bunch!

Link to comment
Share on other sites

Posted (edited)
7 hours ago, BFT2020 said:

There is a good guide on xpath and xml to start with

 

I would recommend doing something small at first to learn the basics before trying something more complicated 
 

 

Turns out, there is a mod that exists that does what I want (and maybe it works fine for 1.0 . . . in which case I get an excuse to prolong procrastination on learning to mod Unity games  :)

 

https://www.nexusmods.com/7daystodie/mods/3145

But if not, between the resource you have provided and that mod I should be able to get my start. Thanks again!

Edited by Diche_Bach
clarification (see edit history)
Link to comment
Share on other sites

  • 5 weeks later...
On 6/28/2024 at 2:46 PM, EpicSpire said:

EpicSpire's Quality ModSlot Boost/ModInfo.xml does not define a valid non-empty Name (^[0-9a-zA-Z_\-]+$), ignoring

can someone explain to me what i am doing wrong?

 

 

FWIW that error message is give you the RegEx that is telling you what is considered a valid name. You can drop ^[0-9a-zA-Z_\-]+$ into RegEx101.com for the explanation:

 

^ asserts position at start of a line
Match a single character present in the list below
[0-9a-zA-Z_\-]
+ matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)
0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)
a-z matches a single character in the range between a (index 97) and z (index 122) (case sensitive)
A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive)
_ matches the character _ with index 9510 (5F16 or 1378) literally (case sensitive)
\- matches the character - with index 4510 (2D16 or 558) literally (case sensitive)
$ asserts position at the end of a line

 

So, letters (both cases), numbers, dashes and underscores are valid characters.

 

Link to comment
Share on other sites

On 8/2/2024 at 11:50 AM, RyanFaeScotland said:

 

FWIW that error message is give you the RegEx that is telling you what is considered a valid name. You can drop ^[0-9a-zA-Z_\-]+$ into RegEx101.com for the explanation:

 

^ asserts position at start of a line
Match a single character present in the list below
[0-9a-zA-Z_\-]
+ matches the previous token between one and unlimited times, as many times as possible, giving back as needed (greedy)
0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)
a-z matches a single character in the range between a (index 97) and z (index 122) (case sensitive)
A-Z matches a single character in the range between A (index 65) and Z (index 90) (case sensitive)
_ matches the character _ with index 9510 (5F16 or 1378) literally (case sensitive)
\- matches the character - with index 4510 (2D16 or 558) literally (case sensitive)
$ asserts position at the end of a line

 

So, letters (both cases), numbers, dashes and underscores are valid characters.

 



thanks, i figured out what my problem was but knowing what the error message means helps me for future mistakes. Thanks a ton

Link to comment
Share on other sites

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...