Copying the script from the "CODE Window" above will not work.
Since the gb64 forum was updated, the code window doesn't show the correct text from the old forum anymore.
I can see the problem in the updated Hatari v2.1 config values.
Code: Select all
;************************
;* Hatari 2.1.0 *
;* Script by .mad. *
;* 10th February 2018 *
;* hatari.cfg version *
;************************
; http://hatari.tuxfamily.org/
; Default save location of config files hatari.cfg & hatari.nvram.
; C:\Documents and Settings\YOUR-NAME\.hatari\
; C:\Users\YOUR-NAME\.hatari\
; PRESS [F12] for emulator options MENU/
; PLEASE SET YOUR EMULATOR PROPERTIES AS FOLLOWS:
;
; Emulator File Win x86 : HATARI.EXE [83e0b795]
; Emulator File Win x64 : HATARI.EXE [7ff53906]
; Associated Script File (1): HATARI.CFG (v2.1.0)
; Other required files (53) : TOS images
; Use Short Filenames: YES
; File Types: ST;STx;MSA;DIM;IPF;RAW;CTR *STW
;STX, IPF and CTR disk images.
;These formats allow to backup a disk in an unaltered form, without requiring to remove the protection with a crack.
;Some complex protections rely on precise CPU/FDC timings and on some specific TOS version.
;For STF/STE protected games, it is recommended to use TOS 1.02 or 1.04 and 1MB RAM, as well as turning HD emulation OFF.
;By default everything that works on a real ST should work also in Hatari.
Set_ini_value(%emupath%\hatari.cfg||Log||bConfirmQuit || FALSE)
;--------------------------------------------------
; Set GameBase paths in HATARI.CFG
;----------------------------------------------------
Set_ini_value(%emupath%\hatari.cfg||Floppy||szDiskAZipPath || )
Set_ini_value(%emupath%\hatari.cfg||Floppy||szDiskBZipPath || )
; C:\GBGame\0
Set_ini_value(%emupath%\hatari.cfg||Floppy||szDiskImageDirectory || %gbgamepath%\0)
;Default EMU TOS
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || tos.img)
Set_ini_value(%emupath%\hatari.cfg||Sound||szYMCaptureFileName || hatari.wav)
Set_ini_value(%emupath%\hatari.cfg||Memory||szMemoryCaptureFileName || hatari.sav)
Set_ini_value(%emupath%\hatari.cfg||Memory||szAutoSaveFileName || auto.sav)
Set_ini_value(%emupath%\hatari.cfg||Printer||szPrintToFileName || hatari.prn)
Set_ini_value(%emupath%\hatari.cfg||Video||AviRecordFile || hatari.avi)
Set_ini_value(%emupath%\hatari.cfg||RS232||szOutFileName || /dev/modem)
Set_ini_value(%emupath%\hatari.cfg||RS232||szInFileName || /dev/modem)
Set_ini_value(%emupath%\hatari.cfg||Midi||sMidiInFileName || /dev/snd/midiC1D0)
Set_ini_value(%emupath%\hatari.cfg||Midi||sMidiOutFileName || /dev/snd/midiC1D0)
;crop status bar from screenshots
Set_ini_value(%emupath%\hatari.cfg||Screen||bCrop || TRUE)
;-----------------------------------------------
;Full Screen or Window (default).
;Edit resoultion 1920x1080 to suit your monitor.
;-----------------------------------------------
If Key_Screen CONTAINS (full)
Set_ini_value(%emupath%\hatari.cfg||Screen||bFullScreen || TRUE)
Set_ini_value(%emupath%\hatari.cfg||Screen||bKeepResolution || FALSE)
Set_ini_value(%emupath%\hatari.cfg||Screen||nMaxWidth || 1920)
Set_ini_value(%emupath%\hatari.cfg||Screen||nMaxHeight || 1080)
Set_ini_value(%emupath%\hatari.cfg||Screen||bForceMax || TRUE)
Set_ini_value(%emupath%\hatari.cfg||Screen||bShowDriveLed || TRUE)
Set_ini_value(%emupath%\hatari.cfg||Screen||bShowStatusbar || FALSE)
Set_ini_value(%emupath%\hatari.cfg||Screen||nFrameSkips || 0)
Else
Set_ini_value(%emupath%\hatari.cfg||Screen||bFullScreen || FALSE)
Set_ini_value(%emupath%\hatari.cfg||Screen||bForceMax || FALSE)
Set_ini_value(%emupath%\hatari.cfg||Screen||bKeepResolution || TRUE)
Set_ini_value(%emupath%\hatari.cfg||Screen||nMaxWidth || 832)
Set_ini_value(%emupath%\hatari.cfg||Screen||nMaxHeight || 576)
Set_ini_value(%emupath%\hatari.cfg||Screen||bShowStatusbar || TRUE)
Set_ini_value(%emupath%\hatari.cfg||Screen||nFrameSkips || 0)
End If
;Set Resolution (Hi-RES mono) : Monkey Business
If Key_Res CONTAINS(High)
;Monitor: 0=Mono, 1=RGB, 2=VGA, 3=TV
Set_ini_value(%emupath%\hatari.cfg||Screen||nMonitorType || 0)
;Colours: 0=2, 1=4, 2=16
Set_ini_value(%emupath%\hatari.cfg||Screen||nVdiColors || 0)
;384,512,640,768,896,1024,1152,1280,1408,1536,1664,1792,1920,2048
Set_ini_value(%emupath%\hatari.cfg||Screen||nVdiWidth || 640)
;208,224,240,256,272,288,304,320,336,352,368,384,400,416,432,448,
;464,480,496,512,528,544,560,576,592,608,624,640,656,672,688,
Set_ini_value(%emupath%\hatari.cfg||Screen||nVdiHeight || 400)
;use this for custom res over 640x480
;Set_ini_value(%emupath%\hatari.cfg||Screen||bUseExtVdiResolutions || TRUE)
Else
Set_ini_value(%emupath%\hatari.cfg||Screen||nMonitorType || 1)
Set_ini_value(%emupath%\hatari.cfg||Screen||nVdiColors || 2)
Set_ini_value(%emupath%\hatari.cfg||Screen||nVdiWidth || 640)
Set_ini_value(%emupath%\hatari.cfg||Screen||nVdiHeight || 480)
;crop border. without causes gfx problems in some hires modes.
Set_ini_value(%emupath%\hatari.cfg||Screen||bCrop || FALSE)
Set_ini_value(%emupath%\hatari.cfg||Screen||bUseExtVdiResolutions || FALSE)
End If
;## Special options required to boot some games.
; Many do not work with cartridge / HD emulation.
;----------------------------------------------------------------------
;Eco, Hover Sprint, Oids and other games - Floppy write protection OFF.
;----------------------------------------------------------------------
If Key_writeprotection CONTAINS(off||no||false||0)
Set_ini_value(%emupath%\hatari.cfg||Floppy||nWriteProtection || 0)
Else
Set_ini_value(%emupath%\hatari.cfg||Floppy||nWriteProtection || 1)
End If
;----------------------------------------------------------------------
;Super Skweek , Jaguar XJ220 - Disable Fast floppy.
; Mercenary III.stx causes emulator to crash when on. (OFF as Default)
;----------------------------------------------------------------------
If Key_fastfloppy CONTAINS (on||yes||true)
Set_ini_value(%emupath%\hatari.cfg||Floppy||FastFloppy || TRUE)
Else
Set_ini_value(%emupath%\hatari.cfg||Floppy||FastFloppy || FALSE)
End If
;-------------------------------------------------------------------------------
;Super Sprint - Patch Timer-D must be disabled or the music will play too fast.
;------------------------------------------------------------------------------
If Key_PatchTimer-D CONTAINS (false||off||no)
Set_ini_value(%emupath%\hatari.cfg||System||bPatchTimerD || FALSE)
Else
Set_ini_value(%emupath%\hatari.cfg||System||bPatchTimerD || TRUE)
End If
;-----------------------------
;Yolanda - fast boot disabled.
;-----------------------------
If Key_fastboot CONTAINS (false||off||no)
Set_ini_value(%emupath%\hatari.cfg||System||bFastBoot || FALSE)
Else
Set_ini_value(%emupath%\hatari.cfg||System||bFastBoot || TRUE)
End If
;-----------------------------------------------------------------------------
;Running Man, Treasure Trap, The Deep - RS232 enabled (writes to serial port).
;-----------------------------------------------------------------------------
If Key_RS232 CONTAINS (yes||on||true)
Set_ini_value(%emupath%\hatari.cfg||RS232||bEnableRS232 || TRUE)
Else
Set_ini_value(%emupath%\hatari.cfg||RS232||bEnableRS232 || FALSE)
End IF
;------------------------------------
;Eject Floppy Disks from both Drives.
;------------------------------------
Set_ini_value(%emupath%\hatari.cfg||Floppy||szDiskAFileName || )
Set_ini_value(%emupath%\hatari.cfg||Floppy||szDiskBFileName || )
;---------------------------------
;Remove attached HardDrive images.
;---------------------------------
Set_ini_value(%emupath%\hatari.cfg||HardDisk||szHardDiskImage || )
Set_ini_value(%emupath%\hatari.cfg||HardDisk||szIdeMasterHardDiskImage || )
Set_ini_value(%emupath%\hatari.cfg||HardDisk||szIdeSlaveHardDiskImage || )
;-----------------------------------------------------
; Machine type (ST, MegaST, STE, MegaSTE, TT, Falcon).
; * TT and Falcon not used in Atari ST GameBase.
;
; A TOS setting in the GEMUS will override the machine type.
; Can not have a incompatible TOS and Machine.
;---------------------------------------------------------
If key_Machine CONTAINS(ST)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 0)
ElseIf key_Machine CONTAINS(MegaST)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 1)
ElseIf key_Machine CONTAINS(STE)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 2)
ElseIf key_Machine CONTAINS(MegaSTE)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 3)
ElseIf key_Machine CONTAINS(TT)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 4)
ElseIf key_Machine CONTAINS(Falcon)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 5)
Else
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 0)
End If
;--------------------------------------------------
; CPU type (68000, 68010, 68020, 68030+FPU, 68040).
;--------------------------------------------------
If key_CPU CONTAINS(68000)
Set_ini_value(%emupath%\hatari.cfg||System||nCpuLevel || 0)
Else If key_CPU CONTAINS(68010)
Set_ini_value(%emupath%\hatari.cfg||System||nCpuLevel || 1)
Else If key_CPU CONTAINS(68020)
Set_ini_value(%emupath%\hatari.cfg||System||nCpuLevel || 2)
Else If key_CPU CONTAINS(68030)
Set_ini_value(%emupath%\hatari.cfg||System||nCpuLevel || 3)
Else If key_CPU CONTAINS(68040)
Set_ini_value(%emupath%\hatari.cfg||System||nCpuLevel || 4)
Else
Set_ini_value(%emupath%\hatari.cfg||System||nCpuLevel || 0)
End If
;---------------------------
; CPU Clock Mhz (8, 16, 32).
;---------------------------
If key_speed CONTAINS(8)
Set_ini_value(%emupath%\hatari.cfg||System||nCpuFreq || 8)
Else If key_speed CONTAINS(16)
Set_ini_value(%emupath%\hatari.cfg||System||nCpuFreq || 16)
Else If key_speed CONTAINS(32)
Set_ini_value(%emupath%\hatari.cfg||System||nCpuFreq || 32)
Else
Set_ini_value(%emupath%\hatari.cfg||System||nCpuFreq || 8)
End If
;-----------------------------------------------
; Memory (new values for Hatari v2.1)
; 256, 512, 1024, 2048, 2560, 4096, 8192, 14336
;-----------------------------------------------
If key_RAM CONTAINS(512k)
Set_ini_value(%emupath%\hatari.cfg||Memory||nMemorySize || 512)
ElseIf key_RAM CONTAINS(1MB)
Set_ini_value(%emupath%\hatari.cfg||Memory||nMemorySize || 1024)
ElseIf key_RAM CONTAINS(2MB)
Set_ini_value(%emupath%\hatari.cfg||Memory||nMemorySize || 2048)
ElseIf key_RAM CONTAINS(4MB)
Set_ini_value(%emupath%\hatari.cfg||Memory||nMemorySize || 4096)
ElseIf key_RAM CONTAINS(8MB)
Set_ini_value(%emupath%\hatari.cfg||Memory||nMemorySize || 8192)
ElseIf key_RAM CONTAINS(14MB)
Set_ini_value(%emupath%\hatari.cfg||Memory||nMemorySize || 14336)
;Default is 4MB for GamebaseST
Else
Set_ini_value(%emupath%\hatari.cfg||Memory||nMemorySize || 4096)
End If
;---------------------------------------------------------
; Select TOS version to use (All language hacks included.)
;---------------------------------------------------------
; Some ST games and demos require a specific TOS version.
; Atari ST TOS = 100,102,104,205,206
; Atari STE TOS = 106,162,205,206
;
; Warlock's Quest - TOS 102 or 162.
; 4 Wheel Drive compilation - TOS 104.
; Arkanoid - TOS 102 for mouse input.
; Dragon Ninja - TOS <= 104.
; Fire And Forget II - UK or US TOS.
; Garfield Winter's Tail - TOS 104 and 1MB RAM.
; Grimblood - TOS 102.
; Populous USA version - US TOS.
; Populous - TOS 104.
;---------------------------------------------------------
; GEMUS examples
; tos=104uk
; tos=205de-b
;---------------------------------------------------------
If key_TOS CONTAINS(100)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS100UK.img)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 0)
ElseIf key_TOS CONTAINS(100US)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS100US.img)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 0)
ElseIf key_TOS CONTAINS(102)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS102UK.img)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 0)
ElseIf key_TOS CONTAINS(102US)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS102US.img)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 0)
ElseIf key_TOS CONTAINS(104)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS104UK.img)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 0)
ElseIf key_TOS CONTAINS(104US)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS104US.img)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 0)
ElseIf key_TOS CONTAINS(106)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS106UK.img)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 2)
ElseIf key_TOS CONTAINS(106US)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS106US.img)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 2)
ElseIf key_TOS CONTAINS(162)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS162UK.img)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 2)
ElseIf key_TOS CONTAINS(162US)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS162US.img)
Set_ini_value(%emupath%\hatari.cfg||System||nModelType || 2)
ElseIf key_TOS CONTAINS(205)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS205UK.img)
ElseIf key_TOS CONTAINS(205US)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS205US.img)
ElseIf key_TOS CONTAINS(206)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS206UK.img)
ElseIf key_TOS CONTAINS(206US)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS206US.img)
;-------------------------------------------------------------------
;Just use your own custom TOS file - place in DIR Hatari\TOS\.
; GEMUS examples
; tosfile=tos104uk.img
; tosfile=anytosfilename.img (long names and spaces might break it).
;-------------------------------------------------------------------
ElseIf Key_tosfile CONTAINS (*)
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\%tosfile_value%)
Else
;use default TOS 104 UK
Set_ini_value(%emupath%\hatari.cfg||ROM||szTosImageFileName || %dbpath%\Emulators\TOS\TOS104UK.img)
End If
;Setup gbgamepath dir as HardDisk Image.
If Key_Harddisk CONTAINS(Yes)
Set_INI_Value(%emupath%\hatari.cfg||HardDisk||szHardDiskDirectory || %gamepath%\Harddisk)
Set_INI_Value(%emupath%\hatari.cfg||HardDisk||bUseHardDiskDirectory || TRUE)
;Updated HD files unzip for 64bit OS
Run_Program(%dbpath%\scripts\7za.exe||x %gamepath%\harddisk.zip -o%gamepath%\Harddisk||wait)
Else
Set_INI_Value(%emupath%\hatari.cfg||HardDisk||szHardDiskDirectory || )
Set_INI_Value(%emupath%\hatari.cfg||HardDisk||bUseHardDiskDirectory || FALSE)
End If
;Insert GameBase Disk in Drive A
Set_ini_value(%emupath%\hatari.cfg||Floppy||szDiskAFileName || %gamepathfile%)
if key_disk2 CONTAINS(yes)
Set_ini_value(%emupath%\hatari.cfg||Floppy||szDiskBFileName || %gamepathfile(1)%)
end if
Add_CLP (--configfile hatari.cfg)
;Run Hatari Emulator
Run_Emulator()