Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Application questions and support => Topic started by: Aegis on February 17, 2016, 11:46:50 PM

Title: What's with all the broken icons (OS4)?
Post by: Aegis on February 17, 2016, 11:46:50 PM
Hey everyone - I've lost track of the amount of apps I've downloaded from OS4depot with busted icons (a PNG.info instead of a *real* .info) - anyone know a quick way to fix this?

Also, *damn* the OS4 coders like to rely on third-party libraries and sObj's - I don't remember it ever being quite this bad on 3.x or it that the rose-tinted glasses??
Title: Re: What's with all the broken icons (OS4)?
Post by: cgutjahr on February 18, 2016, 12:40:35 AM
Quote from: Aegis;804183
anyone know a quick way to fix this?

OS4's icon.library supports plugins, there one for PNG images which can be downloaded here (http://www.os4depot.net/index.php?function=showfile&file=library/misc/png_im.lha).

Apparently, the icon designers have that installed and never bother to convert their icons into AmigaOS format, so most users simply install said plugin aswell.

Quote

Also, *damn* the OS4 coders like to rely on third-party libraries and sObj's - I don't remember it ever being quite this bad on 3.x or it that the rose-tinted glasses??

Everything requiring "sObjs" has been ported from Linux - over there, you don't have to install dependencies manually (the system does that for you) so having lots of dependencies is not a big deal.

That kind of (complex) software never got ported to OS3, so it's up to you to decide if having it and thus suffering from 'sobj hell' is better or worse than not having it ;)

I don't remember the amount of external libraries required by actual Amiga software being worse than on OS3. The only difference is that with OS3, you probably installed most of the dependencies (MUI?, MCCs X, Y and Z (the latter only in version beta.gamma please) Reqtools?, asyncio.library?...) some 15 to 20 years ago - so you already forgot about it :D
Title: Re: What's with all the broken icons (OS4)?
Post by: eliyahu on February 18, 2016, 12:41:15 AM
@Aegis

not sure why this isn't included, but try installing the PNG icon module from os4depot.net (download link (http://os4depot.net/index.php?function=showfile&file=library/misc/png_im.lha)). you'll need to install it in LIBS:IconModules and restart workbench. i remember doing this on my SAM years and years ago, but i haven't had to on any of my machines since. i wonder if it wasn't included in the classic version for some reason? no idea.

as for third-party libraries, loads of OS3.x software requires the same in my experience. was there some specific software you were referring to?

edit: cgutjahr beat me to the submit button. heh. ;)

-- eliyahu
Title: Re: What's with all the broken icons (OS4)?
Post by: Aegis on February 18, 2016, 01:19:10 AM
Thanks guys - I downloaded png_im and it works as you said - still having problens installing/running software though - in this case it's Fuse for OS4. (http://os4depot.net/index.php?function=search&tool=simple)

It says it needs libbz2 (only after you run it, after installing png_im so you *can* run it) so I go download that, libbz2 (http://os4depot.net/index.php?function=showfile&file=development/library/misc/libbz2.lha) says I need to enter the following:

Copy SDK/#? ALL SDK:
MakeLink SOFT SDK:local/newlib/lib/libbz2.so libbz2.so.1.0


Except I don't have an SDK assign (of course) - I dunno - I hate to be mean-spirited about free software but stuff like this is so sloppy.
Title: Re: What's with all the broken icons (OS4)?
Post by: Oldsmobile_Mike on February 18, 2016, 03:54:03 AM
Dumb question, but does the Peter K. icon library work with OS4?  AFAIK it supports PNG icons natively.
Title: Re: What's with all the broken icons (OS4)?
Post by: cha05e90 on February 18, 2016, 10:24:22 AM
Quote from: Oldsmobile_Mike;804191
Dumb question, but does the Peter K. icon library work with OS4?  AFAIK it supports PNG icons natively.


No. And it's not necessary, just drop in the png icon module and you're done. No magic.
Title: Re: What's with all the broken icons (OS4)?
Post by: chris on February 18, 2016, 10:25:15 AM
Quote from: Aegis;804188
Thanks guys - I downloaded png_im and it works as you said - still having problens installing/running software though - in this case it's Fuse for OS4. (http://os4depot.net/index.php?function=search&tool=simple)


The emulator?  (your link doesn't work)

That probably needs rebuilding (new version) - without SObjs.

Quote

It says it needs libbz2 (only after you run it, after installing png_im so you *can* run it)


I wasn't aware it was a PNG icon.  That is sloppy, I don't normally do that, but then my icons usually come from elsewhere so if I don't realise it's PNG I won't convert it.  Although I can't actually remember how to convert them off-hand.

Quote
so I go download that, libbz2 (http://os4depot.net/index.php?function=showfile&file=development/library/misc/libbz2.lha) says I need to enter the following:

Copy SDK/#? ALL SDK:
MakeLink SOFT SDK:local/newlib/lib/libbz2.so libbz2.so.1.0


Except I don't have an SDK assign (of course) - I dunno - I hate to be mean-spirited about free software but stuff like this is so sloppy.


Copy the libbz2.so to SObjs, then run:
MakeLink SOFT SObjs:libbz2.so SObjs:libbz2.so.1.0
(you may not even need the makelink)
Title: Re: What's with all the broken icons (OS4)?
Post by: cha05e90 on February 18, 2016, 10:29:41 AM
Quote from: Aegis;804188
Except I don't have an SDK assign (of course) - I dunno - I hate to be mean-spirited about free software but stuff like this is so sloppy.

It's not that complicated. *.library goes to LIBS: (like always) and *.so goes to SOBJS:.

Funny, it's still the same like 20 years ago ;-) In the end you might ask the author/porter of Fuse why the hell he didn't include the *.so into his Fuse package.
Title: Re: What's with all the broken icons (OS4)?
Post by: chris on February 18, 2016, 11:30:44 AM
Quote from: cha05e90;804200
In the end you might ask the author/porter of Fuse why the hell he didn't include the *.so into his Fuse package.


You could do that, but all I'd tell you is that I can't even remember what I was doing last week, let alone four years ago!
Title: Re: What's with all the broken icons (OS4)?
Post by: cha05e90 on February 18, 2016, 11:35:47 AM
Quote from: chris;804201
You could do that, but all I'd tell you is that I can't even remember what I was doing last week, let alone four years ago!


Of course.. ;-) ...nothing wrong with that.

The same is (often) true for AmigaOS standard *.libraries - sometimes "3rd party" libs were included, sometimes not...I'm used to this, I'm an Amiga user... :-)
Title: Re: What's with all the broken icons (OS4)?
Post by: chris on February 18, 2016, 12:07:27 PM
Quote from: cha05e90;804203
The same is (often) true for AmigaOS standard *.libraries - sometimes "3rd party" libs were included, sometimes not...I'm used to this, I'm an Amiga user... :-)

The problem with including 3rd party libraries, is you then need to include all the licensing guff (if it is allowed to be re-distributed in this manner at all), and the chances are the damn thing is out-of-date by the time you've even uploaded the archive containing it.

It is objectively "better" for the 3rd party libraries to be installed from their own distribution archives.  But that doesn't necessarily help when the distribution archives are aimed at developers, have no Installer, or are for some reason on the author's own site only and deleted when they rage-quit the platform eight years ago.  Or whatever.  And it makes things more difficult for users to install.
Title: Re: What's with all the broken icons (OS4)?
Post by: Aegis on February 18, 2016, 01:21:42 PM
Hey everyone - thanks for replying!

Chris - it's great to hear from you in this thread and I appreciate that stuff can slip through.

As I mentioned, I hate to be critical of software that people like yourself have dedicated time and energy to and made available to the community for free - without contributors such as yourself the Amiga community would have disappeared a long time ago.

That said, (and this is a general observation, not directed specifically at you) I'm a stickler for things 'working out of the box' - everything I do I have the user in mind and were I to create some software for the community (ha! I wish) then I'd make sure that any dependencies are mentioned in the documentation - not just what they are, but where to find them and where to install them.

WinUAE's just about to become significantly more useful with the 3.3.0 update and I've been testing a lot of apps and games with it to uncover bugs and also to form the basis of a beginners guide to getting OS4 running optimally under emulation - something that's been made quite frustrating by the large amount of undocumented dependencies I'm finding in OS4 apps and games.

Snoopy's useful in tracking down what's missing in a given app but the user really shouldn't have to - there's tons of software on os4depot that I've quite simply discounted from mentioning in my guide since I've been unable to get it working in a reasonable time-frame.
Title: Re: What's with all the broken icons (OS4)?
Post by: eliyahu on February 18, 2016, 01:36:54 PM
Quote from: chris;804199
... my icons usually come from elsewhere so if I don't realise it's PNG I won't convert it.  Although I can't actually remember how to convert them off-hand.

i just use ssolie's converter: http://os4depot.net/index.php?function=showfile&file=graphics/convert/pngicon2amiga.lha

-- eliyahu
Title: Re: What's with all the broken icons (OS4)?
Post by: chris on February 18, 2016, 02:37:35 PM
Quote from: Aegis;804207
As I mentioned, I hate to be critical of software that people like yourself have dedicated time and energy to and made available to the community for free - without contributors such as yourself the Amiga community would have disappeared a long time ago.

Your complaints in this instance are entirely justified, and if I'd encountered them I would probably have been complaining too.

The only reason I have the PNG iconmodule installed myself, is because I got fed up of downloading archives with broken icons!

FUSE is in need of an update anyway.

@eliyahu
Thanks, I'll try to remember that one.
Title: Re: What's with all the broken icons (OS4)?
Post by: Aegis on February 18, 2016, 05:29:07 PM
Well I got it working :) turns out I already had the SOBJs I needed, I just had to make soft links for the versions Fuse was looking for - in this case:

libbz2.so.1.0
libxml2.so.9

I guess after you've been using OS4 for a while this becomes second nature but it's a big gotcha to newbies like me (and somehow I got a ton of stuff working without having to do this at all) - the only other soft links I have in SOBJs are for libz and libpng and I'm pretty sure I didn't make those :D

Regarding Fuse, (and again, I'm not picking on you Chris - it's just as good an example as many I've encountered) - here's the readme:

Quote from: Fuse Readme
This is a port of fuse 1.0.0.1

The Amiga port supports decompression of files using xfdmaster.library,
and uses ASL for the file requesters.

32-bit Deficons are included for the main Spectrum file types, courtesy
of Ken "Ken's Icons" Lester.

See XFD.OS4 and Icons.OS4 files in the Docs directory for more info on
the above.  For general information about Fuse, see
http://fuse-emulator.sourceforge.net

I'd love it if you and other devs would stick notes for any dependencies in here - and telling users they need to hit F1 to bring up the Fuse menu wouldn't hurt either since by default it launches fullscreen. (I found it in the fuse.guide but you know what us users are like ;))

One last general gripe - *what* is with all these OS4 apps that have console windows you have to >NIL: away to get rid of? Must be a developer thing but I hate seeing these - could we not have a tooltype to hide them (and God yes, *please* use and document tooltypes :D).

Fuse is very slick though Chris and runs nicely under WinUAE/OS4 - thanks for taking the time to port it! :)
Title: Re: What's with all the broken icons (OS4)?
Post by: chris on February 18, 2016, 07:38:58 PM
Quote from: Aegis;804215
Well I got it working :) turns out I already had the SOBJs I needed, I just had to make soft links for the versions Fuse was looking for - in this case:

libbz2.so.1.0
libxml2.so.9

I guess after you've been using OS4 for a while this becomes second nature but it's a big gotcha to newbies like me (and somehow I got a ton of stuff working without having to do this at all) - the only other soft links I have in SOBJs are for libz and libpng and I'm pretty sure I didn't make those :D

SObjs are weird as they have the version numbers in the filenames, and different compatible versions have different filenames, so you need the softlinks.  It also entirely depends on the dev's setup as to what filenames it looks for - sometimes the version numbers on the end don't need to be there, but then you get problems when an incompatible version comes along.

I decided a long time ago (obviously not quite as long ago as that Fuse port) that they were more trouble than they were worth and now only use them when necessary.

Quote
I'd love it if you and other devs would stick notes for any dependencies in here

I normally stick them in there or in the .guide.  I probably thought it was only using ones which come with the OS.

Quote
One last general gripe - *what* is with all these OS4 apps that have console windows you have to >NIL: away to get rid of? Must be a developer thing but I hate seeing these - could we not have a tooltype to hide them (and God yes, *please* use and document tooltypes :D).

In Fuse's case IIRC it writes something to or simply opens stdout/stderr.  That's the case for lots of ports, which is probably why you've seen it so frequently.  It's usually too much hassle to find out why.

Quote
 
Fuse is very slick though Chris and runs nicely under WinUAE/OS4 - thanks for taking the time to port it! :)

Cool.  It needs updating though.  I tend to use ASp unless I need some of the more advanced features (also ASp is a lot less hassle to use to create .TAP files - I'm not even sure Fuse can do this, and TZXs aren't concatable, if that is a word, which it probably isn't)