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

HD Games to Run in Gamebase

Discuss the Commodore Amiga database that uses the GameBase Frontend.

Moderator: Jimbo

Fiery Phoenix
Keen Member
Keen Member
Location: Bury, Lancs
Posts: 73
Joined: Tue Aug 07, 2012 8:07 am

HD Games to Run in Gamebase

Mon Sep 05, 2016 5:58 pm

I had this running for a while (thanks to a Gamebase Sampler kindly supplied by .mad)

After updating my PC I had lot's of problems getting Gamebase to run again = long story cut short - it is running again, managed to get the Gamebase Sampler running to with the CD32 & CDTV games

However, I just cannot get the HD games to run direct from Gamebase (and they were doing previously) i.e. Roger Rabbit in hare Raising Havoc, Waxwork's and Codename: Hell Squad

When I try to now run them I get the following message:

"The selected system ROM requires a 68020 with 32 bit addressing or higher CPU"

Strange as the CD32 games, i.e Wing Commander run fine. I even tried putting in the GEMUS key=value pairs mode=cd32 and entered a standard AGA entry with 68020 showing.

I can get them all to load individually away from Gamebase - it's all about how to trigger that load in Gamebase. Is it by the Scripts? I have copied the current Script below:

;***************************
;* Amiga GameBase Script *
;* By .mad. 2012 *
;* for WinUAE 2.4.1.0+ *
;* --> Needs more work <-- *
;***************************

;For WHDLoad to work your c:\gamebase\gamebase.ini file must be set like this.
;[Paths]
;GBGame=C:\GBGame\
;*Please Note: this is NOT GBGame=C:\GBGame\0\ (the Gamebase v1.3 default)

;After paths are set the WHD ZIP file will extract like this example.
;C:\GBGame\WHD\3ddemo_v1.0_anarchy\3DDemo.info

;other game files will extract to the default
;C:\GBGame\0\

;SupportedTypes=adf;adz;dms;fdi;ipf;hdf;exe;iso;cue;ccd;mds;zip
;*zip is used only for the WHDLoad packs.

;The Kickstart, WHD and Joystck options need cleaning up.

;GameBase requires all the following files in the ..\Gamebase\Scripts folder.

;WinUAE configuaration file (with these EXTRA options)
; Amiga.uae
; [EXTRA]
; hardfile2=
; filesystem=
; filesystem2=

; WinUAE.ini file in emulator directory with Gamebase script path for the Kickstarts
; KickstartPath=C:\GameBase\Amiga\Scripts\

;The Script
; Amiga.txt

;KICKSTART ROMS - Filenames must be the same as shown.
; Kick12.rom (A6CE1636)
; Kick13.rom (C4F0F55F)*
; Kick14.rom (58327536)
; Kick204.rom (C3BDB240)
; Kick205.rom (83028FB5)
; Kick31.rom (1483A091)

; CD32.rom (1E62D4A5)
; CD32EX.rom (87746BE2)
; cd32.nvr

; CDTV.rom (C4F0F55F)*
; CDTVEX10.rom (42BAA124)
; CDTVEX23.rom (30B54232)
; CDTVEX27.rom (CEAE68D2)
; cdtv.nvr

; Workbench v3.1 Installed version.
; WB31.HDF

;-------------------------------------------------------------------

; you can change ALL machine defaults to your preferred settings.
; But they must be compatible with each other to work.
;gfx_top_windowed=442
;gfx_left_windowed=225
;gfx_width_windowed=720
;gfx_height_windowed=568
;gfx_center_horizontal=smart
;gfx_center_vertical=smart
;gfx_filter_vert_zoom_mult=0
;gfx_filter_horiz_zoom_mult=0
;gfx_filter_autoscale=none
;---------------------------------------------
; Emulator Screen /Window settings.
;---------------------------------------------
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfxcard_size||0)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_center_horizontal_position||-1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_center_horizontal_size||-1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_center_horizontal||false)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_center_vertical_position||-1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_center_vertical_size||-1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_center_vertical||none)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_width_fullscreen||800)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_height_fullscreen||600)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_width_windowed||720)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_height_windowed||576)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_width||720)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_height||568)

;------------------------------------------------------------------------
;change "direct3d" to "directdraw" if you get a black screen.
;------------------------------------------------------------------------
If Key_gfx_api CONTAINS(direct3d||directdraw)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_api||%gfx_api_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_api||direct3d)
End If
;------------------------------------------------------------------------
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_autoresolution||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_backbuffers||2)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_blacker_than_black||false)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_colour_mode||16bit)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_contrast||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_display_name||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_display||0)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_aspect_ratio||0:0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_autoscale||auto)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_bilinear||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_blur||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_contrast||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_gamma||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_horiz_offset||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_horiz_zoom_mult||1000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_horiz_zoom||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_keep_aspect||none)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_luminance||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_mask||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_mode||1x)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_noise||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_saturation||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_scanlinelevel||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_scanlineratio||17)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_scanlines||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_vert_offset||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_vert_zoom_mult||1000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter_vert_zoom||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_filter||no)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_flickerfixer||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_framerate||1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_fullscreen_amiga||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_fullscreen_picasso||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_gamma||0)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_left_windowed||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_linemode||double)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_lores_mode||normal)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_lores||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_luminance||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_refreshrate||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_resolution||hires)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_top_windowed||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_vsync_picasso||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||gfx_vsync||false)

;---------------------------------------------
;Floppy Drive settings (defalut = 1)
;---------------------------------------------
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||nr_floppies||1)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy_channel_mask||0xffff)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy_speed||100)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy_volume||33)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy0||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy0sound||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy0type||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy1||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy1sound||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy1type||-1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy2||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy2sound||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy2type||-1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy3||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy3sound||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy3type||-1)
;-------------------------
;Remove Floppy Disk Images.
;-------------------------
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage0||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage1||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage2||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage3||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage4||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage5||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage6||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage7||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage8||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage9||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage10||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage11||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage12||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage13||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage14||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage15||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage16||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage17||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage18||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||diskimage19||)
;----------------------------------
;Remove Hard-Drive and WHD Images.
;----------------------------------
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ide||none)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||uaehf0||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||uaehf1||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||hardfile2||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||filesystem||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||filesystem2||)
Set_INI_Value(%dbpath%\Scripts\Amiga.uae||EXTRA||hardfile2||)
Set_INI_Value(%dbpath%\Scripts\Amiga.uae||EXTRA||filesystem||)
Set_INI_Value(%dbpath%\Scripts\Amiga.uae||EXTRA||filesystem2||)
;----------------------------------
;Remove CD32 Settings.
;----------------------------------
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cdimage0||)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cd32cd||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cd32c2p||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cd32nvram||false)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||flash_file||)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cdtvcd||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cdtvram||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cdtvramcard||0)
;------------------------------------------------
;Default Sound Card settings. *My Card Example.
;------------------------------------------------
;*Enter your own Custom Sound Card settings here.
;
;*Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||win32.soundcard||1)
;*Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||win32.soundcardname||SoundMAX HD Audio)
;*Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||win32.soundcard_exclusive||false)
;------------------------------------------------
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||win32.soundcard||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||win32.soundcardname||Primary Sound Driver)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||win32.soundcard_exclusive||false)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_volume||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_auto||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_output||exact)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_channels||stereo)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_stereo_separation||7)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_stereo_mixing_delay||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_max_buff||16384)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_frequency||44100)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_latency||100)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_interpol||anti)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_filter||emulated)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_filter_type||standard)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_stereo_swap_paula||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||sound_stereo_swap_ahi||false)

;---------------------------------------------
; Joystick settings.
;---------------------------------------------
;CDTV
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0||mouse0)
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0mode||cdtvjoy)
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0autofire||none)
;
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1||joy0)
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1mode||cd32joy)
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1autofire||none)

;CD32
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0||mouse0)
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0mode||cdtvjoy)
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0autofire||none)
;
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1||joy0)
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1mode||cd32joy)
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1autofire||none)

If Control = JoyPort1
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0||kbd4)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1||kbd5)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0||mouse1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1||kbd4)
End If

;---------------------------------------------
; Kickstart settings. (Default v1.3)
;---------------------------------------------
; kickstart= (v1.0||v1.2||v1.3||v2.04||v2.05||v3.0||v3.1)
;* For CDTV and CD32 enter GEMUS Mode=CD32 or CDTV

If Key_kickstart CONTAINS(v1.0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v1.0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\Kick10.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||42553BC4,X)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file_id||)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||A1000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||ocs)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68000)

ElseIf Key_kickstart CONTAINS(v1.2)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v1.2)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\KICK12.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||A6CE1636,KS ROM v1.2 (A500,A1000,A2000))
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file_id||)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ksmirror_a8||false)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||A500)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||ocs)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||false)

ElseIf Key_kickstart CONTAINS(v1.3)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v1.3)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\KICK13.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||C4F0F55F,KS ROM v1.3 (A500,A1000,A2000))
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file_id||)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||A500)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||ecs)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||false)

ElseIf Key_kickstart CONTAINS(v2.04)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v2.04)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\KICK204.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||C3BDB240,KS ROM v2.04 (A500+))
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file_id||)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||A500+)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||ecs)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_compatible||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||true)

ElseIf Key_kickstart CONTAINS(v2.05)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v2.05)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\KICK205.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||83028FB5,KS ROM v2.05 (A600))
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file_id||)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||A600)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||ecs)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_compatible||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||true)

ElseIf Key_kickstart CONTAINS(v3.0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\Kick30.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||C742A412,X)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v3.0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file_id||)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||A1200)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||aga)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68ec020)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68020)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_compatible||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||true)

ElseIf Key_kickstart CONTAINS(v3.1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\Kick31.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||1483A091,KS ROM v3.1 (A1200))
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v3.1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file_id||)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||A1200)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||aga)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68020)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68030)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_compatible||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||true)

Else
;set a default machine v1.3
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v1.3)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\KICK13.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||C4F0F55F,KS ROM v1.3 (A500,A1000,A2000))
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file_id||)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||A500)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||ocs)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||false)
End If

;--------------------------------------------------------
; Machine Values that can be changed via Gemus.
;--------------------------------------------------------

If Key_kickshifter CONTAINS(true||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickshifter||%kickshifter_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickshifter||false)
End If

;*KSMIRROR_A8 must be off for v1.2 A500

If Key_ksmirror_e0 CONTAINS(true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ksmirror_e0||true)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ksmirror_e0||false)
End If

If Key_ksmirror_a8 CONTAINS(true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ksmirror_a8||true)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ksmirror_a8||false)
End If

If Key_chipset CONTAINS(ocs||aga||ecs||ecs_agnus||ecs_denise||full_ecs)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||%chipset_value%)
End If

;Use - to enable advanced Chipset settings
If Key_chipset_compatible CONTAINS(A1000||A500||A500+||A600||A1200||CD32||-||Generic)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||%chipset_compatible_value%)
End If

;Sets CPU TYPE to same MODEL value if only Model is set.

If Key_cpu_model CONTAINS(68000||68010||68020||68030||68040||68060)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||%cpu_model_value%)
End If

If Key_cpu_type CONTAINS(68000||68010||68020||68ec020||68030||68040||68060)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||%cpu_type_value%)
End If

If Key_cpu_multiplier CONTAINS(2||4)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_multiplier||%cpu_multiplier_value%%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_multiplier||2)
End If

If Key_fpu_model CONTAINS(68881||68882||none)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fpu_model||%fpu_model_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fpu_model||none)
End If

If Key_rtc CONTAINS(MSM6242B)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||rtc||MSM6242B)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||rtc||none)
End If

If Key_maprom CONTAINS(0xf000000||0x0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||maprom||maprom_value)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||maprom||0xf000000)
End If

If PalNTSC = NTSC
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ntsc||true)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ntsc||false)
End If

If Key_ntsc CONTAINS(True||False)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ntsc||%ntsc_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ntsc||false)
End If

If Key_immediate_blits CONTAINS(True||False)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||immediate_blits||%immediate_blits_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||immediate_blits||false)
End If

If Key_collision_level CONTAINS(none||playfields||sprites||full)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||collision_level||%collision_level_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||collision_level||playfields)
End If

;Fastmem 0=none 1=1MB 2=2MB 4=4MB 8=4MB ***

If Key_fastmem_size CONTAINS(0||1||2||4||8)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fastmem_size||%fastmem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fastmem_size||0)
End If

;Bogomem (Slow) 0=none 2=512k 4=1MB 6=1.5MB 7=1.8MB ***

If Key_bogomem_size CONTAINS(0||1||2||4||6||7)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||bogomem_size||%bogomem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||bogomem_size||0)
End If

If Key_bogomem_fast CONTAINS(true||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||bogomem_fast||%bogomem_fast_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||bogomem_fast||false)
End If

;Chipmem 0=256k 1=512k 2=1MB 4=2MB 8=4MB 16=8MB ***

If Key_chipmem_size CONTAINS(0||1||2||4||8||16)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipmem_size||%chipmem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipmem_size||1)
End If

;Megachipmem (32-bit chip) 0=none 16=16MB 32=32MB 64=64MB 128=128MB 256=256MB 512=512MB 1024=1GB ***

If Key_megachipmem_size CONTAINS(0||16||32||64||128||256||512||1024)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||megachipmem_size||%megachipmem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||megachipmem_size||0)
End If

If Key_z3mem_size CONTAINS(1||2||4||8||16||32||64||128||256||384||512||768||1024)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||z3mem_size||%z3mem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||z3mem_size||0)
End If

If Key_z3mem2_size CONTAINS(512)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||z3mem_size||1024)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||z3mem2_size||512)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||z3mem_start||0x10000000)
End If

If Key_cpu_speed CONTAINS(max||real)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_speed||%cpu_speed_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_speed||real)
End If

If Key_cpu_compatible CONTAINS(true||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_compatible||%cpu_compatible_value%)
End If

If Key_fpu_strict CONTAINS(True||False)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fpu_strict||%fpu_strict_value%)
End If

If Key_cpu_24bit_addressing CONTAINS(true||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||%cpu_24bit_addressing_value%)
End If

If Key_cpu_cycle_exact CONTAINS(true||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_cycle_exact||%cpu_cycle_exact_value%)
End If

If Key_blitter_cycle_exact CONTAINS(true||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||blitter_cycle_exact||%blitter_cycle_exact_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||blitter_cycle_exact||true)
End If

If Key_cycle_exact CONTAINS(true||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cycle_exact||%cycle_exact_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cycle_exact||true)
End If

If Key_statefile CONTAINS(*)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||statefile||%statefile_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||statefile||)
End If

If Key_compfpu CONTAINS(true||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||compfpu||%compfpu_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||compfpu||false)
End If

;-------------------------------------
;cachesize only used when JIT enabled
;-------------------------------------
If Key_cachesize CONTAINS(1024||2048||3072||4096||5120||6144||7168||8192)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cachesize||%cachesize_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cachesize||0)
End If
;------------------------
; for JIT Set all Direct
;------------------------
If Key_comp_trustbyte CONTAINS(indirect||direct)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||comp_trustbyte||%comp_trustbyte_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||comp_trustbyte||indirect)
End If

If Key_comp_trustword CONTAINS(indirect||direct)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||comp_trustword||%comp_trustword_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||comp_trustword||indirect)
End If

If Key_comp_trustlong CONTAINS(indirect||direct)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||comp_trustlong||%comp_trustlong_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||comp_trustlong||indirect)
End If

If Key_comp_trustnaddr CONTAINS(indirect||direct)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||comp_trustnaddr||%comp_trustnaddr_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||comp_trustnaddr||indirect)
End If

;*********************************************************************
If GameType CONTAINS(HDF)
; Run HDF Files. (You must link HDF file inside ZIP for this to work.)
;*********************************************************************
If Key_HDF CONTAINS(No WorkBench)
;-----------------------------------------------
;Put Game/Demo File in Hard Drive 0.
;-----------------------------------------------
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||hardfile2||rw,DH0:%gamepathfile%,32,1,2,512,-128,,uae)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||uaehf0||hdf,rw,DH0:%gamepathfile%,32,1,2,512,-128,,uae)
Else
;-----------------------------------------------
;Put WorkBench 3.1 in Hard Drive 0.
;-----------------------------------------------
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||hardfile2||rw,DH0:%dbpath%\Scripts\WB31.HDF,32,1,2,512,0,,uae)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||uaehf0||hdf,rw,DH0:%dbpath%\Scripts\WB31.HDF,32,1,2,512,0,,uae)
;-----------------------------------------------
;Put Game/Demo File in Hard Drive 1.
;-----------------------------------------------
Set_INI_Value(%dbpath%\Scripts\Amiga.uae||EXTRA||hardfile2||rw,DH1:%gamepathfile%,32,1,2,512,-128,,uae)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||uaehf1||hdf,rw,DH1:%gamepathfile%,32,1,2,512,-128,,uae)
End If

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\Kick31.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||1483A091,KS ROM v3.1 (A1200))
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v3.1)

;0=256k 1=512k 2=1MB 4=2MB 8=4MB 16=8MB

If Key_chipmem_size CONTAINS(0||1||2||4||8||16)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipmem_size||%chipmem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipmem_size||8)
End If

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||AGA)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68020)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68030)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_compatible||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_cycle_exact||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||blitter_cycle_exact||true)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||rtc||MSM6242B)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fatgary||-1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ramsey||-1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||log_illegal_mem||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||maprom||0xf000000)

Add_CLP(-f "%dbpath%\Scripts\Amiga.uae")
Run_Emulator()

;===================================================================================================
; CD32 settings ISO, BIN, CUE
;===================================================================================================
ElseIf Key_mode CONTAINS(CD32)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||nr_floppies||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy0type||-1)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\CD32.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||1E62D4A5,CD32 KS ROM v3.1)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||%dbpath%\Scripts\CD32EX.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file_id||87746BE2,CD32 extended ROM)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v3.1 CD32)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom||v3.1 CD32)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||ksmirror_a8||true)

;-------------------------------------------------------------------------
;Use "-" for Chipset_Compatible to enable advanced Chipset settings NVRAM.
;-------------------------------------------------------------------------
; Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||-)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||CD32)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cd32cd||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cd32c2p||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cd32nvram||true)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||flash_file||%dbpath%\Scripts\cd32.nvr)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||maprom||0x0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||AGA)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||compfpu||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||rtc||none)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||immediate_blits||false)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_speed||real)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68ec020)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68020)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_multiplier||4)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_compatible||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_cycle_exact||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||blitter_cycle_exact||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cycle_exact||true)

;Bogomem (Slow) **** 0=none 2=512k 4=1MB 6=1.5MB 7=1.8MB ***

If Key_bogomem_size CONTAINS(0||1||2||4||6||7)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||bogomem_size||%bogomem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||bogomem_size||0)
End If

;0=none 1=1MB 2=2MB 4=4MB 8=4MB

If Key_fastmem_size CONTAINS(0||1||2||4||8)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fastmem_size||%fastmem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fastmem_size||0)
End If

;0=256k 1=512k 2=1MB 4=2MB 8=4MB 16=8MB

If Key_chipmem_size CONTAINS(0||1||2||4||8||16)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipmem_size||%chipmem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipmem_size||4)
End If

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0||mouse0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0mode||cdtvjoy)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0autofire||none)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1||joy0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1mode||cd32joy)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1autofire||none)

Add_CLP(-f "%dbpath%\Scripts\Amiga.uae" -s cdimage0=%gamepathfile%,delay)
Run_Emulator()

;===================================================================================================
; CDTV settings for ISO, BIN, CUE files
;===================================================================================================
ElseIf Key_mode CONTAINS(CDTV)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||nr_floppies||0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||floppy0type||-1)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\CDTV.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||C4F0F55F,KS ROM v1.3 (A500,A1000,A2000))
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||%dbpath%\Scripts\CDTVEX10.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file_id||42BAA124,CDTV extended ROM v1.00)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v1.3)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom||v1.0 CDTV)

;-------------------------------------------------------------------------
;Use "-" for Chipset_Compatible to enable advanced Chipset settings NVRAM.
;-------------------------------------------------------------------------
;*******Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||CDTV)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset_compatible||-)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cdtvcd||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cdtvram||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cdtvramcard||1)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||immediate_blits||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||ECS_Agnus)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_speed||real)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68000)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_compatible||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_cycle_exact||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||blitter_cycle_exact||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cycle_exact||true)

;Bogomem (Slow) **** 0=none 2=512k 4=1MB 6=1.5MB 7=1.8MB ***

If Key_bogomem_size CONTAINS(0||1||2||4||6||7)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||bogomem_size||%bogomem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||bogomem_size||0)
End If

;0=none 1=1MB 2=2MB 4=4MB 8=4MB

If Key_fastmem_size CONTAINS(0||1||2||4||8)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fastmem_size||%fastmem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fastmem_size||0)
End If

;0=256k 1=512k 2=1MB 4=2MB 8=4MB 16=8MB

If Key_chipmem_size CONTAINS(0||1||2||4||8||16)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipmem_size||%chipmem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipmem_size||4)
End If

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0||mouse0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0mode||cdtvjoy)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport0autofire||none)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1||joy0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1mode||cd32joy)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||joyport1autofire||none)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cdimage0||%gamepathfile%,delay)

Add_CLP(-f "%dbpath%\Scripts\Amiga.uae" -s)
Run_Emulator()

;===================================================================================================
; WHDLOAD settings for WHDRUN.EXE
;===================================================================================================
ElseIf Key_Mode CONTAINS(whd)

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file||%dbpath%\Scripts\Kick31.rom)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom_file_id||1483A091,KS ROM v3.1 (A1200))
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_ext_rom_file||)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||kickstart_rom||v3.1)

;0=none 1=1MB 2=2MB 4=4MB 8=4MB

If Key_fastmem_size CONTAINS(0||1||2||4||8)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fastmem_size||%fastmem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fastmem_size||8)
End If

;0=256k 1=512k 2=1MB 4=2MB 8=4MB 16=8MB

If Key_chipmem_size CONTAINS(0||1||2||4||8||16)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipmem_size||%chipmem_size_value%)
Else
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipmem_size||4)
End If

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||chipset||aga)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_24bit_addressing||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_compatible||false)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_cycle_exact||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_model||68030)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_type||68020)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||cpu_speed||real)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||fpu_model||none)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||immediate_blits||true)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||blitter_cycle_exact||false)

;=======================================================================
; ** You MUST Set WHDLoad File System and unzip to Folder (C:\GBGAME\
;=======================================================================

Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||filesystem2||rw,DH0:DH0:%dbpath%\whd,0)
Set_CFG_Value(%dbpath%\Scripts\Amiga.uae||filesystem||rw,DH0:%dbpath%\whd)

; INI Value Must be used for (DH1:) as duplicate item names are used in WinUAE config file.

Set_INI_Value(%dbpath%\Scripts\Amiga.uae||EXTRA||filesystem2||rw,DH1:DH1:%gbgamepath%\whd\%gamefilenoext%,0)
Set_INI_Value(%dbpath%\Scripts\Amiga.uae||EXTRA||filesystem||rw,DH1:%gbgamepath%\whd\%gamefilenoext%)
;---------------------------------------------------
; You must set one of these WHDLoad and CD Values in GEMUS.
;---------------------------------------------------
; %CD_Value%
; cd=dh1:GAMENAME;
;
; %WHDLoad_Value%
; whdload=GAMENAME.slave PRELOAD;
; whdload=GAMENAME.slave PRELOAD BUTTONWAIT;
; whdload=GAMENAME.slave PRELOAD BUTTONWAIT; CUSTOM1=1 CUSTOM2=1;
; whdload=GAMENAME.slave PRELOAD; CUSTOM1=X;
; whdload=GAMENAME.slave PRELOAD CUSTOM1=16777216;
; whdload=GAMENAME.slave PRELOAD; CUSTOM1=1 CUSTOM2=1 CUSTOM3=1 CUSTOM4=XX;
; whdload=GAMENAME.slave PRELOAD NOAUTOVEC NOVBRMOVE;
;-------------------------------------------------------------

If Key_cd EXCLUDES(*dh1*)
Show_Message(CD Value missing from GEMUS example: "cd=dh1:GAMENAME;")
End If

Set_CFG_Item(%dbpath%\WHD\s\user-startup||cd||||%cd_value%)

If Key_whdload EXCLUDES(*slave*)
Show_Message(whdload Value missing from GEMUS example: "whdload=GAMENAME.slave PRELOAD;")
End If

Set_CFG_Item(%dbpath%\WHD\s\user-startup||whdload||||%whdload_value%)

Run_Program(%dbpath%\whdrun.exe||%gamepathfile% %gbgamepath%\whd\%gamefilenoext%/ "%emupath%\winuae.exe" "%dbpath%\Scripts\Amiga.uae" "%dbpath%\WHD\s\user-startup||nowait)

Else
;*******************************************************************
;Run all other compatible Amiga files (ADF||IPS||DMS||SPS||EXE||ZIP)
;*******************************************************************

Add_CLP(-f "%dbpath%\Scripts\Amiga.uae" -0%gamepathfile% -1%gamepathfile(1)% -2%gamepathfile(2)% -3%gamepathfile(3)% -s diskimage0=%gamepathfile% -s diskimage1=%gamepathfile(1)% -s diskimage2=%gamepathfile(2)% -s diskimage3=%gamepathfile(3)% -s diskimage4=%gamepathfile(4)% -s diskimage5=%gamepathfile(5)% -s diskimage6=%gamepathfile(6)% -s diskimage7=%gamepathfile(7)% -s diskimage8=%gamepathfile(8)% -s diskimage9=%gamepathfile(9)% -s diskimage10=%gamepathfile(10)% -s diskimage11=%gamepathfile(11)% -s diskimage12=%gamepathfile(12)% -s diskimage13=%gamepathfile(13)% -s diskimage14=%gamepathfile(14)% -s diskimage15=%gamepathfile(15)% -s diskimage16=%gamepathfile(16)% -s diskimage17=%gamepathfile(17)% -s diskimage18=%gamepathfile(18)% -s diskimage19=%gamepathfile(19)%)
Run_Emulator()
End If
User avatar
.mad.
Honoured Member
Honoured Member
Location: Lancashire
Posts: 2256
Joined: Sun Jun 19, 2005 3:30 pm

Mon Sep 05, 2016 9:18 pm

Are you trying to run this script in another CD32 gamebase (not the sampler).
the GEMUS commands stored in the MDB are different in other GB's, and the UAE config file has changed in newer versions of the emulator.

new
kickstart_rom=v3.1

old
kickstart=v3.1

new
text 'WHD' in version comment.

old
mode=WHD

The sampler GB and script was only intended to be used as a starting point to create your own GB, with the version of the emulator and kickstarts provided.
if you updated the emulator (winuae.ini) or WHDLoad, and installed to another drive partition, that could be it.

But it sounds like the kickstarts are NOT scanned and verified from the GB scripts folder.
check the location of [DetectedROMs] in winuae.ini file.
and it's missing mode=whd or 'WHD' in version comment.


it's impossible to guess without seeing the whole setup.
including the HD game you are trying to run.
Fiery Phoenix
Keen Member
Keen Member
Location: Bury, Lancs
Posts: 73
Joined: Tue Aug 07, 2012 8:07 am

Tue Sep 06, 2016 8:19 pm

I am still running it in the sampler - all my file are fooked up - proper mess.

Messed around a bit more and when I select the HD games to run the error message about the system ROM / 68020 / 32 bit addressing still remains. However when I select CD and Hard Drives in WinUAE which pops up on screen, I can clearly see that it is holding the correct game file with a 3.1 KS ROM file with 68030 as the CPU

I looked at the GEMUS notepad - unsure if this gives a clue, but logs the attempted load which look sok



Starting Unpacker...
-----------------clsUnpack.Unpack-----------------
Split runnable file into 1 part(s): [ Hare Raising Havoc (19xx)(Disney).hdf ]
Repacking is possible
7-Zip Path: [C:\GameBase\7z.exe]
Unpacking [C:\GameBase\Amiga CD Games\Games\HDF\Hare Raising Havoc (19xx)(Disney).zip] to folder [C:\GBGame\0]
-----------------clsUnpack.SevenListUnpack-----------------
Changed Directory to [C:\GameBase\Amiga CD Games\Games\HDF]
Running 7-Zip [C:\Windows\system32\cmd.exe /c C:\GameBase\7z.exe x "Hare Raising Havoc (19xx)(Disney).zip" -yro"C:\GBGame\0\"]
-----------------------------------------------------------
Trying to find runnable file or archive [C:\GBGame\0\Hare Raising Havoc (19xx)(Disney).hdf]
Found runnable file [C:\GBGame\0\Hare Raising Havoc (19xx)(Disney).hdf]
--------------------------------------------------
Runnable file determined [C:\GBGame\0\Hare Raising Havoc (19xx)(Disney).hdf]
Loaded 0 global k=v pairs
Looking for kvsets to load...
Finished loading all k=v pairs. Total loaded: 1
Finding first emulator that supports gamefile type [hdf]
Using emulator with index 0 [WinUAE v2.4.1]
Will be using these game field values:
m_lngFldNumPlayersFrom [-1]
m_lngFldNumPlayersTo [-1]
m_lngFldControl [0]
m_strFldGameComment []
m_strFldVersionComment []
m_lngFldPALNTSC [-1]
m_blnFldTrueDriveEmu [-1]
All script environment vars created
Final k=v pairs are:
kickstart=v3.1
Emulator executable found: [C:\GameBase\Emulators\WinUAE\winuae.exe]
Loaded GEMUS Script [C:\GameBase\Amiga CD Games\Scripts\Amiga.txt]
Validated Script lines
User avatar
.mad.
Honoured Member
Honoured Member
Location: Lancashire
Posts: 2256
Joined: Sun Jun 19, 2005 3:30 pm

Wed Sep 07, 2016 8:36 pm

like you said, your files are messed up. ;)

I just tested Hare Raising Havoc.HDF and it works for me.
it needs the WB31.HDF in DH0: and GAME.HDF in DH1:

If you ran the emulator away from GameBase and altered some of the default settings, you might have overwrote the UAE file.
The sampler uses extra settings which will be deleted by WinUAE if it is saved.
this is because the UAE config file contains duplicate lines for Hard Drives.
WinUAE just reads the duplicate config lines in order and runs.
But the GameBase script will only read and alter the first duplicate entry found.
So to make it script-able the duplicate lines are placed at the bottom of the UAE file under the heading [EXTRA] .
like this...


joyport0mode=mousenowheel
joyport1mode=djoy
[EXTRA]
hardfile2=
filesystem=
filesystem2=

all the script related files should be in the scripts folder...

WB31.HDF, AMIGA.UAE, KICK31.ROM

If you still can't get it working...
I can send you a new emulator and script setup, which will also work in Belgarath's GameBase v2.1.
So you can add your HDF's and CD's to that.
Fiery Phoenix
Keen Member
Keen Member
Location: Bury, Lancs
Posts: 73
Joined: Tue Aug 07, 2012 8:07 am

Sat Sep 10, 2016 12:54 pm

Thanks for the offer - I will take you up on that buddy.

Gave it another but no joy. Still getting the 68020 error message
nscxp2005
Keen Member
Keen Member
Posts: 58
Joined: Tue Nov 29, 2011 10:45 pm

Sun Sep 11, 2016 7:00 am

Could I get a copy of the new emulator and script.

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

Sun Sep 11, 2016 11:16 am

nscxp2005 wrote:Could I get a copy of the new emulator and script.

Thanks .mad :o
yes.
i will send after testing it.
nscxp2005
Keen Member
Keen Member
Posts: 58
Joined: Tue Nov 29, 2011 10:45 pm

Sun Sep 11, 2016 2:50 pm

Thank you .mad. It's much appreciated.

Return to “Commodore Amiga - GameBase Amiga”

Who is online

Users browsing this forum: No registered users and 6 guests