Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: alphonsus on January 12, 2003, 11:46:56 PM

Title: Adding deficons - can't get new icons to show
Post by: alphonsus on January 12, 2003, 11:46:56 PM
I've added some new definitions to the OS3.9 deficons editor - such as #?.xls being an xls file (obviously)
How does deficons allocate icons because I still get the standard blank def_project icon?
I was assuming it just looked for a def_#? where #? is the same as that listed in the editor.
Any ideas what's going on?
Title: Re: Adding deficons - can't get new icons to show
Post by: BouncingAyatollah on January 13, 2003, 01:20:19 AM
Try this, add the New type name (e.g. xml) AND the recognition rules in DefIcons e.g. PATTERN #?.xls

Create an icon in SYS:Prefs/Env-Archive/Sys (or ENVARC:Sys - same thing) called "def_xls", or at the file level def_xls.info

This will be copied to ENV:Sys on boot which is where all the def_icons are.
Title: Re: Adding deficons - can't get new icons to show
Post by: alphonsus on January 13, 2003, 06:53:10 PM
Hmm - tried that and it didn't pick up.
Incidentally, I found that deficons seems to be case sensitive - I had a new Def_LHA that didn't work until renamed as def_lha - although I do use winuae, which has some strange filesystem quirks.
Title: Re: Adding deficons - can't get new icons to show
Post by: BouncingAyatollah on January 14, 2003, 04:11:40 AM
Mmmm... I just got it working in WinUAE (latest version), although yesterday I did use my A1200.

I did this, in DefIcons add New type "xls" under "project", i.e. not in another MetaClass, look for PATTERN #?.xls
Save.

Opened SYS:Prefs/Env-Archive/Sys and from Wb menu "Copy"ed an existing icon (def_key). Did Icon Information and from there IconEdit, added crude X (!) to icon, saved. Renamed to "def_xls" (lowercase).

Now dragged an XLS file from Winbloat to my WinUAE HD "work" drawer. When I opened the work: partition in WinUAE and did Show All Files, it displayed the blank page default icon. Did F12->Misc->Reboot Amiga. Looked again, now picked up proper icon.

Have a look at small grab of area. (http://www.bouncingayatollah.co.uk/aorgimages/def_xls.gif)

I do know that DefIcons is quite "clever" in how it matches. Yesterday I tested by making a quick test text file something.xls and DefIcons matched it first with ISASCII so it didn't get the xls icon but the "text file" one! So I tested then with a proper xls file.