*.u files with distinct filesizes, question

Discussions about UT99
darksonny
Masterful
Posts: 523
Joined: Sat Sep 13, 2008 10:24 pm

*.u files with distinct filesizes, question

Post by darksonny »

Hi all and happy new year everybody
I have a question, i saw on unrealarchives.org several *.u files with distinct filesizes, or does not have same filesize, what happens if I overwrite on system folder, it could lead to crash UT game? what if I rename two u files could this required file the map work?
User avatar
Barbie
Godlike
Posts: 3005
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: *.u files with distinct filesizes, question

Post by Barbie »

Since online gaming is possible, published files with same name but different content have been a source of trouble (aka "file mismatch"). If you are lucky version B of a package contains all of version A with some expansions (A is a subset of B). All packages (also maps) requiring A also work with version B but not in reverse.
If not, loading a package (map) fails if the required package is not available.

Further reading
"If Origin not in center it be not in center." --Buggie
Buggie
Godlike
Posts: 3255
Joined: Sat Mar 21, 2020 5:32 am

Re: *.u files with distinct filesizes, question

Post by Buggie »

Actually there exists specific case - textures. Textures marked as optional. So if map use textures from package and package loaded, but there no such texture, map will load, but everywhere, will appear default texture instead of missed textures.

For other, non-optional resources, map will not load. Same if in memory loaded pacakge without need resources, and this package can't be unloaded (used for example).
In such case you can't start such map or join to server.
darksonny
Masterful
Posts: 523
Joined: Sat Sep 13, 2008 10:24 pm

Re: *.u files with distinct filesizes, question

Post by darksonny »

Barbie wrote: Thu Jan 02, 2025 8:45 pm Since online gaming is possible, published files with same name but different content have been a source of trouble (aka "file mismatch"). If you are lucky version B of a package contains all of version A with some expansions (A is a subset of B). All packages (also maps) requiring A also work with version B but not in reverse.
If not, loading a package (map) fails if the required package is not available.

Further reading
Thanks for these info, then... speaking only for *.u files and seeing what Buggie did here:
viewtopic.php?t=15506

This mismatching issue could be solved by editing the u file with notepad, copy and paste all code that another u.* files does not have the same code into a single *.u file and save it with the same filename?
User avatar
Barbie
Godlike
Posts: 3005
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: *.u files with distinct filesizes, question

Post by Barbie »

darksonny wrote: Fri Jan 03, 2025 9:06 am This mismatching issue could be solved by editing the u file with notepad, copy and paste all code that another u.* files does not have the same code into a single *.u file and save it with the same filename?
And create another file with same name and different content? :pfff:
If it concerns only one or a few maps it might be easier to edit the maps and republish them with an unique name.
"If Origin not in center it be not in center." --Buggie
darksonny
Masterful
Posts: 523
Joined: Sat Sep 13, 2008 10:24 pm

Re: *.u files with distinct filesizes, question

Post by darksonny »

Barbie wrote: Fri Jan 03, 2025 2:55 pm
darksonny wrote: Fri Jan 03, 2025 9:06 am This mismatching issue could be solved by editing the u file with notepad, copy and paste all code that another u.* files does not have the same code into a single *.u file and save it with the same filename?
And create another file with same name and different content? :pfff:
If it concerns only one or a few maps it might be easier to edit the maps and republish them with an unique name.
how would you do to solving a u file mismatch?
User avatar
Barbie
Godlike
Posts: 3005
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: *.u files with distinct filesizes, question

Post by Barbie »

darksonny wrote: Fri Jan 03, 2025 4:48 pm how would you do to solving a u file mismatch?
Depends on specific case, do you have an example map? One approach could be: loading the package with other content, find all references in map to first package and replace it with references to latter one.
"If Origin not in center it be not in center." --Buggie
darksonny
Masterful
Posts: 523
Joined: Sat Sep 13, 2008 10:24 pm

Re: *.u files with distinct filesizes, question

Post by darksonny »

Hi!
I will have to look at which maps can give problems, it will take me a long time to know what they are, there are thousands of maps on the Medor site. :(

If I find the time before I retire I will put it here or in a new post, thanks.

pd question, I have several versions of, for example, a file called 2k4Sounds002.u to the file 2k4Sounds006.u Shouldn't I use only the sixth version instead of having all the versions inside the System folder? Is it possible that this is the problem with the game crashing?
User avatar
Barbie
Godlike
Posts: 3005
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: *.u files with distinct filesizes, question

Post by Barbie »

darksonny wrote: Mon Jan 06, 2025 9:23 am I will have to look at which maps can give problems, it will take me a long time to know what they are, there are thousands of maps on the Medor site. :(
What is/are the U-file(s) in question? I could do a simple text search on my available (MH) maps.
I have several versions of, for example, a file called 2k4Sounds002.u to the file 2k4Sounds006.u Shouldn't I use only the sixth version instead of having all the versions inside the System folder? Is it possible that this is the problem with the game crashing?
I don't think that having multiple versions of a file cause a game crash.
If you remove a file, other packages may depend on it and cannot be loaded then.
"If Origin not in center it be not in center." --Buggie
darksonny
Masterful
Posts: 523
Joined: Sat Sep 13, 2008 10:24 pm

Re: *.u files with distinct filesizes, question

Post by darksonny »

Barbie wrote: Mon Jan 06, 2025 4:22 pm
darksonny wrote: Mon Jan 06, 2025 9:23 am I will have to look at which maps can give problems, it will take me a long time to know what they are, there are thousands of maps on the Medor site. :(
What is/are the U-file(s) in question? I could do a simple text search on my available (MH) maps.
I cant remember which are they. As I said earlier, i dont have full time to look for thousand of maps to get what problematic *.u files are having crashes. Someday ill post a list of them. Thanks for your help and buggie.