Is it possible to remove the version requirement for a mod?

Started by Sion, February 27, 2020, 04:43:13 AM

Previous topic - Next topic

Sion

Is it possible to remove the version requirement for a mod?
I have a super simple mod that probably will NEVER break ever, because it ONLY changes ONE number to another number.

So it feels enormously pointless to have the mod "break" because the version is wrong & I have to "update" the mod by just changing the version number every time Rimworld updates, is there some way to mark the mod as "always compatible" or like "compatible from version 0.1 to 9999.9" or something like that?
So many ideas... so little time...
Silence is the worst answer.

mvrak

If you are sure, then you just edit the mod yourself.

Go to the About.xml and replace
<targetVersion>1.0.0</targetVersion>
with
<supportedVersions>
<li>1.0</li>
<li>1.1</li>
</supportedVersions>


If that doesn't work, then the version requirement isn't the issue!

If you are asking how to make it even more flexible, then for the supportedversions tag notice that you don't have to specify anything after the first decimal place.  I mean how long was it from 1.0 to 1.1 even?   You can add 1.2 and 1.3 and that will certainly last... probably forever.

Sion

Ok, thanks.

I will add a list, going from 0.0 to like 9.9 or something.

I just wish there were a more "elegant" way to do this.

Like marking it as version *.* where the * represents "wildcards" that can represent any number or it would be enough if the * represents the current version.

Because it's just so silly that the list of version numbers will be like at least 10 times larger than the mod itself.
So many ideas... so little time...
Silence is the worst answer.

AKarnLiberated

I'd like to try this solution to a mod I use as well, but I can't seem to find the .xml file. I'm not very modder savvy, but I figured I'd give it a try as an act of desperation. The mod I'm using is Cargo Pod Transport[1.0], which has over 22,000 subscribers but the creator gave up and left his code listed on the workshop page on steam. I just can't seem to find any xml files in it, only .cs and .dll files. Any suggestions for "modding for dummies?" :)
Simplify.

Sion

For anyone else looking to do the same, here are the code, so you don't have to write this whole damn thing yourself (this should last us some decades)


<supportedVersions>
<li>0.0</li><li>0.1</li><li>0.2</li><li>0.3</li><li>0.4</li><li>0.5</li><li>0.6</li><li>0.7</li><li>0.8</li><li>0.9</li>
<li>1.0</li><li>1.1</li><li>1.2</li><li>1.3</li><li>1.4</li><li>1.5</li><li>1.6</li><li>1.7</li><li>1.8</li><li>1.9</li>
<li>2.0</li><li>2.1</li><li>2.2</li><li>2.3</li><li>2.4</li><li>2.5</li><li>2.6</li><li>2.7</li><li>2.8</li><li>2.9</li>
<li>3.0</li><li>3.1</li><li>3.2</li><li>3.3</li><li>3.4</li><li>3.5</li><li>3.6</li><li>3.7</li><li>3.8</li><li>3.9</li>
<li>4.0</li><li>4.1</li><li>4.2</li><li>4.3</li><li>4.4</li><li>4.5</li><li>4.6</li><li>4.7</li><li>4.8</li><li>4.9</li>
<li>5.0</li><li>5.1</li><li>5.2</li><li>5.3</li><li>5.4</li><li>5.5</li><li>5.6</li><li>5.7</li><li>5.8</li><li>5.9</li>
<li>6.0</li><li>6.1</li><li>6.2</li><li>6.3</li><li>6.4</li><li>6.5</li><li>6.6</li><li>6.7</li><li>6.8</li><li>6.9</li>
<li>7.0</li><li>7.1</li><li>7.2</li><li>7.3</li><li>7.4</li><li>7.5</li><li>7.6</li><li>7.7</li><li>7.8</li><li>7.9</li>
<li>8.0</li><li>8.1</li><li>8.2</li><li>8.3</li><li>8.4</li><li>8.5</li><li>8.6</li><li>8.7</li><li>8.8</li><li>8.9</li>
<li>9.0</li><li>9.1</li><li>9.2</li><li>9.3</li><li>9.4</li><li>9.5</li><li>9.6</li><li>9.7</li><li>9.8</li><li>9.9</li>
</supportedVersions>


Put it in your About.xml inside this tag <ModMetaData> put it here </ModMetaData> with the rest of the data, like author name & such.
So many ideas... so little time...
Silence is the worst answer.

Adamiks

You probably want to include versions such as 1.1.1 , 1.1.2 etc
and 1.10 , 1.11 , 1.12 etc

Sion

Is that really necessary?

Don't they all fall under the <li>1.1</li> tag?
So many ideas... so little time...
Silence is the worst answer.

BlackSmokeDMax

Quote from: Sion on March 07, 2020, 04:31:34 PM
Is that really necessary?

Don't they all fall under the <li>1.1</li> tag?


They do, and the instructions provided by ludeon specifically say to use the format x.y where x is major and y is minor.