Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: A4000_Mad on March 23, 2008, 01:02:30 AM
-
Hi guys,
To have maximum Chip RAM available the game SuperStardust is able to reboot the Amiga straight into the game. I would like to create an icon to do the same with the game T-zer0 so that my daughter can play it on her A1200 Desktop running OS3.9.
(http://i120.photobucket.com/albums/o164/Cyberstorm604e/SSD.jpg)
I have T-zero installed in Work of her hard drive and can start the game with maximum Chip RAM by choosing to 'Boot With No Startup-Sequence' and then typing the following:-
C:setpatch
Assign T0: Work:T0
cd Work:T0
T-zer0
I could manage to create an icon to execute the above commands, but I don't know how to make the Amiga automatically reboot and carry them out. I have a file named 'reboot' which makes the Amiga do just that, so prehaps I could include this somehow?
Any ideas please?
Thanks
-
I expect you will need to use a tool such as:
http://aminet.net/util/cli/rebootscript.lha
I have never used the programme, however I assume it is possible to run it from Workbench, as a default tool for a script's icon.
Cheers,
James
x
-
Napalm and Blade include scripts to do such a thing using a recoverable RAM disk. You might be able to modify one of those.
-
How about this. The script which runs the game renames s:startup-sequence to s:startup-sequence.orig. It then copies a new startup-sequence from the game's directory to s:. This startup-sequence starts off by renaming s:startup-sequence (the one for the game) to startup-sequence.old and then renaming s:startup-sequence.orig to startup-sequence. Then it sets up the assigns or whatever and launches the game. The next time you reboot you will have the original startup-sequence back in place and the game will boot as normal.
I don't actually know if this will work as I don't know whether a script can be renamed while it is running.
--
moto
-
All I did for T-Zero was have a separate minimal bootable partition for the game. Neat ? no, not really :lol: Worked OK ? Yes :-D
-
StarFighter:D'Yammen's Reign seems to do the same kind of reboot as what you describe (Im running WB3.0, but still...)
It too has options for which startup-sequence to use and which set-patch to use, and it uses a RAD drive with a higher boot priority than the normal system drive (Doh, :-D well it should, but on my system I have to enter the boot menu and force it to use RAD due to some quirk with how I've got the priorities set up...) to allow it to run in its own minimal workbench system.
Hodgkinson.
-
This script creates a 4k rad drive
echo >T:TM "/****/"
echo >>T:TM "T-0:"
echo >>T:TM "Device = ramdrive.device"
echo >>T:TM "Unit = 8"
echo >>T:TM "Flags = 0"
echo >>T:TM "Surfaces = 1"
echo >>T:TM "SectorsPerTrack = 7"
echo >>T:TM "Sectorsize = 512"
echo >>T:TM "Reserved = 2"
echo >>T:TM "Interleave = 0"
echo >>T:TM "Buffers = 0"
echo >>T:TM "Bufmemtype = 2"
echo >>T:TM "BootPri = 20"
echo >>T:TM "LowCyl = 0"
echo >>T:TM "HighCyl = 0"
echo >>T:TM "Activate = 1"
mount T-0: from T:TM
relabel T-0: T0Boot
makedir T-0:s/
set T T-0:s/startup-sequence
echo >$T `Which Assign NORES` C: `Which C:`
echo >>$T SetPatch QUIET
echo >>$T Cd `Cd`
echo >>$T Assign T0: `Cd`
echo >>$T T-zer0
echo >>$T RemRad T-0: FORCE
echo >>$T Reboot
reboot
place this in your T-zer0 directory,
add a project icon to this and set it's default tool to 'iconx'.
Using a rad drive has the bonus of no dangerous disk writes pending a reset.
Note: You may need to add the following line before the running of the game if it complains about missing libraries.
(don't have T-zer0 so i can't test to see if this is needed)
echo >>$T Assign Libs: `Which Libs:`
-
Thank you for your help :-)
I've started with the suggestion from jmbattle:-
http://aminet.net/util/cli/rebootscript.lha
This reboots the Amiga fine and seems simple enough to use. I've put the files Runscript and Writescript in Workbench:C and added the line Runscript to my Startup-Sequence.
I can start the game Galaxians with a simple line added to an icon or by typing it at Execute command.....
Writescript HD1:Games/Galaxians/Galaxians
However, it appears I will have to start T-zer0 with just the one command line as well.
Can anyone tell me how to put the following into one command line beginning with the word Writescript if it is at all possible?
C:setpatch
Assign T0: Work:T0
cd Work:T0
T-zer0
-
You could put those commands in a script, then use "writescript path:to/tzer0launchscript"
--
moto
-
Thanks moto,
I've tried having two icons. One containing the script and the other pointing to it with a command line like:-
Writescript HD1:T0/Start-icon
But I get a report that my script icon is not executable, even though it has Executable ticked and its default tool is iconx.
EDIT - I've just put the commands in a script created with EditPad, but this is also reported as not being executable after the Amiga reboots.
-
Just to say that this is now solved :-)
(http://i120.photobucket.com/albums/o164/Cyberstorm604e/T-zer0.jpg)
I hit a bit of a snag with finding an icon that was executable after the Amiga rebooted. In the end I just edited a copy of my Startup-Sequence and put it in the T0 drawer. My 'Start T-zer0' icon, which has the default tool iconx, gives the single command:-
Writescript Work:T0/Startup-Sequence
and the script which I have just left named as Startup-Sequence reads:-
C:Setpatch QUIET
Assign T0: Work:T0
cd Work:T0
T-zer0
I have now left the 'Start T-zer0' icon out so that Dana (6) can start the game and I will certainly be using http://aminet.net/util/cli/rebootscript.lha again :pint:
:cheers: