边缘世界 RimWorld

边缘世界 RimWorld

Mod Manager
Thundercraft 2020 年 1 月 13 日 下午 12:34
Manifest.xml and "cross-promotions" of author's other mods
First, for those who don't know, I want to point out Mod Manager's official documentation on using a Manifest.xml: https://github.com/fluffy-mods/ModManager/blob/master/ForModders.md (BTW: After customizing it for your mod, you put this in your \about\ folder.)

In regards to having Cross-Promotions appear - a "mod showcase" of the mod author's other mods - this document says:
showCrossPromotions

If true (default), Mod Manager will show a bar with previews for mods you have uploaded to the Steam Workshop that the user doesn't have installed (or active, if the user enabled that setting).

NOTE: since the crosspromotion system relies relies on the Steam Workshop to fetch mod details and previews, it can only be used with mods that have a PublishedFileId. That means they either have to be downloaded from steam, or contain a PublishedFileId.txt file containing the PublishedFileId in the About folder of your mod.
NOTE: users can toggle the cross promotion feature off regardless of the setting you choose here.

To have a mod show cross-promotions, it merely has to have a Manifest.xml with the line:
"<showCrossPromotions>true</showCrossPromotions>"

Here's an example from one of my mods:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Manifest> <identifier>AntimatterPowerBoost</identifier> <version>1.3.1</version> <dependencies /> <incompatibleWith /> <loadBefore /> <loadAfter /> <showCrossPromotions>true</showCrossPromotions> <manifestUri /> <downloadUri /> </Manifest>

My questions:

Aside from the presense of a Manifest.xml, having a <showCrossPromotions> tag set to "true" and "PublishedFileId.txt" file containing the PublishedFileId, what else determines whether or not a mod author's mods will show up in the cross-promotional field?

Currently, I have 16 mods for RimWorld, of which 5 were either updated for or released for [1.0]. However, in the cross-promotion field, only 1 mod shows up:
Retriever, Go Fetch [1.0].

In contrast, I see that popular mods have many more than 1 mod show up in their cross-promotion. I see anywhere from 3 to 20 mods in the cross-promotions of other mods.

So, what am I doing wrong? Why is it that I only see 1?

I seem to recall that, originally, zero mods showed up in my cross-promotion. I know for a fact that I have <showCrossPromotions> set to "true" in my recent mods. Though, I will admit that, originally, I had <showCrossPromotions> set to "false" on a couple of my mods until a couple weeks ago.

Is the reason that I see even 1 in my cross-promotion because this mod was only released recently? Does it have to be recent? Does a mod have to reach a certain popularity, view count or download level? Did it help that I released this mod as a separate release for [1.0] help (instead of updating it for [1.0] like I did for another mod)?
最后由 Thundercraft 编辑于; 2020 年 1 月 13 日 下午 1:10
< >
正在显示第 1 - 2 条,共 2 条留言
Thundercraft 2020 年 1 月 13 日 下午 1:07 
Well, I figured out one of my issues. I re-read my post and noticed this section:
...will show a bar with previews for mods you have uploaded to the Steam Workshop that the user doesn't have installed...
Somehow, I overlooked that part.

Thing is, I have all 5 of my mods (for 1.0) installed. By that logic, though, I should not see even 1 mod in my cross-promotions... right? I have "Retriever, Go Fetch" installed, so why does it show up?

Another thing: I noticed that "Retriever, Go Fetch" shows up in the cross-promotion for... "Retriever, Go Fetch." Is this an oversight? Should a mod show up in the cross-promotions of itself?
最后由 Thundercraft 编辑于; 2020 年 1 月 13 日 下午 1:09
Fluffy  [开发者] 2020 年 1 月 21 日 上午 1:40 
Heya! Thanks for the interest ;)

There are two sources for mod promotions, the first is other mods on the workshop by the same author. Which of these are shown depends on the users' settings, but by default only mods that the user is not subscribed to and that are not currently active are shown (I think, feel free to double-check in game).

The second source is _meant to be_ the manifest, where mod authors' can add arbitrary extra mods to be shown in the mod showcase section - including mods by other authors. This has however **not been implemented yet**, so it doesn't actually work.

I hope that clears up the confusion.
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50