English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 26 July 2010, 16:37   #1
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
Execute script works but not after adding an icon with IconX as Default Tool.

So I managed to figure out how to execute a list of commands to start Gobliiins on my 2MB A600 that doesn't run thorugh WHDLoad.

I can execute the list with the command "execute "fileaddress"/Start" where Start is the name of the script. It starts and runs just fine...

However, saving a project-icon from IconEdit with the same name (+ .info) and then editing this by writing IconX in the Default Tool box. I have also tried setting stack to 5000 in the info-file instead of in the script (it says stack 5000) and all combinations (both, one, the other). All starts result in the same crash. After a few seconds I get guru meditation instead of the usual language selection screen that appears when starting it with "execute".

Any ideas or am I stuck with a manual start?

Is there any (preferrably simple) way to make a script that starts a cli-window and then inserts the command execute "fileaddress"/Start in the CLI-window instead of via IconX?

BTW It's possible to run Gobliins2 the same way (also doesn't start on a 2MB A600 with WHDLoad) - by cd:ing the data directory and then run the file "loader" after setting stack (I guessed 10000 for that - I haven't checked my original disks.

Last edited by e5frog; 26 July 2010 at 16:42.
e5frog is offline  
Old 26 July 2010, 16:44   #2
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,004
Which version of Kickstart / Workbench ?
thomas is offline  
Old 26 July 2010, 17:19   #3
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
Both are 3.1
e5frog is offline  
Old 26 July 2010, 17:21   #4
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,789
Another thread

First of I forgot A600 had no numpad so well done figuring out Shift+1

I dont think you need Stack 5000 ,Try adding NewCli to your Script

I dont know if the other Gobliins games will work -They use Scumm? -They probably will.

Let me know how it goes

Last edited by Retro1234; 26 July 2010 at 17:31. Reason: fffffffffffffffffffff
Retro1234 is offline  
Old 26 July 2010, 17:34   #5
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 7,004
Quote:
Originally Posted by e5frog View Post
Both are 3.1
Well, then try to change the icon type to tool and set the S protection bit for the script.

Edit: does not work.

But this works: enter sys:system/shell as default tool and add the tooltype FROM=Start where "Start" is the name of the script. Add Endcli to the end of the script. If you don't want the output window, also add the tooltype WINDOW=NIL:

Last edited by thomas; 26 July 2010 at 17:42.
thomas is offline  
Old 26 July 2010, 17:40   #6
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
I thought it was best to open a new thread since it's a new issue IconX not working but running the same through CLI works fine, moderators are free to combine threads if they like. ;-)

Gobliins2 seems to work fine running the same way, if "stack 5000" isn't needed, why is it in the startup-sequence? Goblins3 has loader menu LG_GB in the adf-version I found which starts it up in English directly without the language select screen - pretty neat.


HA - cool - it was enough adding "newcli" to the script and opening a CLI window - it worked, I kept the "Stack 5000" in the script though. (not that the rest of the commands were executed in that window though)

I'll try thomas's "tool method" as well - is it known to work?
e5frog is offline  
Old 26 July 2010, 17:45   #7
Amiga1992
Registered User
 
Join Date: May 2001
Location: ?
Posts: 19,646
The problem relies in your script:
Specifically --> cd "directorynameoffiles"

Basically issuing a "cd" command from a Workbench icon executed using IconX makes no sense. The script did not change to anywhere (maybe temporarily) and the game crashed because it didn't find the files in the current directory. At least this is what I think is happening (game believes the files are stored in T

So yeah, open the CLI and you are set
Amiga1992 is offline  
Old 26 July 2010, 17:51   #8
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
Yup opening a CLI-window worked.

So now the script for running Gobliiins on a 2MB A600 is:
cd "directorynameoffiles"
newcli
stack 5000
loader

thomas, I got a working solution but that seems like a neat solution as well although it's a little more to write. ;-)
I'll try it as well...
e5frog is offline  
Old 26 July 2010, 18:03   #9
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
Seems like thomas is guessing, there's no SYS:System/shell file, it's called CLI (I guess) the .info filed is named Shell.info though.

After doing all you wrote I get no output at all, nothing happens.
Commenting out the WINDOW=NIL: makes a CLI-window appear but nothing else.
It doesn't seem to actually execute the script.


EDIT: Ah - I had to write the full path name Tool Type FROM, so FROM=name-with-full-path.
Then it worked!

Just adding newcli to the script was however the quickest and easiest solution.

Last edited by e5frog; 26 July 2010 at 18:16.
e5frog is offline  
Old 26 July 2010, 18:28   #10
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,789
Quote:
Originally Posted by e5frog View Post
Just adding newcli to the script was however the quickest and easiest solution.
Cool -I dont think it has anything to do with not finding files
Hopefuly get you a few more games running on your 2mb A600 - Whats next Lemmings, Lost Vikings
unless you got that SRAM card from ebay?
Retro1234 is offline  
Old 26 July 2010, 18:28   #11
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
After testing some more I noticed I can't use the WINDOW=NIL:, nothing happens if that's active.

So

THIS works (and is tested): enter sys:system/CLI as default tool and add the tooltype FROM=Start where "Start" is the name with full path to the script. Add Endcli to the end of the script.

I can't however not move the Script-file with it's icon from the directory where the files are so I still think the option using IconX and adding newcli to the script is the smoothest solution.

Thanks for your help guys!


EDIT: Boo Boo - yes I did get a 2MB SRAM card from the eBay seller, I should have asked my US collector friend to bid on the $9.90 one that ended without bids instead - I paid the BIN price for mine $39.95... :-(
e5frog is offline  
Old 26 July 2010, 18:40   #12
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Why so complicated? Create the script in your Gobliiins directory (see an example script I created for Ween here), add the icon and set IconX as default tool.
StingRay is offline  
Old 26 July 2010, 18:43   #13
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,789
It wasnt Complicated Gobliiins seemed to Crash if not started from Cli -Simply fixed by adding NewCli to script
Retro1234 is offline  
Old 26 July 2010, 18:44   #14
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
I did that, no need to assign any disks though but I wanted to have the project icon somewhere else than among the files and apparently I needed to open a cli-window for the cd command to work.

That wasn't very complicated?

thomas's solution was a bit complicated though.

"loader menu LG_GB" skipped the language selection screen here as well

Last edited by e5frog; 26 July 2010 at 19:03.
e5frog is offline  
Old 26 July 2010, 20:10   #15
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
The same thing works for Gobliins2.

loader menu LG_GB seems to skip the intro as well -> right to the game (skips copy protection also)
loader LG_GB selects English and skips the language selection screen and starts with the intro.

On Gobliiins I guess the "menu" part makes no difference.

EDIT: And it also works for Goblins3.

Last edited by e5frog; 26 July 2010 at 21:52.
e5frog is offline  
Old 27 July 2010, 04:21   #16
Amiga1992
Registered User
 
Join Date: May 2001
Location: ?
Posts: 19,646
You should open the CLI before the CD command.
Amiga1992 is offline  
Old 27 July 2010, 05:28   #17
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
It seems to work by using cd first as well, the path shows in the CLI-window, your methods seems to works as well.

Last edited by e5frog; 27 July 2010 at 06:53.
e5frog is offline  
Old 27 July 2010, 07:11   #18
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
New problem.

I like the option not having to pull out the original papers of the box every time I'd like to have a go at Goblins3 as well. However starting the WHDLoad version "manually" makes the protection screen appear... So I got a crack and I can't get the addition of an icon to work.

Here's the needed commands, it crashes if not all these are included:

cd sys:"yada yada path"
flt
wait
STACK 8000
loader menu LG_GB

It seems very picky, if I leave out anything it crashes.
Problem now is that I can only make it work by using execute "scriptfile" in a CLI-window, any attempts to add an icon with the previous mentioned method makes it crash. It also works to write the commands manually in a CLI-window - for example if I Boot with no startup.

Adding project-icon with IconX as Tool Type worked best with the newcli addition:

cd sys:"yada yada path"
newcli
flt
wait
STACK 8000
loader menu LG_GB

- but it crashes after Fairlight intro...

The other method described using Tool Type CLI crashes immediately without showing the Fairlight intro.


Ideas?
e5frog is offline  
Old 27 July 2010, 09:43   #19
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,789
The FLT Cracktro doesnt seem to like being opened from WorkBench
But seemed to work without it.
Wait
Stack 8000
Loader MENU LG_GB

Last edited by Retro1234; 27 July 2010 at 09:49.
Retro1234 is offline  
Old 27 July 2010, 10:23   #20
e5frog
The Headstrong
 
e5frog's Avatar
 
Join Date: May 2010
Location: Älvängen / Sweden
Age: 49
Posts: 273
Send a message via ICQ to e5frog Send a message via MSN to e5frog
Aha - so that's what messed things up.

So easy... that's why I love forums like this one, there's always a few people who had the same problem or tries a different way to solve it.

The "FLT Cracktro" runs fine if executed from a CLI-window, but apparently not via IconX.

Problem solved then - thanks again Boo Boo!
e5frog is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Execute a list of commands by doublclicking an icon. e5frog support.Other 5 26 July 2010 16:26
Execute a script frikilokooo project.ClassicWB 6 20 November 2007 11:36
Can't open install script's icon THX1138 support.Apps 14 01 July 2005 22:42
HELP! How to change icon default tool in WB buckrogers New to Emulation or Amiga scene 18 07 March 2005 05:27
The icon(s) have no default tool(s) !!!! THX1138 support.Apps 5 08 March 2003 03:00

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:38.

Top

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