Welcome to the Gamebase 64 forums.                 An attempt to document ALL Commodore 64 gameware before it's too late!

nec pc-98

Discuss any other databases that use the GameBase Frontend, whether in pre development, development or publically released.

Moderator: Jimbo

lookers
New Member
Posts: 39
Joined: Fri Oct 26, 2012 6:33 am

nec pc-98

Thu Jan 24, 2019 9:45 pm

Hi everyone
I have a problem with the gamebase nec pc-98, to start games with 2 disks.
I use the pn21 emulator.
I modified the original script slightly with the new version.
Is there anyone who can help me?
Thanks


I attach the script:


Set_CFG_Value(%emupath%\np21x64w.ini||clk_mult||20)
Set_CFG_Value(%emupath%\np21x64w.ini||nousemmx||true)
Set_CFG_Value(%emupath%\np21x64w.ini||ExMemory||4)

If GameType CONTAINS(HDI||NHD)
Set_CFG_Value(%emupath%\np21x64w.ini||HDD1FILE||%gamepathfile%)
Else
Add_CLP(%gamepathfile%)

End If

If GameType CONTAINS(fdi||d88||nfd||fdd||hdm||fds)
Set_CFG_Value(%emupath%\np21x64w.ini||HDD1FILE||)

Else
Set_CFG_Value(%emupath%\np21x64w.ini||FD1NAME0||%gamepathfile%)

End If
If NumGameFiles > 1
Set_CFG_Value(%emupath%\np21x64w.ini||FD1NAME0||%gamepathfile%(1))

End If
If NumGameFiles > 2
Set_CFG_Value(%emupath%\np21x64w.ini||FD1NAME0||%gamepathfile%(1))


End If
If Key_exmem CONTAINS(*)
Set_CFG_Value(%emupath%\np21x64w.ini||ExMemory||%exmem_value%)
End If


If Key_clock CONTAINS(*)
Set_CFG_Value(%emupath%\np21x64w.ini||clk_mult||%clock_value%)
End If

Run_Emulator()
User avatar
.mad.
Honoured Member
Honoured Member
Location: Lancashire
Posts: 2256
Joined: Sun Jun 19, 2005 3:30 pm

Re: nec pc-98

Fri Jan 25, 2019 11:23 am

i see a typo in the script.
correct command is "%gamepathfile(1)%" not "%gamepathfile%(1)"

also depending if the disks are merged or in single disks.
you will need to use different commands.

merged set (upto 4 disks in 1 file)
*GameBase will only see 1 file, so "NumGameFiles >" will not work.
the emulator should see and attach them to the drive place holders in the menu.
so you might just need the internal disk "name" for the FD1NAME not the gamefile.


attach 1st disk in merged set to drive#1 Name#0
FD1NAME0=disk1/diskA
attach 2nd disk in merged set to drive#1 Name#1
FD1NAME1=disk2/diskB

single (all disks separate files)
disks must be named in the gamebase format like this...
nameofgamefile_disk1.d88
nameofgamefile_disk2.d88

attach 1st disk to drive#1 name#0
FD1NAME0=disk1
attach 2nd disk to drive#2 name#0
FD2NAME0=disk2

Code: Select all

Set_CFG_Value(%emupath%\np21x64w.ini||clk_mult||20)
Set_CFG_Value(%emupath%\np21x64w.ini||nousemmx||true)
Set_CFG_Value(%emupath%\np21x64w.ini||ExMemory||4)

If GameType CONTAINS(HDI||NHD)
;clear Floppy
Set_CFG_Value(%emupath%\np21x64w.ini||FD1NAME0||)
;attach HD file
Set_CFG_Value(%emupath%\np21x64w.ini||HDD1FILE||%gamepathfile%)

Else If GameType CONTAINS(fdi||d88||nfd||fdd||hdm||fds)
;clear HD
Set_CFG_Value(%emupath%\np21x64w.ini||HDD1FILE||)
;attach 1st disk in drive#1
Set_CFG_Value(%emupath%\np21x64w.ini||FD1NAME0||%gamepathfile%)
If NumGameFiles > 1
;attach 2nd disk in drive#2
Set_CFG_Value(%emupath%\np21x64w.ini||FD2NAME0||%gamepathfile(1)%)
End If
End If

If Key_exmem CONTAINS(*)
Set_CFG_Value(%emupath%\np21x64w.ini||ExMemory||%exmem_value%)
End If

If Key_clock CONTAINS(*)
Set_CFG_Value(%emupath%\np21x64w.ini||clk_mult||%clock_value%)
End If

Run_Emulator()
lookers
New Member
Posts: 39
Joined: Fri Oct 26, 2012 6:33 am

Re: nec pc-98

Fri Jan 25, 2019 2:23 pm

hello mad
thanks for answering me, but I can not get your script to work.
now I can only load the hdi.
I renamed the games with 2 disks in 2 separate disks (nameofgamefile_disk1.d88; nameofgamefile_disk2.d88).
maybe I missed something :cry: :cry: :cry: :cry:
User avatar
.mad.
Honoured Member
Honoured Member
Location: Lancashire
Posts: 2256
Joined: Sun Jun 19, 2005 3:30 pm

Re: nec pc-98

Fri Jan 25, 2019 4:19 pm

or maybe i did?
i don't have the emulator setup at the mo.

the ini should have the game folder set as well
FDfolder=
HDfolder=

try this...

use gemus for internal disk names (exact name as shown in menu)
*works for merged disks only!!
name=Boot
name2=Data E

Code: Select all

Set_CFG_Value(%emupath%\np21x64w.ini||FDfolder||%gamepath%)
Set_CFG_Value(%emupath%\np21x64w.ini||HDfolder||%gamepath%)

Set_CFG_Value(%emupath%\np21x64w.ini||clk_mult||20)
Set_CFG_Value(%emupath%\np21x64w.ini||nousemmx||true)
Set_CFG_Value(%emupath%\np21x64w.ini||ExMemory||4)

If GameType CONTAINS(HDI||NHD)
;clear Floppy
Set_CFG_Value(%emupath%\np21x64w.ini||FD1NAME0||)
;attach HD file
Set_CFG_Value(%emupath%\np21x64w.ini||HDD1FILE||%gamepathfile%)

Else
Add_CLP(%gamepathfile%)
;clear HD
Set_CFG_Value(%emupath%\np21x64w.ini||HDD1FILE||)
;attach 1st disk in drive#1
Set_CFG_Value(%emupath%\np21x64w.ini||FD1NAME0||%name_value%)
If NumGameFiles > 1
;attach 2nd disk in drive#2
Set_CFG_Value(%emupath%\np21x64w.ini||FD2NAME0||%name2_value%)
End If
End If

If Key_exmem CONTAINS(*)
Set_CFG_Value(%emupath%\np21x64w.ini||ExMemory||%exmem_value%)
End If

If Key_clock CONTAINS(*)
Set_CFG_Value(%emupath%\np21x64w.ini||clk_mult||%clock_value%)
End If

Run_Emulator()
examine the np21x64w.ini for errors and typo's in the gamepath.
compare the ini to one with a game being setup manually.

this script is from my copy
change the ini headers to mach your np21x64w.ini

[NekoProject21]
FDfolder=
HDfolder=

[NP2 tool]
FD1NAME0=
HDD1FILE=

Code: Select all

;Show menu on emulator window
Set_INI_Value(%emupath%\np2nt.ini||NekoProjectII||windtype||0)

Set_INI_Value(%emupath%\np2nt.ini||NekoProjectII||FDfolder||%gamepath%)
Set_INI_Value(%emupath%\np2nt.ini||NekoProjectII||bmap_Dir||C:\GameBase\PC-9801\screenshots\)

Set_INI_Value(%emupath%\np2nt.ini||NP2 tool||FD1NAME0||)
Set_INI_Value(%emupath%\np2nt.ini||NP2 tool||FD1NAME1||)
Set_INI_Value(%emupath%\np2nt.ini||NP2 tool||FD1NAME2||)
Set_INI_Value(%emupath%\np2nt.ini||NP2 tool||FD1NAME3||)

Set_INI_Value(%emupath%\np2nt.ini||NP2 tool||FD2NAME0||)
Set_INI_Value(%emupath%\np2nt.ini||NP2 tool||FD2NAME1||)
Set_INI_Value(%emupath%\np2nt.ini||NP2 tool||FD2NAME2||)
Set_INI_Value(%emupath%\np2nt.ini||NP2 tool||FD2NAME3||)

Set_INI_Value(%emupath%\np2nt.ini||NekoProjectII||HDfolder||)
Set_INI_Value(%emupath%\np2nt.ini||NekoProjectII||HDD1FILE||)
Set_INI_Value(%emupath%\np2nt.ini||NekoProjectII||HDD2FILE||)

if key_speed CONTAINS(slow)
;slow machine for old games
Set_INI_Value(%emupath%\np2nt.ini||NekoProjectII||clk_mult||1)
else
;fast machine (1996800/2457600)
Set_INI_Value(%emupath%\np2nt.ini||NekoProjectII||clk_mult||10)
end if

If %gamefile% CONTAINS(*.hdi)
Set_INI_Value(%emupath%\np2nt.ini||NekoProjectII||HDfolder||%gamepathfile%)
Set_INI_Value(%emupath%\np2nt.ini||NekoProjectII||HDD1FILE||%gamepathfile%)
else
ADD_CLP(%gamepathfile%)
 If NumGameFiles > 1
 ;add 2nd disk on the commad-line if named in GameBase format...
 ; game_disk1.hdm, game_disk2.hdm
 ; Only 2 disks can be attached. one for each drive.
ADD_CLP( %gamepathfile(1)%)
End If
End If

Run_Emulator()
upto 2 disks can be attached, but any further disk swapping is manual.
if a game requires booting with disk#1 and disk#4. further scripting is needed.
lookers
New Member
Posts: 39
Joined: Fri Oct 26, 2012 6:33 am

Re: nec pc-98

Fri Jan 25, 2019 11:14 pm

Hi Mad.
I solved. :D :D :D :D
I took a piece of one and the other of your scripts.
In the np21 settings I left only an active hard disk.
here is the script I used:

Set_CFG_Value(%emupath%\np21x64w.ini||clk_mult||20)
Set_CFG_Value(%emupath%\np21x64w.ini||nousemmx||true)
Set_CFG_Value(%emupath%\np21x64w.ini||ExMemory||4)

If GameType CONTAINS(HDI||NHD)
;clear Floppy
Set_CFG_Value(%emupath%\np21x64w.ini||FDD1FILE||)
;attach HD file
Set_CFG_Value(%emupath%\np21x64w.ini||HDD1FILE||%gamepathfile%)

Else
Add_CLP(%gamepathfile%)
;clear HD
Set_CFG_Value(%emupath%\np21x64w.ini||HDD1FILE||)
If NumGameFiles > 1
;add 2nd disk on the commad-line if named in GameBase format...
; game_disk1.hdm, game_disk2.hdm
; Only 2 disks can be attached. one for each drive.
Add_CLP( %gamepathfile(1)%)


End If
End If

If Key_exmem CONTAINS(*)
Set_CFG_Value(%emupath%\np21x64w.ini||ExMemory||%exmem_value%)
End If

If Key_clock CONTAINS(*)
Set_CFG_Value(%emupath%\np21x64w.ini||clk_mult||%clock_value%)
End If

Run_Emulator()




thanks again Mad :D :D :D :D :D

Return to “Other GameBase Projects”

Who is online

Users browsing this forum: Bing [Bot] and 54 guests