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
Inhuman
Posts: 812
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 »

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 mods - MVX , SSB , SmartWFL , UTCmds , BotCommands , Smart Stats , join/leave announcer , NoSmoke , UTLogin , BrightSkins , Server Tran…
*Our Servers
Buggie
Godlike
Posts: 3107
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 »

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: 6433
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 »

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: 2909
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 »

Buggie wrote: Sat Oct 10, 2020 4:52 amI prefer follow Unix way in this question.
Does that mean that a *nix version will be available soon? :lol:
"If Origin not in center it be not in center." --Buggie
Buggie
Godlike
Posts: 3107
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 »

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: 3107
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 »

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
Inhuman
Posts: 812
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 »

Excellent!!!
Last edited by Que on Sun Oct 11, 2020 9:31 am, edited 1 time in total.
*Join our Discord Here.*
Our mods - MVX , SSB , SmartWFL , UTCmds , BotCommands , Smart Stats , join/leave announcer , NoSmoke , UTLogin , BrightSkins , Server Tran…
*Our Servers
Buggie
Godlike
Posts: 3107
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 »

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: 6433
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 »

:shock:
Buggie is the UZ Boss...
User avatar
Barbie
Godlike
Posts: 2909
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Signal: SIGSEGV [segmentation fault]

Post by Barbie »

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.
"If Origin not in center it be not in center." --Buggie
Buggie
Godlike
Posts: 3107
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 »

Attach MapPatcherClt.u file for reproduce.
User avatar
Barbie
Godlike
Posts: 2909
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 »

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.
"If Origin not in center it be not in center." --Buggie
Buggie
Godlike
Posts: 3107
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 »

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".
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 »

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.