English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 11 February 2015, 04:35   #1321
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 839
OS3.5 type (Volume = Disk in DO terms)
Attached Files
File Type: lha ram_disk.lha (1.6 KB, 158 views)
Michael is offline  
Old 13 February 2015, 00:19   #1322
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
No problems here with your def_RAM.info when copied into ENVARC:Sys.

The RAM: icon appears ghosted and opens a window with "All Files" as shown on the screenshot.

Do you use a dos.library replacement? Or do you use MakeLink for the icon? (I don't use either)
Attached Thumbnails
Click image for larger version

Name:	def_RAM.png
Views:	270
Size:	81.3 KB
ID:	43217  

Last edited by PeterK; 13 February 2015 at 01:52.
PeterK is offline  
Old 13 February 2015, 04:26   #1323
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 839
Same here, just the ENVARC:Sys/

But I found one important difference!

If I run WB on it's own, it works too!

But if I run WB from DO5(in WB replacement mode->
CLI->LoadWB), then it fails with v407, but works with v405.
Michael is offline  
Old 13 February 2015, 05:52   #1324
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Hmm, very strange way to start the Workbench that you use!

How are you starting LoadWB exactly? As a background process? And why?

Anyhow, this unusual way to start the WB could explain the problem because the name of your Workbench task is probably not simply "Workbench" anymore, but maybe something like "Background CLI Workbench" or a similar name.

What does SnoopDOS display for the taskname when you open the RAM: window?

And indeed, for all tasks with a different taskname than "Workbench" or "Asyn"cWB the loading of a deficon for disks has changed between 404 and 407. That was done to fix the behaviour of DOpus5. Since DOpus5 doesn't use a constant taskname, I tried to exclude the tasks "Workbench" and "Asyn"cWB.

Not starting the Workbench with LoadWB from the end of the startup-sequence may also have other negative side effects if a different taskname is used.
PeterK is offline  
Old 13 February 2015, 16:31   #1325
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 839
Hmm... I don't follow your idea what to look at ?!

The process name in SnoopDos is the same
WB from DO5 -> [2] Workbench
WB from SS -> [9] Workbench

Looking at task names, Scout mask WB as special and hides it as Workbench [Workbench]

Xopa/SysInspector give : CLI-BGRD(11): Workbench (from DO5)
or as CLI-BGRD(9): Workbench (if started form SS)

So there is no major difference.

I use popup shell (or just CLI) and type LoadWB to load it, if I need it, if I have DO5 as WB replacement.
Michael is offline  
Old 13 February 2015, 17:31   #1326
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Ok, if a different taskname is not the reason then I've no idea what else it could be. But whatever it is, you will probably have to live with this change or you should start the Workbench as usual.

And I cannot reproduce your DOS CLI environment without more detailed information (s-s, etc). So, no chance to fix it.
PeterK is offline  
Old 13 February 2015, 19:29   #1327
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 839
It's simple!

Run DO5 in WB replacement mode (LOADDB) from S-S

Then open a CLI window, and type LoadWB to load WB parallel on top of DO5.

So it might be the screen name or something! (if it is inherited or differs to default WB)
Michael is offline  
Old 13 February 2015, 19:55   #1328
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Argh !!

I was always reading DOS instead of DO5

Now, I can reproduce it from DOpus5 CLI starting LoadWB and check it.

Update: The problem is caused by your crazy configuration, because if the Ram Disk has no icon then DOpus5 gets the def_disk.info now, no matter what type it has (this is a DOpus5 fix). But when you start LoadWB after that has happened then the WB finds a RAM:disk.info already and won't load the def_RAM.info anymore.

Solution: Copy >NIL: ENVARC:SYS/def_RAM.info RAM:disk.info

Last edited by PeterK; 13 February 2015 at 21:16.
PeterK is offline  
Old 14 February 2015, 05:41   #1329
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 839
This has the following problems...

I prefer an empty RAM disk, so no icon copying there.

DO5 has it's own icon datatype/prefs system, so it uses those defines for disk icons here, so it's not supposed to get any def_icons by default. The same for all other file types.

I guess you are targeting DO5 to use def_icons with an extra patch to DO5 that disables it's internal filetype engine. It might be interesting to some, but it should not be made default. So a command like DO5_use_def_icons for icon.lib would make sense, so that it forces the v407 behaviour and by default icon.lib assumes v405 behaviour for DO5.
Michael is offline  
Old 16 February 2015, 17:42   #1330
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Update to icon.library 46.4.408:

Totally reworked the internal "makeplanarmask" routine, which is used for old-style icons with only one image and inverse colors for the selected icon except for the background which appears transparent. Removed lots of memory allocations and freeings, many useless bitmaps and blitter calls and other trash like several Flood() calls from the original code. Tell me if something has been broken by my aggressive clean-up. It saves some hundred bytes.

When LoadWB is started after DOpus5 its tasknumber is now stored again. This should bring back the correct viewmodes for disk icons on the WB window. Better DOpus5 deficon support may come later.
PeterK is offline  
Old 18 February 2015, 15:59   #1331
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 839
I have a new problem!

Since v407 and 408 now I can't set default image for virtual floppy disks ;-)

DO5 has a mask for FF?: drives, and assigns a floppy icon to them when there is no icon. But now I get a default harddisk icon for them.

v405 works ok.
Michael is offline  
Old 18 February 2015, 21:15   #1332
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Yes of course, I know that, my dear nagger
Quote:
Better DOpus5 deficon support may come later.
Comes next, but it's hard to analyse what DOpus5 really does.

Quote:
now I can't set default image for virtual floppy disks ;-)
DO5 has a mask for FF?: drives, and assigns a floppy icon to them when there is no icon.
How exactly do you setup the class assignments? I don't get it
What should I do in DOpus5 to assign def_RAM.info to RAM: (No copy or link)?
What should I do in DOpus5 to assign def_DF0.info to DFx: as default icon?


Btw, I've just noticed that the Flood() function calls, which I removed from my makePlanarMask routine now, were only used for the old WB 1.x icons to restrict the background transparency to the image surroundings.

Last edited by PeterK; 19 February 2015 at 14:43.
PeterK is offline  
Old 20 February 2015, 17:26   #1333
HanSolo
Registered User
 
Join Date: Aug 2014
Location: Gdynia/Poland
Posts: 162
Quote:
Originally Posted by PeterK View Post

How exactly do you setup the class assignments? I don't get it
What should I do in DOpus5 to assign def_RAM.info to RAM: (No copy or link)?
What should I do in DOpus5 to assign def_DF0.info to DFx: as default icon?
checkout amikit , there is def_RAM.info in env:sys and def_DF0.info copied as def_DF1 etc
HanSolo is offline  
Old 22 February 2015, 07:00   #1334
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 839
My disk file types
Attached Files
File Type: lha do5-disks.lha (824 Bytes, 112 views)
Michael is offline  
Old 24 March 2015, 18:23   #1335
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Update to icon.library 46.4.409:

Sorry, there was a small, bad bug in 408, causing crashes in some cases. This issue and the problems with DefIcons under DOpus5 should be fixed now.


I was forced to stay offline since February, 20th by the German Telekom, who disconnected my DSL line. Since I don't have a Handy and my health condition is too bad to leave the house anymore, I was totally isolated from the rest of this world for more than one month, until my sister visited me yesterday, just before I was running out of food. So finally, I could call the O2-hotline and the Telekom reconnected me to the DSL-net today.
PeterK is offline  
Old 24 March 2015, 19:23   #1336
Retrofan
Ruler of the Universe
 
Retrofan's Avatar
 
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,185
Glad you are well man
Retrofan is offline  
Old 25 March 2015, 10:38   #1337
jbenam
Italian Amiga Zealot
 
Join Date: Jan 2009
Location: Italy
Age: 36
Posts: 1,910
Damn, Peter, that could've been risky! You better buy a cellphone or something

Glad to know you're well
jbenam is offline  
Old 27 March 2015, 17:36   #1338
PeterK
Registered User
 
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
Quote:
Originally Posted by Michael View Post
I have a new problem!

Since v407 and 408 now I can't set default image for virtual floppy disks ;-)

DO5 has a mask for FF?: drives, and assigns a floppy icon to them when there is no icon. But now I get a default harddisk icon for them.

v405 works ok.
Hello Michael,

is your problem solved now with 409 ?

@jbenam
Don't worry, I've ordered a simple and cheap cellphone with a prepaid sim card and also a lot of food
PeterK is offline  
Old 27 March 2015, 18:24   #1339
Michael
A1260T/PPC/BV/SCSI/NET
 
Michael's Avatar
 
Join Date: Jan 2013
Location: Moscow / Russia
Posts: 839
Not fully tested, but seems to be working better ;-) Virtual floppies get proper icons.
Michael is offline  
Old 14 April 2015, 19:08   #1340
HanSolo
Registered User
 
Join Date: Aug 2014
Location: Gdynia/Poland
Posts: 162
How about making your lib "localized" ?
HanSolo is offline  
 


Currently Active Users Viewing This Thread: 2 (0 members and 2 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 07:12.

Top

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