View Single Post
Old 07 June 2011, 16:20   #146
1time
Amiga Lover

1time's Avatar
 
Join Date: Jan 2010
Location: Stockholm / Sweden
Age: 39
Posts: 564
You need a End If before "If PalNTSC = NTSC". Every IF statement needīs to end with a END IF statement.

Like this:

Code:
End if

If PalNTSC = NTSC

etc
etc
etc


And please add

Code:
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cycle_exact||%cycle_exact_value%)
Set_CFG_Value(%dbpath%\HDF.uae||cycle_exact||%cycle_exact_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||cycle_exact||%cycle_exact_value%)



I have also edited the following to my script to make sure some important values always get added or removed if nothing else is declared. They are not always needed but sometimes the .uae file is not updated the way i excpected, this way i make it mandatory.

Code:
If %cpu_24bit_addressing_value% CONTAINS(%cpu_24bit_addressing_value%)
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cpu_24bit_addressing||)

Else
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cpu_24bit_addressing||%cpu_24bit_addressing_value%)

End If

If %floppy_speed_value% CONTAINS(%floppy_speed_value%)
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||floppy_speed||400)

Else
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||floppy_speed||%floppy_speed_value%)

End If


If %fpu_model_value% CONTAINS(%fpu_model_value%)
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||fpu_model||none)

Else
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||fpu_model||%fpu_model_value%)

End If


If %cpu_type_value% CONTAINS(68020)
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cpu_model||68020)

Else
	Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cpu_model||false)

End If

Last edited by 1time; 07 June 2011 at 16:45.
1time is offline  
 
Page generated in 0.05207 seconds with 9 queries