Page 1 of 1

script for nec pc-88

Posted: Tue Sep 27, 2016 10:16 pm
by lookers
hello
is it possible to create a script to load multi disk on quasi88
thanks

Posted: Wed Sep 28, 2016 5:41 pm
by .mad.
yes! ;)

it shows lots of command-lines in the manual.

Code: Select all

quasi88 [-option] [image-file [image-No] [image-file [image-No]]]

a.d88 b.d88 (shows examples of individual disks)
x.d88 y.d88 (show examples of merged disks)

quasi88 a.d88             Drive 1: = a.d88 / Drive 2: = Empty
quasi88 a.d88 b.d88       Drive 1: = a.d88 / Drive 2: = b.d88
quasi88 x.d88             Drive 1: = x.d88  1st Disk / Drive 2: = x.d88  2nd Disk
quasi88 x.d88 3           Drive 1: = x.d88  3rd Disk / Drive 2: = Empty
quasi88 x.d88 2 4         Drive 1: = x.d88  2nd Disk / Drive 2: = x.d88  4th Disk
quasi88 x.d88 y.d88       Drive 1: = x.d88  1st Disk / Drive 2: = y.d88  1st Disk
quasi88 x.d88 3 y.d88     Drive 1: = x.d88  3rd Disk / Drive 2: = y.d88  1st Disk
quasi88 x.d88 y.d88 3     Drive 1: = x.d88  1st Disk / Drive 2: = y.d88  3rd Disk
quasi88 x.d88 4 y.d88 2   Drive 1: = x.d88  4th Disk / Drive 2: = y.d88  2nd Disk
But it will probably mean a lot of work and testing from yourself, to get it just as you like.
Which could spent swapping the disks manually. ;)

It all depends on which disk collection you have, whether it will work or not.
Quasi88 is compatible with the merged disk set.
*all disk images in 1 D88 file (The best set for this emulator).
So the DEFAULT script will automatically insert the first disk in Drive#1 and second disk in Drive#2.

You will have to swap disks manually after initial boot, if the game uses more than 2 disks.

If you are using the TOSEC collection, where the disks are in individual files.
You !MUST! rename the disks for the script to work in GameBase.
"gamename_disk a.d88"
"gamename_disk b.d88"

No way round it, it's just how GameBase is programmed to work.

Code: Select all

-------------------
Script #1
------------------
;merged multi-disk set "gamename.d88" force disk selection - Drive 1: 3rd disk in image - Drive 2: 4th Disk in image
; GEMUS
; img1=3
; img2=4
-------
If key_img1 CONTAINS(*)
Add_CLP( %gamepathfile% %img1_value% %img2_value%)
else
;merged multi-disk set "gamename.d88" Auto disk selection - Drive 1: 1st disk  - Drive 2: 2nd Disk
Add_CLP( %gamepathfile%)
End If
Run_Emulator

Code: Select all

-------------------
Script #2
------------------
;individual disks must be named like this for GameBase to insert disks correctly...
;"gamename_disk a.d88"
;"gamename_disk b.d88"

If NumGameFiles > 1
Add_CLP( %gamepathfile% %gamepathfile(1)%)
else
Add_CLP( %gamepathfile%)
End If
Run_Emulator

Posted: Wed Sep 28, 2016 10:12 pm
by lookers
thanks Mad
the 2° script work like a charm.
but I have a question for you,
how can i do to merge multi disk so to use fist script?

Posted: Thu Sep 29, 2016 11:36 am
by .mad.
use a DOS / Command window or batch file to COPY the files together.

Code: Select all

copy /b "Run Run_Disk A.d88" + "Run Run_Disk B.d88" + "Run Run_Disk C.d88" + "Run Run_Disk D.d88" "Run Run (Merged Disks).d88"
Looking at the menu, i think it is limited to 4 disk files per merged D88 image.

Image

If the game is on 3 disks or less and needs a disk for save data.
don't forget to add one at the end of the copy.

Posted: Thu Sep 29, 2016 2:18 pm
by lookers
i try it
the batch script work good.
Thanks Mad.

can i use it for all system or only pc-88?

Posted: Thu Sep 29, 2016 2:27 pm
by lookers
i try merged disk and it works in quasi88,X88000 and pc8801ma emulators.

thanks again Mad
:D :D :D