Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings don't work in MP server #605

Open
dureiken opened this issue Mar 11, 2023 · 17 comments
Open

Settings don't work in MP server #605

dureiken opened this issue Mar 11, 2023 · 17 comments

Comments

@dureiken
Copy link

Hi

thanks for your mod. It works well on client size but I don't achieve to set what I want on server side 👍
I use the same config file for both : on client I disabled harvestable and progress, it doesn't appear on single player game, but when I join a server with the same config file on the server and the client, it shows these items.

Is there somewhere else to set it up for server ?

Thanks

@McJty
Copy link
Collaborator

McJty commented Mar 11, 2023

Version? What config file did you modify? What did you modify?

@dureiken
Copy link
Author

sorry
1.18.2
I modify : theoneprobe-client.toml

#Show harvest level (0 = not, 1 = always, 2 = sneak)
showHarvestLevel = "0"
#Show if the block can be harvested (0 = not, 1 = always, 2 = sneak)
showCanBeHarvested = "0"

@McJty
Copy link
Collaborator

McJty commented Mar 11, 2023

Ok. I have to check this out.

@dureiken
Copy link
Author

ok thanks :)

@dureiken
Copy link
Author

Hi, any news ? :) thanks

@McJty
Copy link
Collaborator

McJty commented Mar 14, 2023

Oh don't expect results THAT soon. I have tons of mods and currently concentrating on something else

@dureiken
Copy link
Author

oh ok :)

@SigmaFlame
Copy link

The reason is that the file theoneprobe-client.toml is ignored by the server.
It is still not fixed in 2024.

@McJty
Copy link
Collaborator

McJty commented Jan 13, 2024

All the options that are in theoneprobe-client.toml are client only and don't need to be on the server. What option there do you want to have on the server?

@SigmaFlame
Copy link

I want that all the info given by The One Probe needs the probe in hand, except for the mod name and the harvestibility.
For now, it is working only for a singleplayer world, even if the client and the server have the exact config files.

theoneprobe-client.toml : https://pastebin.com/xW4CguSN
theoneprobe-common.toml : https://pastebin.com/qrvP6XY9

Those files are identical both on client and server, but my settings from theoneprobe-client.toml only work in singleplayer.

@McJty
Copy link
Collaborator

McJty commented Jan 13, 2024

I still don't understand. Can you give a concrete example of a setting that is not working properly and where you set that setting?

@SigmaFlame
Copy link

In singleplayer, all is working as expected.

In multiplayer, for example, I can see when a baby animal will grow, without the probe in hand, but even with the probe in hand, I can't identify an infected block by a silverfish.
That's correspond with the defaults config of the mod :

showMobGrowth = "NORMAL"
showSilverfish = "NOT"

@McJty
Copy link
Collaborator

McJty commented Jan 13, 2024

Well those options are only client config options. Obviously they don't work on the server. That's how it is programmed

@SigmaFlame
Copy link

SigmaFlame commented Jan 13, 2024

So the server can't decide when the probe is needed or not and only the defaults settings are used?
The client should at least follow its own theoneprobe-client.toml but when connected on a server, it stops using it.

@McJty
Copy link
Collaborator

McJty commented Jan 13, 2024

Those settings have nothing to do with needing or not needing the probe. The only setting that controls that one is the 'needsProbe' setting and that's in the common config which works for both server and client.
Nothing from the client config can be used on the server

@SigmaFlame
Copy link

But as I said, the client ignores its own client settings when joining a multiplayer server.

@McJty
Copy link
Collaborator

McJty commented Jan 13, 2024

hmm ok. That I don't know. I would have to check that. No idea why that would be though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants