English Amiga Board


Go Back   English Amiga Board > Support > support.AmigaOS

 
 
Thread Tools
Old 25 December 2021, 01:19   #1
Condor-2-4-2
Registered User
 
Join Date: Mar 2017
Location: Germany
Posts: 89
help with user-startup script

Hello,

I often have problems with the user-startup functionality under AmigaOS3.1 (running in WinUAE 4.9.0).

I want to run games automatically after the workbench is loaded with a script file called "START". I placed that file in the drive where the game executable is in - in my case on DH2:. Next I added the following lines at the end of the s:user-startup file to execute START (see attachment):

Code:
IF EXISTS DH2:START
  Execute DH2:START
EndIF
I also made the START file executable and defined it as script (see attachment).

As an example I want to autostart the game "AirForce Commander". So I copied all files from game floppy disk directly to DH2: (in the game documentation copy to hd is also suggested). The game executable is "afc". On the game floppy disk there is also an s:startup-sequence with the line "afc" in it, so that the game can run automatically from floppy. So I entered afc in my START script.

To ensure that my WinUAE settings were correct I first started the game manually from the workbench cli with the command "afc". And the game worked without problems.

Now I went on to autostart. I did a workbench reset, but only an AmigaDOS message "afc: unknown command" appeared and as it were closed I got back to workbench. So I tried to execute START manually by adding C:IconX to it's icon information, double clicked it - and the game started!

In a second attempt I changed the START script content to

Code:
CD DH2:
afc
and did a reset again. This time no error message appeared. Instead the screen turned black, the WinUAE hd indicator showed read access for a few seconds and after that nothing further happend.

Now I'm a bit confused. I have other games which I can autostart with a START script the same way as described above. And then there are games like this one where I got such starting issues. I also don't understand why I can run the START script manually but not via user-startup, although the same command is used here (afc).

And why did my second attempt with a changed START script result in a different starting behaviour? What is the difference between the script with only "afc" and "afc" with an additional line "CD DH2:" before?

At last I added a run command to the script

Code:
CD DH2:
run afc
which finally started the game but with massive graphical errors. So run command seems to start the game in another different way as afc without run.

I guess these issues must have something to do with start order in the s:u-s and s:s-s files (see attachment). But I'm missing the deeper knowledge about an Amiga system. Can someone help me to understand and create a working execution method?


Thank you in advance!

Greetings,

Condor-2-4-2
Attached Thumbnails
Click image for larger version

Name:	File Properties.jpg
Views:	71
Size:	559.8 KB
ID:	74198  
Attached Files
File Type: txt startup-sequence.txt (1.5 KB, 51 views)
File Type: txt User-Startup.txt (709 Bytes, 49 views)

Last edited by Condor-2-4-2; 25 December 2021 at 01:31.
Condor-2-4-2 is offline  
Old 25 December 2021, 01:28   #2
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
It would be better to start the game without using Startup-sequence or user-startup, but start the Amiga directly with the game, this will improve the quality and it will also be faster to run it.

To do this you would need a Multi Menu where you can choose whether to start a game or the operating system.


I used to use this many years ago on my CD32 HD:

[ Show youtube player ]
AMIGASYSTEM is offline  
Old 25 December 2021, 02:05   #3
Condor-2-4-2
Registered User
 
Join Date: Mar 2017
Location: Germany
Posts: 89
Hello AMIGASYSTEM,

thank you for your reply!

I have organized all my amiga games in Launchbox. In this frontend for each game there is an executable icon. By double clicking it the specific WinUAE config file will be loaded and executes the game.

In my case each amiga game has it's own folder under Windows with the WinUAE config in it. When the config is loaded it will mount the specific game folder and loads it with a general WB hdf file. On the workbench hdf itself I have no games installed.

So I think that your method with a menu within the workbench is not usable for me.

I also want the option to change the general WB hdf file for testing purposes whithout changing my config files (and I have hundreds). All my WinUAE config files reffering to that one WB file.

Kind regards,

Condor-2-4-2
Condor-2-4-2 is offline  
Old 25 December 2021, 02:33   #4
AMIGASYSTEM
Registered User
 
AMIGASYSTEM's Avatar
 
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,248
My method was used with the Amiga Real where you usually had one HD with multiple Partitions.

Partition DH0 -> Operating System
DH1 Partition -> Games Folder with subfolders for every single game

My method should work even with more than one HardFile/Directory Win, important to type for each game the right path.

Many old games don't work well if run from Workbench, from a clean boot they will work much better.
AMIGASYSTEM 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
AmiDoom - startup script ScottC2010 support.Games 4 26 September 2021 00:56
ToolsMenu in S:User-Startup Pierre support.Apps 9 25 March 2021 23:49
Workbench 3.1 User Startup Mister-Kyle support.Apps 6 17 April 2017 18:05
Adding a timeout to a user-startup command? Starglider 2 support.Other 11 21 March 2017 01:36
AmiTCP startnet in user-startup rlake support.Apps 3 16 February 2004 05:33

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 14:55.

Top

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