ServerSync

ServerSync

48.5k Downloads

Server ignore patterns do not prevent client from deleting mods in Client mod folder

TylzSomeone opened this issue · 14 comments

commented

Serversync Version: 4.1.0

Minecraft Version: 1.16.5

Issue: Ignore patterns do not affect client

This is more of a question. I setup an ignore list on the server side for mods such as journeymap. I do not want journeymap in the server mods but I want clients to be able to use the mod and not have the mod deleted when they run sync. They can setup their own .cfg and ignore list, but is this not something I can do on the server side so my players don't have to worry about it?

commented

Fixed client ignore not working, for any other issues raised in this ticket please raise a different ticket if they are still a problem
https://github.com/superzanti/ServerSync/releases/tag/v4.2.0

commented

Maybe this is part of the refuse client mods config?

commented

Or are there other modes aside from mirror that can be used?

commented

Or is there a good way to sync "serversync-client.json" to their pc with the ignore patterns added?

commented

Or is there a good way to sync "serversync-client.json" to their pc with the ignore patterns added?

Look is https://github.com/superzanti/ServerSync/wiki/Client-Mods
This project can meet your needs!!

commented

You are the best thank you again for solving my problems!!!!

commented

With refuse client mods selected, the sync action still downloads all the mods in the clientmods folder.

commented

Adding an ignore pattern on the client that matches the file that they don't want will probably work as an alternative to refuse_client_mods.

The refuse functionality probably broke when I changed to file redirects instead of custom handling for clientmods.

commented

#165 Is tracking allowing servers to send a list of known client mods that they don't want serversync to delete.

For now the only real option is using clientmods, you could set your mods directory to push mode but that would very easily leave your clients in a position where they cant connect due to invalid or incompatible mods being present.

commented

I am using the clientmods, a client is trying to refuse the push of the clientmods but it is not allowing it. It still forces the mods to be downloaded

commented

Actually, ignoring means it's like it doesn't there. So if you set it to mirror mode, client will delete it because "it's not there on the server".

commented

Actually, ignoring means it's like it doesn't there. So if you set it to mirror mode, client will delete it because "it's not there on the server".

If the server configures a file to be ignored it will behave as it that file does not exist on the server yes.

If the client configures a file to be ignored it will (should) prevent the file from being accepted and prevent the said file from being deleted as well.

commented

If the client configures a file to be ignored it will (should) prevent the file from being accepted and prevent the said file from being deleted as well.

Yes, it does. Sometimes the server don't have so much bandwidth. And large mods are required to be downloaded somewhere else to prevent lags(and it seems this syncing doesn't support large mods as well ). Maybe you can set a max speed for server to be configured.

commented

If you are looking to limit bandwidth you could reduce the buffer size.

"connection": {
    "port": 38067,
    "buffer": 1048576 <---
},

What issues are you seeing with large files? I have transferred several gigabytes via SS before with no issues.