[0.15.X] Dynamic recipe mods cause issues
-
- Long Handed Inserter
- Posts: 56
- Joined: Sat Mar 05, 2016 5:44 am
- Contact:
[0.15.X] Dynamic recipe mods cause issues
My mod Omnimatter has dynamic recipes that can be changed and sometimes with mod settings and such for multiplayer, it says different content but same version number, when they all are equal.
Re: [0.15.X] Dynamic recipe mods cause issues
For example, the attached mod settings file works fine when I host the server, but players are unable to join unless I send them the settings file. Expected result would be that they would download the settings from the server like other mods.
- Attachments
-
- omnimatter_1.1.2.zip
- (7.99 MiB) Downloaded 87 times
-
- mod-settings.json
- (1.19 KiB) Downloaded 100 times
Last edited by TokMor on Thu Jun 01, 2017 4:36 am, edited 2 times in total.
-
- Long Handed Inserter
- Posts: 56
- Joined: Sat Mar 05, 2016 5:44 am
- Contact:
Re: [0.15.X] Dynamic recipe mods cause issues
If you change a mod in any way, you need to provide the modified mod to the players beforehand or they will not be able to join, there is no way around that.
Re: [0.15.X] Dynamic recipe mods cause issues
Code: Select all
if settings.startup["omnimatter-infinite"].value then
require("prototypes.generation.omnite-inf")
end
Because you are doing things like that. Which is a no no. It changes the CRC of the mod which in turns means it won't think it is the same version unless everyone has the exact same settings to begin with.
Re: [0.15.X] Dynamic recipe mods cause issues
Correct.Nexela wrote:Code: Select all
if settings.startup["omnimatter-infinite"].value then require("prototypes.generation.omnite-inf") end
Because you are doing things like that. Which is a no no. It changes the CRC of the mod which in turns means it won't think it is the same version unless everyone has the exact same settings to begin with.
"require" all fines at all times and then conditionally add them to data.raw based off the settings.
If you want to get ahold of me I'm almost always on Discord.