Can the file mismatch being handled?

Discussions about Coding and Scripting
Post Reply
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Can the file mismatch being handled?

Post 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.
"Your stuff is known to be buggy and unfinished/not properly tested"
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Can the file mismatch being handled?

Post 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.
So long, and thanks for all the fish
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Re: Can the file mismatch being handled?

Post by PrinceOfFunky »

Well, the user could still be prompted.
"Your stuff is known to be buggy and unfinished/not properly tested"
nogardilaref
Masterful
Posts: 577
Joined: Tue Jun 20, 2017 1:00 pm
Personal rank: ⚋⚊⚌☰⚞⌖⚟☰⚌⚊⚋

Re: Can the file mismatch being handled?

Post 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.
User avatar
Chamberly
Godlike
Posts: 1963
Joined: Sat Sep 17, 2011 4:32 pm
Personal rank: Dame. Vandora
Location: TN, USA
Contact:

Re: Can the file mismatch being handled?

Post 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.
Image
Image
Image Edit: Why does my sig not work anymore?
Higor
Godlike
Posts: 1866
Joined: Sun Mar 04, 2012 6:47 pm

Re: Can the file mismatch being handled?

Post by Higor »

No, use the same packages the server is using.
Post Reply