Jump to content

GetModConfigData retrieve the Client value instead of the Host


Recommended Posts

Hello,

 

so basically, I have recipe for custom prefab in my mod, and they are configurable from the mod config screen.

Buuuuut, if the client and the host have different configuration file, it makes a mess :

The client see the recipe from his config file.

The host expect the recipe from his config file

 

So when the client try to craft the itemfrom his recipe, it just doesn't work -> crafting animation, then nothing out of it.

 

How to make the client retrieve the host config parameters instead of the ones in his own config file? I though that "all_clients_require_mod = true" is supposed to handle that but obviously it isn't since I put that in my modinfo.

 

And is it me or it was not the case before the update of the UI 2 weeks ago?

Edited by ZupaleX
Link to comment
Share on other sites

I think it is actually bugged, but I may be wrong...

 

EDIT : OK, I am pretty sure it is bugged at the moment. This is behaving the same with all the mods I have installed when I took a closer look at it.

So if somebody at Klei could take a look at this?

Edited by ZupaleX
Link to comment
Share on other sites

Update : The issue seems to occur for the following cases

 

Dedicated server : when the dedicated server has in its folder "mod_config_data" a config file which end in _CLIENT. In this case it seems that what is send to the client is not the actual mod config data used by the host, but the content of the _CLIENT file instead.

 

Player hosted server: always ignore the host config file

Edited by ZupaleX
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
 Share

×
  • Create New...