Page 1 of 1

Can the file mismatch being handled?

Posted: Thu Dec 14, 2017 11:43 am
by PrinceOfFunky
Is there a class that checks file names and throws a file mismatch error when trying to connect to a server? And if so, can it be replaced?
Cause if it can, the client file could be moved-away/renamed using Unreal instead than forcing the user to close UT and move-away/rename the file manually to then restart UT and reconnect to the same server.

Re: Can the file mismatch being handled?

Posted: Thu Dec 14, 2017 1:07 pm
by JackGriffin
You shouldn't give the server the ability to decide legitimacy and alter the client like this at all. At the very least you'll have dumbass mappers replacing Ancient.utx with their "improved" versions and causing you to fail ACE checks, and at the very worst you give rogue servers the ability to really harm the clients if they wanted to.

I totally get what you are saying but there are safer ways of doing this. It's being worked on currently and a good solution is coming at some point. Hang in there.

Re: Can the file mismatch being handled?

Posted: Thu Dec 14, 2017 1:28 pm
by PrinceOfFunky
Well, the user could still be prompted.

Re: Can the file mismatch being handled?

Posted: Thu Dec 14, 2017 1:40 pm
by nogardilaref
Isn't this one of the things Higor was working on in his engine?

Either ways, even that being the case, there are other ways to solve the mismatches problem, and that is by avoiding them altogether.
Search what developers did in PHP before namespaces were implemented, and that should give a strong clue how developers should name their packages to avoid this problem altogether, because regardless of mismatching or not, having 2 packages with the same name from different authors is always a big problem regardless.

The same goes for classes.
Textures and other static resources are rather immune to this given that they have their own package and group which already serve as namespaces.

Re: Can the file mismatch being handled?

Posted: Thu Dec 14, 2017 3:19 pm
by Chamberly
XC_GE is already working on this.

Meanwhile, it's still manageable manually by client side. There are only 1 file that is server side only so the client doesn't have to deal with the credit issue, which that is already posted here in UT99.org.

Re: Can the file mismatch being handled?

Posted: Thu Dec 14, 2017 5:46 pm
by Higor
No, use the same packages the server is using.