Welcome, Guest. Please login or register.

Author Topic: An icon to start the game T-zer0 with maximum Chip RAM *solved*  (Read 2424 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline A4000_MadTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show only replies by A4000_Mad
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.



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  
A4000 Mad
 

Offline jmbattle

  • Sr. Member
  • ****
  • Join Date: May 2005
  • Posts: 324
    • Show only replies by jmbattle
    • http://www.amigainabox.co.uk
Re: An icon to start the game T-zer0 with maximum Chip RAM
« Reply #1 on: March 23, 2008, 01:11:25 AM »
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
 

Offline Matt_H

Re: An icon to start the game T-zer0 with maximum Chip RAM
« Reply #2 on: March 23, 2008, 04:54:21 AM »
Napalm and Blade include scripts to do such a thing using a recoverable RAM disk. You might be able to modify one of those.
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: An icon to start the game T-zer0 with maximum Chip RAM
« Reply #3 on: March 23, 2008, 09:13:33 AM »
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
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 Homer

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 1166
    • Show only replies by Homer
    • http://www.graingerweb.net
Re: An icon to start the game T-zer0 with maximum Chip RAM
« Reply #4 on: March 23, 2008, 09:22:38 AM »
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
Let X = X
{(c) Laurie Anderson}
 

Offline Hodgkinson

  • Hero Member
  • *****
  • Join Date: Apr 2006
  • Posts: 1080
    • Show only replies by Hodgkinson
    • http://www.myspace.com/em_radiation *****and ***** www.booni.info
Re: An icon to start the game T-zer0 with maximum Chip RAM
« Reply #5 on: March 23, 2008, 10:36:11 AM »
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.  
Main A1200D: WB3.0, 3.1 ROMs, 2GB HDD, Blizzard 1230IV (64MB RAM + FPU) and a whole load of custom heatsinks... :flame:
 

Offline smoorke

  • Newbie
  • *
  • Join Date: Nov 2006
  • Posts: 24
    • Show only replies by smoorke
Re: An icon to start the game T-zer0 with maximum Chip RAM
« Reply #6 on: March 23, 2008, 04:19:31 PM »
This script creates a 4k rad drive
Code: [Select]
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:`
 

Offline A4000_MadTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show only replies by A4000_Mad
Re: An icon to start the game T-zer0 with maximum Chip RAM
« Reply #7 on: March 23, 2008, 09:08:02 PM »
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

A4000 Mad
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: An icon to start the game T-zer0 with maximum Chip RAM
« Reply #8 on: March 23, 2008, 09:13:39 PM »
You could put those commands in a script, then use "writescript path:to/tzer0launchscript"

--
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 A4000_MadTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show only replies by A4000_Mad
Re: An icon to start the game T-zer0 with maximum Chip RAM
« Reply #9 on: March 23, 2008, 09:18:58 PM »
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.  

A4000 Mad
 

Offline A4000_MadTopic starter

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 1392
    • Show only replies by A4000_Mad
Re: An icon to start the game T-zer0 with maximum Chip RAM
« Reply #10 on: March 24, 2008, 02:04:27 AM »
Just to say that this is now solved :-)



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:


 
A4000 Mad