Subject: UADE2 - song detection, and LHA

From: Vlcice
Date: Wed Jan 4 05:34:16 2006

To: Kohina-UADE-Forum
Now that UADE2 is compiling and working decently on Mac OS X (gargantuan buffer aside), I've been playing with it a bit, and I've noticed a couple of things that may be bugs.

First, uade123 doesn't appear to detect my installed version of LHA to decompress LHA archives, like the older uade commandline app did. Is this intentional, not been added yet, or just buggy on my system?

As well, I've noticed that neither uade123 nor the XMMS plugin will detect some of my Protracker songs, which play properly in the older uade plugin. A few examples are http://de4.aminet.net/mods/jazzc/CoffeeInTheNig.lha and http://de4.aminet.net/mods/jazzc/H0useMess.lha.

[Edit: I should add, I'm using UADE 2.01, compiled with GCC 3.3.]

---

From: mld/uade team
Date: Wed Jan 4 11:39:04 2006

To: Kohina-UADE-Forum
Hi,

About the mod issue: it's intentional... UADE checks if filesize and calculated size match to get rid of those too many bad rips. I'm afraid it's now pretty strict and makes no exception :) Anyway both mods have trailing garbage. They are larger than expected and therefore get rejected.

There are several ways to proceed now...

a) easiest way: look for a good rip: E.g. on Modland FTP and AMP:

H0use Mess -&gt; ftp://ftp.modland.com/pub/modules/protracker/jazzcat/h0use mess.mod
Coffee in the Night -&gt;  http://dascene.net/downmod.php?index=35570 

b) you can fix the mod by stripping those two mods...btw. "prowiz for pc" does a handy job there-&gt; http://asle.free.fr/prowiz/

c) you can replace the PTK-Prowiz with the older one from uade 1.03, which plays anything whether size matches or not. 

d) you can use the PS3M replay instead (e.g. .uade2/uade123 -P players/PS3M MOD.h0use_mess, which also play Protracker mods.

hope it helped

mld/uade team

---

From: Vlcice
Date: Wed Jan 4 20:38:24 2006

To: Kohina-UADE-Forum
Ah, thank you very much! Since I'm too lazy to find proper versions, I'll use the PTK-Prowiz from UADE 1.03; or maybe I'll see if Prowiz compiles and runs properly on Mac OS X.

---

From: shd
Date: Wed Jan 4 21:27:57 2006

To: Kohina-UADE-Forum
[quote:11a963a514="mld/uade team"]
About the mod issue: it's intentional... UADE checks if filesize and calculated size match to get rid of those too many bad rips. I'm afraid it's now pretty strict and makes no exception :) Anyway both mods have trailing garbage. They are larger than expected and therefore get rejected.
[/quote:11a963a514]

Could you make 50 line command line tool which checks size and is able to fix the size? man 2 truncate or ftruncate. Mods that are too short should just be killed (or appended from dev/zero and then truncated ;)

---

From: shd
Date: Wed Jan 4 21:29:22 2006

To: Kohina-UADE-Forum
[quote:158075bb56="Vlcice"]Ah, thank you very much! Since I'm too lazy to find proper versions, I'll use the PTK-Prowiz from UADE 1.03; or maybe I'll see if Prowiz compiles and runs properly on Mac OS X.[/quote:158075bb56]

I advice against that strongly. We will write a tool (if not Michael then me) that scans and fixes modules. I hope you will then switch back to the new ptk-prowiz.

---

From: Vlcice
Date: Wed Jan 4 21:34:13 2006

To: Kohina-UADE-Forum
[quote:8a72d46e61="shd"][quote:8a72d46e61="Vlcice"]Ah, thank you very much! Since I'm too lazy to find proper versions, I'll use the PTK-Prowiz from UADE 1.03; or maybe I'll see if Prowiz compiles and runs properly on Mac OS X.[/quote:8a72d46e61]

I advice against that strongly. We will write a tool (if not Michael then me) that scans and fixes modules. I hope you will then switch back to the new ptk-prowiz.[/quote:8a72d46e61]

I will definitely, yes; in the meanwhile I'll use UADE 1.03 rather than replace the PTK-Prowiz. (As it turns out, Prowiz fails to compile for me even after I fix its hardcoded -march, so fixing the modules myself isn't an available route.) Thank you very much for your help!

Incidentally, are there plans to make use of LHA again in the future, or should I reorganize my collection and decompress all of my modules?

---

From: shd
Date: Wed Jan 4 21:41:03 2006

To: Kohina-UADE-Forum
[quote:d6ebcbf3a6="Vlcice"]
Incidentally, are there plans to make use of LHA again in the future, or should I reorganize my collection and decompress all of my modules?[/quote:d6ebcbf3a6]

No support for depacking in the future, so you should decompress. We decided to reduce application complexity and let users depack their modules. However, to help that process we have written an external tool to handle squash and powerpacker packed modules in patch mode:

http://zakalwe.virtuaalipalvelin.net/~shd/foss/amigadepacker/

With amigadepacker, -p means pretend so it only reports which files
are packed:

$ find /path/ -type f |tr \\n \\0 |xargs -0 amigadepacker -p

This should print a list of squash/pp packed songs. Then running:

$ find /path/ -type f |tr \\n \\0 |xargs -0 amigadepacker

will decompress them. Brave people don't of course use the pretend mode or do backups ;)

Sources for amigadepacker can be found from uade cvs. module 'amigadepacker' in the root.

---

From: mld/uade team
Date: Wed Jan 4 22:22:21 2006

To: Kohina-UADE-Forum
Hi folks,

FYI: I just commited a less strict version of PTK-Prowiz to cvs. Maybe the transition to a stric ted cheks was to hard...
Until we have a tool for fixing those mods, it accepts files with max 1KB trailing garbage for now. Truncated files still get refused :)

hope it helps

mld/uade team

---

From: mld/uade team
Date: Thu Jan 5 00:38:51 2006

To: Kohina-UADE-Forum
just an idea to fix your files...

You can use the uade debug mode, hunt for the mod in memory and save it back :)

e.g.:
uade123 -d mod.cry-spy

&gt; M
...
Found possible ProTracker (31 samples) module at 0x28000.
Name "crying spy ", Length 0xc384 bytes.
&gt;S mod.crying_spy 0x28000 0xc384
&gt;q

:)))