Who's Online |
124 user(s) are online ( 83 user(s) are browsing Forums)
Members: 0
Guests: 124
more...
|
|
Headlines |
-
amiarcadia.lha - emulation/gamesystem
Mar 28, 2024
-
losmalditosdemo.lha - game/adventure
Mar 26, 2024
-
libfreetype.lha - development/library/graphics
Mar 25, 2024
-
ign-addon-ods.lha - office/spreadsheet
Mar 25, 2024
-
meminfo.lha - utility/hardware
Mar 25, 2024
-
libsdl2_ttf.lha - development/library/graphics
Mar 24, 2024
-
thf.lha - game/fps
Mar 24, 2024
-
amigagpt.lha - network/chat
Mar 24, 2024
-
liba52.lha - development/library/audio
Mar 23, 2024
-
libsdl2_mixer.lha - development/library/audio
Mar 23, 2024
|
|
|
|
Re: Changing file type from project to program
|
Posted on: 2017/1/2 15:26
#21
|
Not too shy to talk
|
Make sure that R and E bits are set for the file like Severin suggested.
To make a file executable, two conditions must be met:
1. the contents of the file has to be an executable program 2. the E bit has to be set in the file system
If either one condition is not met, you get the "not executable" error message.
Usually new files get all RWED bits on, but sometimes they get lost, for example when using an unsuitable archiver.
Also make sure that the file has not been corrupted. If the file structure is damaged, it won't be recongised as an executable program.
|
|
|
|
Re: ObtainBestPen()
|
Posted on: 2016/10/20 7:42
#22
|
Not too shy to talk
|
Where do you see an alpha channel? There is no way to specify an alpha channel. There is only red, green, blue, precision and fail if bad.
|
|
|
|
Re: Reminder to anyone using the Contact option
|
Posted on: 2016/10/3 10:16
#23
|
Not too shy to talk
|
Perhaps you should put this message on the Contact page, too.
|
|
|
|
Re: Icon to BitMap
|
Posted on: 2016/9/5 20:38
#24
|
Not too shy to talk
|
do_Gadget.GadgetRender has no meaning on OS4, it only contains some kind of legacy image for compatibility with old programs.
You can use IconControl to read the pixel data of the real image.
Or just use DrawIconState to render the icon into the bitmap.
|
|
|
|
Re: Insert/remove USB device
|
Posted on: 2016/8/11 7:28
#27
|
Not too shy to talk
|
I don't know how to make it specific for USB, but generally you would just listen for IDCMP_DISKINSERTED and IDCMP_DISKREMOVED messages. Or, if you want to get the information when your window is inactive, too, you would create an input handler or commodity which watches for IECLASS_DISKINSERTED resp. IECLASS_DISKREMOVED events.
Regarding WinUAE I am quite sure that you have removable harddisk support, at least when using UAE controller.
|
|
|
|
Re: Edit the Dock/AmiDock in OS3 Workbench?
|
Posted on: 2016/6/9 10:53
#28
|
Not too shy to talk
|
AmigaForever does not contain AmiDock, it uses Toolmanager.
Use SYS:Prefs/Toolmanager to edit the config.
|
|
|
|
Re: Detecting if a 68k prog is running on os4 ?
|
Posted on: 2016/6/2 16:59
#29
|
Not too shy to talk
|
Even if the bug only shows on OS4, it is still a bug. You should fix it properly and not work around it.
|
|
|
|
Re: How find handler/filesystem name of a volume?
|
Posted on: 2016/5/28 20:13
#30
|
Not too shy to talk
|
@mritter0 Quote: Identifying devices shouldn't be such a difficult task. The OS should know what each device specifically is and can tell you easily.
That's against its philosophy. From the very beginning AmigaDOS treated all devices the same. It does not know, does not need to know, does not want to know which type a device is. Each attempt to identify a device type in AmigaDOS is a hack, based on assumptions which might or might not always work.
|
|
|
|
Re: How find handler/filesystem name of a volume?
|
Posted on: 2016/5/22 21:50
#31
|
Not too shy to talk
|
@ChrisH
#include <proto/dos.h>
int main (void)
{
struct DosList *dl;
struct MsgPort *port;
struct Process *pr;
struct CommandLineInterface *cli;
dl = LockDosList (LDF_VOLUMES|LDF_READ);
while (dl = NextDosEntry (dl,LDF_VOLUMES))
{
Printf ("%-10b: ",dl->dol_Name);
if ((port = dl->dol_Task))
{
if ((port->mp_Flags & PF_ACTION) == PA_SIGNAL)
{
pr = (struct Process *) port->mp_SigTask;
if (pr->pr_Task.tc_Node.ln_Type == NT_PROCESS)
{
if ((cli = BADDR(pr->pr_CLI)))
{
if (cli->cli_CommandName)
Printf ("%b\\n",cli->cli_CommandName);
else
Printf ("no command name\\n");
}
else
Printf ("no CLI\\n");
}
else
Printf ("task is not a process\\n");
}
else
Printf ("no task in port\\n");
}
else
Printf ("no port\\n");
}
UnLockDosList (LDF_VOLUMES|LDF_READ);
return (0);
}
gives something like this for me:
5> smbvol
Users : smbfs '//video/users'
Ram Disk : no CLI
Public : no CLI
VideoWB : no CLI
5>
|
|
|
|
Re: How find handler/filesystem name of a volume?
|
Posted on: 2016/5/14 12:01
#32
|
Not too shy to talk
|
For SMBFS you could check if dol_Task points to a proper MsgPort whose mp_SigTask points to a Process with pr_CLI set and cli_CommandName beginning with "smbfs".
|
|
|
|
Re: SSD in a MicroA1. Is it worth it?
|
Posted on: 2016/5/1 8:51
#33
|
Not too shy to talk
|
@Raziel Quote: How do you change "Heads" or any other "Physical Data" with Media Toolbox?
I tried and it won't let me, the information displayed in MT's RDB/disk geometry window is just that, information, with no means to be edited.
No idea. I thought they were editable in expert mode. HDToolbox allows to edtit them. They are not physical after all. There are no heads, tracks and cylinders in an SSD and even a harddrive does not allow access to this internal geometry data. Quote: Also, i've got Cylinders, Secors, Heads and Blocks per cylinder, Total cylinders, Total sectors and Block size, but i don't find any "Secotrs per track".
'Cylinders' is the same as 'Total Cylinders'. 'Sectors' is the same as 'Sectors per Track'. 'Heads' is the same as 'Tracks per Cylinder'. 'Blocks per Cylinder' is just the result of multiplying Sectors and Heads. 'Block' is used as a different word for 'Sector' in this context. 'Total number of Sectors' is just the result of multiplying 'Sectors per Cylinder' by 'Total Cylinders'. Quote: Regarding block sizes, i'm using SFS with 4096 and it works like a charm, what would be the advantage of using a block size of 512 other than it "might" be slower on SSD's? The documentation says that SFS does not support anything but 512. That it "works like a charm" does not mean that it is safe.
|
|
|
|
Re: SSD in a MicroA1. Is it worth it?
|
Posted on: 2016/5/1 0:12
#34
|
Not too shy to talk
|
When you install the drive, change heads and sectors per track so that one cylinder has 2048 sectors. Then all your partitions will automatically be aligned to megabyte boundaries.
When creating partitions, change file system block size to 4096 so that file system clusters are aligned to SSD pages. (Note that only FFS supports block sizes other than 512. If you use another file system, leave it at 512.)
Leave a certain percentage at the end of the drive empty, then the drive can use this space as spare sectors for its over-provisioning and things like that.
DO NOT FORMAT PARTITIONS!! Always use quick format. If you do normal format, the drive will be unable to do its garbage collection and such because all sectors have been written to already. GC and automatic TRIM need sectors which have not been written to.
If you still have the choice, buy one which is advertised with automatic TRIM, garbage collection and all these features, because there is no support in AmigaOS for SSDs. The drive has to do all the work on its own.
|
|
|
|
Re: Assigned project: Assign manager
|
Posted on: 2016/3/1 17:26
#35
|
Not too shy to talk
|
Quote: An add assign is an assign created with the ADD directive. (assign s: path: ADD) Quote: Ability to toggle if an assign is an add assign or not I wish people would understand what they write about before they write it.
|
|
|
|
Re: Listbrowser
|
Posted on: 2016/2/29 17:43
#36
|
Not too shy to talk
|
Do you need to know about the click (which node was clicked on)?
If not, you can just set GA_ReadOnly to TRUE. Then the browser will not react on clicks.
|
|
|
|
Re: RHash bug
|
Posted on: 2016/2/5 16:00
#37
|
Not too shy to talk
|
Which means that SMBFS is the only one which does it right. Quote: smbfs redirects to SYS: (I'd consider this a bug)
|
|
|
|
Re: BEWARE unreliable Seagate HDs (esp. 7200.11 & 7200.14)
|
Posted on: 2016/2/3 16:26
#38
|
Not too shy to talk
|
Given that a 3TB HDD has almost 6 million sectors, having 2000 bad ones is not such a big deal.
As you can see, they have been reallocated automatically by the drive, the OS didn't even see them as bad.
Once the OS reports a bad sector is when you should start to worry.
OTOH using a 3TB HDD is stupid anyway. If it dies, 3TB of data is lost for good. You only need to drop it or hit it by accident and it is dead.
Even nowadays 80GB or 160GB is plenty of space for OS, programs and data.
If you need to store huge amounts of data, you shouldn't save it on a single harddrive but rather on a RAID of some kind which does not lose anything if only one of many disks fails.
|
|
|
|
Re: error validating amigaos 4.1?
|
Posted on: 2015/10/10 23:56
#39
|
Not too shy to talk
|
Quote: Seen it before, can't remind the proper solution.
The directory it tries to write its log file to does not exist.
|
|
|
|
Re: Environmental variables - Library?
|
Posted on: 2015/7/26 22:45
#40
|
Not too shy to talk
|
If you talk about OS3 which will never again change, then ok, do what you want.
But if you develop for OS4 and want to be future-proof, then RTFM! And please don't argue against what the docs say.
I know that up to now env vars are stored in files and can be used like files. But anyway the env system should be considered a black box which can change. Don't give bad advice only because you know about the inner workings. They might change in the future.
(And harddisk activity while reading or writing data proves nothing. Of course permanent settings have to be saved to disk, otherwise they wouldn't be permanent.)
|
|
|
|