![ServerSync](https://media.forgecdn.net/avatars/thumbnails/254/696/256/256/637199290945083080.png)
Wild Card Support
P3rf3ctXZer0 opened this issue ยท 9 comments
Okay I have been thinking to simplify updating a mod it may be useful to add wildcard support so the tool would always sync only the latest wild card deleting the oldest one. An example would be buildcraft.1.2.* may 10th file change time could be replaced by buildcraft 1.2.* may 12 do you realize some mods like the cofh core update hourly? Its a pain to keep files updated with a update stream that large.
They have the same file name. It checks to see if the files are different by running a checksum on them.
Okay that makes it difficult since most file names change when they update. That would be why wild cards would work better.
Oh okay sounds good then thank you. Also thank you for making the mod work I am not sure what you mean by I didn't update the jar but it might be good to call it 2.1 or 2.2 to show it was changed. I updated the jar by overwriting the file but its possible I had mc running at the time so of course it was not actually overwritten.
I just updated my github to be 2.2
I also added a feature to make updating faster.
I unfortunately will not add support for the server pushing updates to a client. The client has to do it themselves.
The server only serves and does not do things for the client. If the server receives a command it will do what it's instructed. For example one command is 'recursive' the client sends that command and the server responds with all of it's files.
However, I think I can suggest an alternative that will make us both happy.
I can add a function 'updateNeeded' It will ask the server if there has been an update since it last asked. If there has it will go through the update process, if there hasn't it will skip it and connect straight to the server.
How does that sound?
I explained this poorly ... what I mean by wildcard the ability for the client to get the latest wildcard * lets say build craft and delete the older version. Otherwise the way server sync works and correct me if I am wrong it can only grab new files it does not remove old or outdated files.
Incorrect. My program updates outdated files.
It compares the checksum between 2 files and if they don't match it updates the file.