Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: wbrun on a1200 / wb 3.1
« 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 motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: wbrun on a1200 / wb 3.1
« Reply #1 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