Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

External tools, software and sites for creating or editing UT99 resources.
User avatar
Que
Masterful
Posts: 671
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Que » Sat Oct 10, 2020 3:07 am

perhaps in new version we could have ability to throw *.* or *.unr at uz.exe
makes sense as no0ne will be compressing 1 file at a time

perhaps you could include in readme Secktor2111 example for bulk processing for time being.
*Join our Discord Here.*
Our most popular mods - MVX , SSB , SmartWFL , UTCmds
Show
~Our Servers~

Buggie
Godlike
Posts: 1762
Joined: Sat Mar 21, 2020 5:32 am

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Buggie » Sat Oct 10, 2020 4:52 am

I do not think so.
1. Workaround exists. So it is not a problem at all.
2. Such things must be handled by command interpreter, not by tool itself. Initially bad design in DOS.
I prefer follow Unix way in this question.

User avatar
sektor2111
Godlike
Posts: 6028
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by sektor2111 » Sat Oct 10, 2020 7:29 am

A member was writing that batch stuff for compressing UZ files but using UCC - of course, I don't like the way with SPACES, here being shown clearly what SPACE is for... - separating command from its switches... anyway, I think that toy can be converted for UZ processing and message "Please, be patient" can be a bit changed as long as this UZ is faster than lightning... :lol2:

User avatar
Barbie
Godlike
Posts: 2478
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Barbie » Sat Oct 10, 2020 12:45 pm

Buggie wrote:
Sat Oct 10, 2020 4:52 am
I prefer follow Unix way in this question.
Does that mean that a *nix version will be available soon? :lol:
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Buggie
Godlike
Posts: 1762
Joined: Sat Mar 21, 2020 5:32 am

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Buggie » Sat Oct 10, 2020 1:06 pm

No. This mean one tool for one task.
But i find solution from MS - add special link to setargv.obj file:
https://docs.microsoft.com/en-us/cpp/c- ... ew=vs-2019

I hope this not break work in old Windows like WinXP.

About Linux version - maybe later if I able setup VM with GCC and add support to it.

Buggie
Godlike
Posts: 1762
Joined: Sat Mar 21, 2020 5:32 am

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Buggie » Sat Oct 10, 2020 7:33 pm

New version v5.0:

- faster compress
- support Linux
- support files masks on Windows

https://github.com/SeriousBuggie/UZ/releases/latest

Linux:

Code: Select all

# ./uz compress CTF-Blice-Alpha.unr
Used 2 threads.
Compressing CTF-Blice-Alpha.unr (87328898 bytes)
stage 0: 0.458020 secs
stage 1: 2.085494 secs
stage 2: 1.748025 secs
stage 3: 1.609433 secs
Total: 5.900972 secs
Compressed CTF-Blice-Alpha.unr -> CTF-Blice-Alpha.unr.uz (20%)
Windows:

Code: Select all

uz compress CTF-Blice-Alpha.unr
Used 8 threads.
Compressing CTF-Blice-Alpha.unr (87328898 bytes)
stage 0: 0.609000 secs
stage 1: 1.029000 secs
stage 2: 1.747000 secs
stage 3: 1.263000 secs
Total: 4.648000 secs
Compressed CTF-Blice-Alpha.unr -> CTF-Blice-Alpha.unr.uz (20%)

Code: Select all

uz compress E1M4.umx
Used 8 threads.
Compressing E1M4.umx (98087852 bytes)
stage 0: 0.796000 secs
stage 1: 1.747000 secs
stage 2: 10.468000 secs
stage 3: 7.316000 secs
Total: 20.327000 secs
Compressed E1M4.umx -> E1M4.umx.uz (95%)

Code: Select all

uz compress AS-HiSpeed.unr
Used 8 threads.
Compressing AS-HiSpeed.unr (4418189 bytes)
stage 0: 0.031000 secs
stage 1: 0.078000 secs
stage 2: 0.125000 secs
stage 3: 0.109000 secs
Total: 0.343000 secs
Compressed AS-HiSpeed.unr -> AS-HiSpeed.unr.uz (29%)

Code: Select all

uz decompress CTF-Blice-Alpha.unr.uz
Used 8 threads.
stage 0: 0.796000 secs
stage 1: 0.967000 secs
stage 2: 0.655000 secs
stage 3: 0.359000 secs
Total: 2.777000 secs
Decompressed CTF-Blice-Alpha.unr.uz -> CTF-Blice-Alpha.unr

Code: Select all

uz decompress E1M4.umx.uz
Used 8 threads.
stage 0: 3.666000 secs
stage 1: 4.649000 secs
stage 2: 1.373000 secs
stage 3: 0.406000 secs
Total: 10.094001 secs
Decompressed E1M4.umx.uz -> E1M4.umx

Code: Select all

uz decompress AS-HiSpeed.unr.uz
Used 8 threads.
stage 0: 0.062000 secs
stage 1: 0.078000 secs
stage 2: 0.047000 secs
stage 3: 0.031000 secs
Total: 0.218000 secs
Decompressed AS-HiSpeed.unr.uz -> AS-HiSpeed.unr

User avatar
Que
Masterful
Posts: 671
Joined: Mon Dec 09, 2019 5:49 am
Personal rank: ...

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Que » Sun Oct 11, 2020 2:17 am

Excellent!!!
Last edited by Que on Sun Oct 11, 2020 9:31 am, edited 1 time in total.
*Join our Discord Here.*
Our most popular mods - MVX , SSB , SmartWFL , UTCmds
Show
~Our Servers~

Buggie
Godlike
Posts: 1762
Joined: Sat Mar 21, 2020 5:32 am

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Buggie » Sun Oct 11, 2020 8:48 am

New version v5.1:

- fix possible issues on Linux systems with more than 32 CPU

https://github.com/SeriousBuggie/UZ/releases/latest

User avatar
sektor2111
Godlike
Posts: 6028
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by sektor2111 » Sun Oct 11, 2020 8:53 am

:shock:
Buggie is the UZ Boss...

User avatar
Barbie
Godlike
Posts: 2478
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Signal: SIGSEGV [segmentation fault]

Post by Barbie » Sun Oct 11, 2020 8:18 pm

Sadly I got a SIGSEGV. Is it because I run it on a 32 bit system? (I know that it is outdated :-P)

ut99@ubuntu-x32:~/bin$ uname -rm
3.13.0-35-generic i686

ut99@ubuntu-x32:~/bin$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise

ut99@ubuntu-x32:~/bin$ ls -l
total 1408
-rwxr-xr-x 1 ut99 ut99 919164 Okt 13 2007 Core.so
-rwxr-xr-x 1 ut99 ut99 336728 Okt 10 21:05 libSDL-1.1.so.0
-rwxr-xr-x 1 ut99 ut99 174549 Okt 10 21:23 uz
-rw-rw-r-- 1 ut99 ut99 3192 Okt 11 21:04 uz.log

ut99@ubuntu-x32:~/bin$ ./uz compress ../ut-server/System/MapPatcherClt.u
Used 4 threads.
Compressing ../ut-server/System/MapPatcherClt.u (9571 bytes)
stage 0: 0.000207 secs
stage 1: 0.003140 secs
stage 2: 0.000681 secs
Signal: SIGSEGV [segmentation fault]
Aborting.
----------------------------------------------------------------------
Forum Software wrote:Invalid file extension: uz.log :pfff:
You do not have the required permissions to view the files attached to this post.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Buggie
Godlike
Posts: 1762
Joined: Sat Mar 21, 2020 5:32 am

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Buggie » Sun Oct 11, 2020 8:21 pm

Attach MapPatcherClt.u file for reproduce.

User avatar
Barbie
Godlike
Posts: 2478
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Barbie » Sun Oct 11, 2020 8:36 pm

It happened with every file I tried, also when I used root account. I added MapPatcherClt.u anyway.
Where should the compressed file go to? Current directory or source file directory?

ut99@ubuntu-x32:~/bin$ ./uz compress ../ut-server/Maps/MH-Crescendo.unr
Used 4 threads.
Compressing ../ut-server/Maps/MH-Crescendo.unr (8934042 bytes)
stage 0: 0.113069 secs
stage 1: 0.188290 secs
stage 2: 0.301423 secs
Signal: SIGSEGV [segmentation fault]
Aborting.
You do not have the required permissions to view the files attached to this post.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett

Buggie
Godlike
Posts: 1762
Joined: Sat Mar 21, 2020 5:32 am

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Buggie » Mon Oct 12, 2020 12:39 am

New version v5.2:

- fix crash on Linux

https://github.com/SeriousBuggie/UZ/releases/latest
Barbie wrote:
Sun Oct 11, 2020 8:36 pm
Where should the compressed file go to? Current directory or source file directory?
"source file directory".
Source path + ".uz".

Buggie
Godlike
Posts: 1762
Joined: Sat Mar 21, 2020 5:32 am

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Buggie » Mon Nov 09, 2020 10:24 pm

New version v5.3:

- remove bad compressed files.

https://github.com/SeriousBuggie/UZ/releases/latest

Reino
Novice
Posts: 17
Joined: Sun Dec 08, 2019 7:55 pm

Re: Fast UZ compressor, drop-in replacement UCC.exe for compress/decompress unreal .uz files

Post by Reino » Mon Mar 22, 2021 12:34 am

My (rented) server returns "Download package 'Terrain' failed: Server refused to send 'Terrain'".
Could someone compress 'terrain.umx' for me please? 'UZ.exe' crashes immediately the moment I run it.
You do not have the required permissions to view the files attached to this post.