|
|
|
#1
|
|||
|
|||
|
wrathma: Thanks for the detailed description!
Speaking of switches: wem-packer: Here, using "-s" or "-s -b" does not cause any particular confusion, during compress, unlike the unpacker. wem-unpacker: Do not use the "-b" switch here, otherwise it may happen that the first time it is run it will fail (referring to "hdiff/xdelta"), while the second time it will run without errors. It is better to use it without switches, except for the "-tN" switch. This is related to the fact that the "original" *.wem file is also in the folder, which conflicts with one of the members of the hdiffz+oggre chain and should appear at the end of the process, as the new *.wem file. That is, wem-unpacker deletes the original *.wem file and exits here, without continuing to run the hdiffz+oggre chain to then finish the unpacking properly, as it should. Code:
C:\>wem-packer.exe -s -b music_frontend Found 4 .wem files to pack (recursive) Using 2 threads with size check (keeping backups) 268707965.wem: output is bigger than input, skipped 681733649.wem: output is bigger than input, skipped 775589494.wem: output is bigger than input, skipped All files packed successfully in 7s! C:\>wem-unpacker.exe music_frontend Found 1 .ww files to unpack (recursive) Using 2 threads [0%] 0/1 Files processed, ETA: 0s Errors encountered: 108187332.ww: xdelta failed Completed with errors in %s 0s C:\>wem-unpacker.exe music_frontend Found 1 .ww files to unpack (recursive) Using 2 threads [0%] 0/1 Files processed, ETA: 0s All files unpacked successfully 4s! Running the GO compiler with these switches, I managed to produce somewhat smaller EXEs. It should be 100% compatible with Win7 (also with 32-bit editions, theoretically going back to Vista, up to the early 32-bit version of Win10.) although, all "embedded binaries" are XP-compatible. Code:
go build -a -gcflags=all="-l -B" -ldflags="-w -s" -o myapp main.go UPD: Embedding binary files via alternative methods: https://github.com/samuelngs/binary-go workable from these "wem-(un)packer's" project? Last edited by kj911; 21-04-2026 at 16:23. |
| The Following User Says Thank You to kj911 For This Useful Post: | ||
wrathma (22-04-2026) | ||
| Sponsored Links |
|
#2
|
|||
|
|||
|
Quote:
support windows 7. i tried to build it today with golang v1.20 on win10 and the compiled exe works fine on windows 7. also one thing i noticed, that xdelta or wemtool also doesnt work on windows xp (i might be missing out something, check screenshots). i tried to compress the wem files in win 7 x64 vm it worked. then i generated a batch script and sent that to my win xp vm, and then it gave me some errors that say xdelta wont work. unfortunately thats something i cant fix. Quote:
Code:
go build -ldflags="-s -w" -tags windows -trimpath -gcflags=all="-l -B" ... use any external packages). and for the alternative binary embedding method, i dont see any reason touse it. i also used to use this binary-go library long ago but recent golang updates made this one obsolete. now the functionality is built into golang. this is what i use (you can see the first few lines of my code) - Code:
//go:embed tools/ww2ogg.exe var ww2ogg []byte //go:embed tools/oggre_enc.exe var oggre_enc []byte when running the tool it simply copies the binary data from the exe to a temp folder. see extractTools() from line 50-72 of wem-packer.go. ![]() ![]()
Last edited by wrathma; 22-04-2026 at 12:15. Reason: forgot to add screenshots |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Support and Help on Game Compression Tools and Methods | Snake288 | Conversion Tutorials | 4 | 18-04-2020 07:30 |
| Help choosing an mp3 player | ikermalli | Media Players | 8 | 23-08-2010 00:15 |
| [REQ] Pac-Man World 2 Starforce 3 Crack (RLD Tools inside) | newone111 | PC Games | 48 | 21-03-2010 01:22 |
| Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 10:48 |
| Daemon Tools Question | Overthere | PC Games | 11 | 16-06-2003 18:02 |