English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 02 August 2018, 22:51   #2461
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
Quote:
Originally Posted by PeterK View Post
Maybe the OS 4.1 icons all have correct 4-color planar images with the same size as the ARGB images. Then my library won't replace the planar images by default and AfA has no problems. But many old OS 4.0 icons still have these stupid 256 color pklanar images include which looks terrible wrong without a palette. (I don't have OS 4.1)

You can force the replacement with my option "KillPlanarImages".
I have to add "KillPlanarImages" on startup-sequence of OS 3.9?
AMIGASYSTEM is offline  
Old 02 August 2018, 22:56   #2462
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
No, you can also call it from a shell window before you convert the icons.

Btw, OS 4.0 has no such problems like AfA_OS, because it reads the ARGB size correctly from the FORM FACE chunk and not from the DiskObject Gadget structure.
PeterK is offline  
Old 02 August 2018, 23:07   #2463
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
Quote:
Originally Posted by PeterK View Post
No, you can also call it from a shell window before you convert the icons.
Ok inserted "KillPlanarImages" in Startup-Sequence after the command IPrefs and now the icons Original Icons OS4.1 converts are no longer seen (see screenshot)

Quote:
Btw, OS 4.0 has no such problems like AfA_OS, because it reads the ARGB size correctly from the FORM FACE chunk and not from the DiskObject Gadget structure.
So the problem is only on the old OS 4.0 icons

Last edited by AMIGASYSTEM; 11 August 2018 at 12:25.
AMIGASYSTEM is offline  
Old 02 August 2018, 23:12   #2464
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
No, the problem is that AfA reads the ARGB image size from the wrong location in the icon. And it also writes the size to the wrong location and destroys icons:
http://eab.abime.net/showthread.php?...51#post1189751
PeterK is offline  
Old 02 August 2018, 23:17   #2465
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
Yes "resize from AFA Prefs" causes the corruption of the OS4 icons
AMIGASYSTEM is offline  
Old 02 August 2018, 23:31   #2466
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Time to go now. It seems that hexaae comes with new bug reports soon ...
PeterK is offline  
Old 02 August 2018, 23:51   #2467
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
I forgot ... of course, those who use AFA-OS will have no need to manipulate the icons on 3.5/3.9 systems because they can do it comfortably on AFA-OS
AMIGASYSTEM is offline  
Old 03 August 2018, 10:51   #2468
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Quote:
Originally Posted by PeterK View Post
Time to go now. It seems that hexaae comes with new bug reports soon ...
No bugs but I have a question: why SwazInfo on icon image drag'n'drop from another (NI or CI) icon won't save the new icon image on exit? Is there a side-effect in icon.library 46 or was it normal behaviour for SwazInfo..
P.S.
At least SwazInfo finally displays NI/CI icons correctly with WB3.9 thanks to your library...

Last edited by hexaae; 03 August 2018 at 11:06.
hexaae is offline  
Old 03 August 2018, 11:51   #2469
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
Quote:
Originally Posted by hexaae View Post
No bugs but I have a question: why SwazInfo on icon image drag'n'drop from another (NI or CI) icon won't save the new icon image on exit?

Excuse me hexaae I do not know if I understand correctly, but I have no problem after the drag'n'drop, SwazInfo to me correctly saves the new image OS3.9 Standard that AfA-OS

-------------- Italiano -------------

Scusami hexaae non so se ho capito bene, ma io non ho nessun problema dopo il drag'n'drop, a me SwazInfo salva correttamente la nuova immagine sia su OS3.9 Standard che AfA-OS
AMIGASYSTEM is offline  
Old 03 August 2018, 13:21   #2470
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
I'm using:
SwazInfo 1.8 (30-Ott-1994)
Copyright ©1993,94 David Swasbrook

icon.library 46.4.490
(68020)

workbench.library 45.132 ( 8-Set-2012)
hexaae is offline  
Old 03 August 2018, 13:22   #2471
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Quote:
Originally Posted by hexaae View Post
No bugs but I have a question: why SwazInfo on icon image drag'n'drop from another (NI or CI) icon won't save the new icon image on exit? Is there a side-effect in icon.library 46 or was it normal behaviour for SwazInfo..
P.S.
At least SwazInfo finally displays NI/CI icons correctly with WB3.9 thanks to your library...
SwazInfo can only handle (display and swap) old planar images, nothing else. If you have a NewIcon, ColorIcon, PNG or OS4 icon my library always returns pointers to the decoded planar representation of these higher formats in the 3.1 DiskObject Gadget structure to the calling program like SwazInfo. So SwazInfo gets something that it is able to display. The pointers to the original planar images are saved internally in the extended OS 3.5 DiskObject structure. The icon.library v45 does the same, but AfA_OS doesn't swap the planar images.

When you save in SwazInfo my library restores the original planar images in the DiskOject Gadget structure like v45, so finally the images didn't change at all. And again AfA doesn't swap anything back here, thus SwazInfo could succesfully replace the old planar images, which look all a bit broken in AfA_OS since it writes some pointers directly into the first bytes of all planar images resulting in some graphics corruption in the first line.
PeterK is offline  
Old 03 August 2018, 13:52   #2472
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Sigh… I wish SwazInfo sources would have not been lost so that someone could finally update it to add support for modern icons
(RAWBinfo is too buggy and causes crashes with 110+ tall CI icons on drag'n'drop, and also MuForce hits in some other circumstances. Rubbish IMHO, so the only alternative is SwazInfo, out of date sigh… Std WBInfo() is ok and supports drag'n'drop etc. without crashes or MuForce hits, but doesn't support double-click to quickly comment tooltypes and tooltypes drag'n'drop, like SwazInfo. Have to live with std WBInfo() up to new WB3.1.4 at least )

I need to manipulate Tootlypes often, especially for WHDLoad games where I use custom configs with (e.g.) "ExecutePostDisk=c:uae-configuration cachesize 0 immediate_blits false…."

Last edited by hexaae; 03 August 2018 at 14:00.
hexaae is offline  
Old 03 August 2018, 14:21   #2473
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
As I already said somewhere else, I'm using a combo of SwazInfo and RAWBInfo and never had any real problems with that solution. SwazInfo opens first and I mainly use that for editing the ToolTypes, DefaultTool or icon type, but I can still call the "original function" from the menu to open RAWBInfo, which is better for image swapping and some other things. I never had any real crashes, although RAWBInfo sometimes throws Enforcer hits like reading from address 0, which is harmless. I can drag & drop icons up to 256x256 (please remember that NewIcons have a limit of 93x93). But I'm not a professional bug hunter like you.
PeterK is offline  
Old 03 August 2018, 14:25   #2474
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
Quote:
Originally Posted by hexaae View Post
(RAWBinfo is too buggy and causes crashes with 110+ tall CI icons on drag'n'drop, and also MuForce hits in some other circumstances)

[ Show youtube player ]
AMIGASYSTEM is offline  
Old 03 August 2018, 15:00   #2475
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
@AmigaSystem
Issues of RAWBinfo are well known. Run it with Enforcer/MuForce and you'll see... If you don't believe me try to drag'n'drop this icon image over another icon with RAWBinfo. https://nofile.io/f/V3dWVRFwoUa/BatmanTheMovie.info
hexaae is offline  
Old 03 August 2018, 15:16   #2476
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
Quote:
Originally Posted by hexaae View Post
@AmigaSystem
Issues of RAWBinfo are well known. Run it with Enforcer/MuForce and you'll see... If you don't believe me try to drag'n'drop this icon image over another icon with RAWBinfo

Yes, your icon BatmanTheMovie gives me memory problems with RAWBinfo on AFA-OS, it also behaves the same with the drag'n'drop on OS4.1, but the exchange works well if I use CopyIcon,this confirms that the problem is only on "RAWBinfo"

-------- Italiano -------

Si l'icona la tua BatmanTheMovie con mi da problemi di memoria con RAWBinfo su AFA-OS, si comporta uguale anche con il drag'n'drop su OS4.1, ma lo scambio funziona bene se uso CopyIcon, questo conferma che il problema sia solo su "RAWBinfo"
AMIGASYSTEM is offline  
Old 03 August 2018, 15:45   #2477
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
Quote:
Originally Posted by AMIGASYSTEM View Post
Yes, your icon BatmanTheMovie gives me memory problems with RAWBinfo on AFA-OS, it also behaves the same with the drag'n'drop on OS4.1, but the exchange works well if I use CopyIcon,this confirms that the problem is only on "RAWBinfo"

-------- Italiano -------

Si l'icona la tua BatmanTheMovie con mi da problemi di memoria con RAWBinfo su AFA-OS, si comporta uguale anche con il drag'n'drop su OS4.1, ma lo scambio funziona bene se uso CopyIcon, questo conferma che il problema sia solo su "RAWBinfo"
Yep, RAWBinfo requires some fixes… Anyway std WBInfo() never fails and gives no issues even with large icons like that.
hexaae is offline  
Old 03 August 2018, 15:54   #2478
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Quote:
Originally Posted by hexaae View Post
@AmigaSystem
Issues of RAWBinfo are well known. Run it with Enforcer/MuForce and you'll see... If you don't believe me try to drag'n'drop this icon image over another icon with RAWBinfo. https://nofile.io/f/V3dWVRFwoUa/BatmanTheMovie.info
Your Batman icon is buggy. ProcessIcon shows 1.2 billion colors for the second image. When I drag & drop it into RAWBInfo the CI image data just gets deleted, but I don't get any Enforcer hits on saving. A planar dot icon remains. CopyIcon has no problems. My icon.library limits the number of colors to 256.

The icon has only 1 IMAG chunk = 1 image. Don't know why ProcessIcon reports 2 images ? That could be a bug in ProcessIcon.

Btw, you can repair this Batman icon with IconEdit.

Ok, now we know that RAWBInfo is buggy, ProcessIcon is buggy, IconEdit is buggy anyway, and all other software in this world is buggy too. Send a bug report to god, what a buggy world is that ??

Last edited by PeterK; 03 August 2018 at 16:19.
PeterK is offline  
Old 03 August 2018, 16:45   #2479
hexaae
Bug hunter
 
hexaae's Avatar
 
Join Date: Jul 2006
Location: Italy
Age: 48
Posts: 2,161
What's your problem with bugs? You take it too bad They do exists, as well as betatester figures to find them (usually appreciated by devs as they do the dirty and annoying part of the work while devs can focus on development).
Important thing is to fix them (at least those harmful, hopefully) when found.
As you know AmigaOS classic, without protected memory, can easily crash and that's why it's even more important with it

Naah, there is a lot of software which is not buggy and won't make AmigaOS unstable even after a big uptime.
I'm here to help us all having better software in the end, not to blame anyone, don't get me wrong when I report bugs

P.S:
That Batman icon was generated with PPaint ( http://aminet.net/gfx/ppaint/pio_icon.lha ) … using 128 or 256 colors but probably saved as dual (unselected+selected this would make more that 256 total colors)… have to check this. No I saved it as single Coloricon, strange…

EDIT:
yep, must be a bug of Processicon because I just saved a brush PNG 256 colors from PPaint, and loaded the image through IconEdit. Then saved it as single image icon from IconEdit, and Processicon still reports the same wrong 2nd image data (??), so it's not a bug in pio_icon save format for PPaint and the icon is not buggy/corrupt.

Last edited by hexaae; 03 August 2018 at 18:15.
hexaae is offline  
Old 03 August 2018, 17:07   #2480
kolla
Banned
 
Join Date: Nov 2007
Location: Trondheim, Norway
Posts: 1,893
Remember that one of the strongholds of Amiga was that it was so elegant and easy to program for? Yeah. Not so easy anymore, is it, or anyone of us would have smacked together a new WBInfo() replacement within a weekend
kolla is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
ClassicWB Full and icon.library 46.4 Retroplay project.ClassicWB 8 05 August 2018 13:57
WB library conflict/versions Amiga1992 support.Apps 3 22 July 2010 18:47
PNG Icon to Color Icon Converter? Leandro Jardim request.Apps 1 24 May 2010 04:39
What's the latest version of icon.library for OS3.9? NovaCoder support.Apps 3 30 June 2009 15:43
Requesting icon.library v44+... nikvest request.Other 2 16 September 2007 01:58

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:17.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.50661 seconds with 14 queries