what's the use of "<Mod id"?

onlysky1

Chieftain
Joined
Oct 23, 2016
Messages
44
Hello, everyone, I 'm making a mod that is designed to make all unit update free, but there is one issue I do not understand: in the begining of every modinfo file, there is a line that reads:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="bf590d3a-d802-439d-ae34-c96099357a90">

What does it mean? if I want to make my own mod, then should I have a mod id? where does the mod id come from? can I randomly create one?
 
The 'Mod ID' is used for unique mod id's. Having the same mod id's will cause only the first one to load. The others are just ignored (at best).

http://www.nexusmods.com/civilisationvi/mods/5/?

That'll give you a link that'll pop a unique ID for you, I've used it on all my mods.

There's also a stand alone console one I've grabbed (either from here or Reddit, can't rem now), I've checked it out once or twice, but haven't used it 'officially' yet... still working on a couple things. :)
 
If you want it to be random (so that the chances of another mod having the same are utterly minimal), use a random one. Trying to generate something random by hand is time consuming and doesn't work

Thanks! :thumbsup:
 
Back
Top Bottom