Welcome, Guest. Please login or register.

Author Topic: wbrun on a1200 / wb 3.1  (Read 2832 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline tnk2kTopic starter

  • Newbie
  • *
  • Join Date: Jun 2008
  • Posts: 22
    • Show only replies by tnk2k
wbrun on a1200 / wb 3.1
« 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?
 

Offline pjhutch

  • Sr. Member
  • ****
  • Join Date: Mar 2002
  • Posts: 452
  • Country: england
  • Gender: Male
  • Amiga user and developer
    • Show only replies by pjhutch
    • http://www.pjhutchison.org
Re: wbrun on a1200 / wb 3.1
« Reply #1 on: April 24, 2009, 10:44:28 AM »
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
 

Offline tnk2kTopic starter

  • Newbie
  • *
  • Join Date: Jun 2008
  • Posts: 22
    • Show only replies by tnk2k
Re: wbrun on a1200 / wb 3.1
« Reply #2 on: April 24, 2009, 10:48:54 AM »
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?
 

Offline x303

Re: wbrun on a1200 / wb 3.1
« Reply #3 on: April 24, 2009, 12:50:25 PM »
Quote
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
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: wbrun on a1200 / wb 3.1
« Reply #4 on: April 24, 2009, 12:56:42 PM »
@tnk2k

wbrun != whdload
 

Offline tnk2kTopic starter

  • Newbie
  • *
  • Join Date: Jun 2008
  • Posts: 22
    • Show only replies by tnk2k
Re: wbrun on a1200 / wb 3.1
« Reply #5 on: April 24, 2009, 01:00:57 PM »
OK, can somebody please explain me what i'm missing here?

http://eab.abime.net/showthread.php?t=28215&highlight=wbrun
 

Offline tnk2kTopic starter

  • Newbie
  • *
  • Join Date: Jun 2008
  • Posts: 22
    • Show only replies by tnk2k
Re: wbrun on a1200 / wb 3.1
« Reply #6 on: April 24, 2009, 01:08:41 PM »
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?
 

Offline x303

Re: wbrun on a1200 / wb 3.1
« Reply #7 on: April 24, 2009, 01:20:27 PM »
Quote
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
 

Offline tnk2kTopic starter

  • Newbie
  • *
  • Join Date: Jun 2008
  • Posts: 22
    • Show only replies by tnk2k
Re: wbrun on a1200 / wb 3.1
« Reply #8 on: April 24, 2009, 01:30:53 PM »
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?
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: wbrun on a1200 / wb 3.1
« Reply #9 on: April 24, 2009, 01:45:33 PM »
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
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline tnk2kTopic starter

  • Newbie
  • *
  • Join Date: Jun 2008
  • Posts: 22
    • Show only replies by tnk2k
Re: wbrun on a1200 / wb 3.1
« Reply #10 on: April 24, 2009, 02:00:06 PM »
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
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: wbrun on a1200 / wb 3.1
« Reply #11 on: April 24, 2009, 02:26:46 PM »
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
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10