Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: tnk2k on April 24, 2009, 09:31:14 AM
-
L.S.,
I'm trying to start .info files from dopus using wbrun i keep on getting the error 'object is not supported type'.
This is for .info files, i run the command like
'wbrun Gauntlet.info'
when in the appropiate directory, the command in dopus is:
'wbrun {F}' but i receive the same error when i run 'wbrun copy' i do get the wb popup.
Anybody have a pointer?
-
Info files are not runnable. They only contain the icon images and location in window. So why you are trying to run .info files is a mystery?! What you should do is run the program e.g. wbrun Gauntlet
-
Thanks for your reply.
Hope that will work but it doesn't make sense to me. The actual command is in the .info itself?
'whdload blabla.slave'
So i figure(d) wbrun strips this first part from the .info and then runs it.
But you say wbrun takes the Filename without extension as argument and than what?
-
The actual command is in the .info itself?
No, the .info basically is your icon (the little picture you see on the desktop) and some other information like the position of the icon, the stacksize and the tooltypes.
[color=ff0000]x303[/color] :-D :-D :-D
-
@tnk2k
wbrun != whdload
-
OK, can somebody please explain me what i'm missing here?
http://eab.abime.net/showthread.php?t=28215&highlight=wbrun
-
OK,
Let's take this example, Ganymed:
root@localtoast:~/g# ls -Rl
.:
total 72664
drwxr-xr-x 3 root root 4096 2007-12-07 23:32 Ganymed
-rw-r--r-- 1 root root 900 2007-12-07 23:31 Ganymed.info
-rw-r--r-- 1 root root 74321910 2008-09-18 11:40 WHDLoad Games Pack G - 2007-12-20.zip
./Ganymed:
total 36
drwxr-xr-x 2 root root 4096 2007-12-07 23:34 data
-rw-r--r-- 1 root root 20035 2007-12-07 23:32 Ganymed.info
-rw-r--r-- 1 root root 3528 2002-08-11 23:47 Ganymed.Slave
-rw-r--r-- 1 root root 1692 2002-08-11 23:47 ReadMe
-rw-r--r-- 1 root root 1396 2007-12-07 23:31 ReadMe.info
I guess the first Ganymed.info is the actual icon itself:
root@localtoast:~/g# file Ganymed.info
Ganymed.info: Amiga Workbench drawer icon
But the 2nd Ganymed.info contains the following:
root@localtoast:~/g# file Ganymed/Ganymed.info
Ganymed/Ganymed.info: Amiga Workbench project icon
And when i hexread the 2nd i see smth like:
"WHDLoad SLAVE=Ganymed.slave PRELOAD"
Perhaps it makes more sense to explain the problem. I want to run the games from within DOPUS without having to go back to the workbench and click the icon?
-
And when i hexread the 2nd i see smth like:
"WHDLoad SLAVE=Ganymed.slave PRELOAD"
Well first you should be in the actual game directory before you execute whdload.
[color=ff0000]x303[/color] :-D :-D :-D
-
This is still not what i mean.
OK. From scatch, let's say i extract Ganymed to my ram. If i now browse to my RAM i see this Ganymed icon, this is the 1st icon right? How does WB know that it has to 'cd' to the directory Ganymed ?
Than i click again:the Ganymed Icon. (i reckon this is the 2nd icon). Now what's happening under the hood?
-
I think there is some confusion here about what the OP is actually trying to do. Yes a .info file is usually just the icon which relates to an actual tool, but this is not always the case. In the case of WHDLoad games, you often have the following situation:
Game.info is the icon you double-click on to run the game
Game.slave is the WHDLoad slave file
Game.info has WHDLoad as its default tool, and specifices Game.slave in a tooltype so WHDLoad knows which slave file to load. Note that there is no corresponding file called "Game" which gets run when you double-click Game.info (otherwise the solution would simply be "wbrun game".
I assume that the OP is trying to get the WHDLoad game to run from within DOpus, and WBRun is trying to be clever and stop this from happening because it wants a tool as its parameter, not an icon. In this case, I guess you would have to get DOpus to execute a shell script like this:
CD Path:To/Game
C:WHDLoad Game.slave
which will launch the game.
--
moto
-
Thanks. To get things 'clear'. However:
ram:
----
Ganymed
Ganymed.info <- how does WB know to open the directory 'ganymed if i click this?
directory :
--------------------
data
Ganymed.info <- if i click this icon from workbench, the game starts, now how do i start this process from dopus? i want the additional parameters that are parsed in the Ganymed.info to be read aswell.
Ganymed.Slave
ReadMe
ReadMe.info
-
RAM:Ganymed.info will be an icon of type "Drawer". When it is double-clicked, Workbench will look for a sub-directory in the same location as the icon, with the same name (sans '.info'). It if finds it, it will open it.
I can see why you want to start it using WBRun; simulating a double-click on the icon launches the game with all the tooltypes specified in the icon. You could try putting a dummy file galled "Ganymed" in the Ganymed directory. Then use "WBRun Ganymed". It will simulate a double-click on the icon belonging to the file "Ganymed", namely "Ganymed.info". Because this icon will be a project type, the dummy file "Ganymed" shouldn't actually be launched, rather the default tool of the icon (WHDLoad) will be launched. Using the example directory structure you posted above:
echo "foo" >ram:Gaymed/Ganymed
I have no idea whether that will actually work, or whether the dummy file will cause confusion.
--
moto