View Single Post
Old 06 June 2011, 22:13   #145
sjakie43
DJ
sjakie43's Avatar
 
Join Date: Dec 2006
Location: Holland
Age: 46
Posts: 445
Hi,

I have found a setup with an HDF.uae that uses 2 hdf files.
1 hdf is the WB31.hdf and the second is .....hdf(demo to be specified).
I need this in gemus so that i can specify it in the key=value pair.
DH0=WB31.hdf and DH1=(demo name).hdf.
I have an fixed directory for it.

I have tried to implement it but i'm a real NOOB at this.

This setup works GREAT and i already have 200+ HD demos that work
like a charm.
Also a lot of the demos(not working ones)with (e)xec.lib etc are also fixed.
So i just need it to be implemented in Gemus script.
I think the best thing is to add these HDF demos as an extra to avoid
confusion.

Here's the script so far,it has many errors offcourse eh



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

Set_CFG_Value(%dbpath%\GameBase Amiga.uae||kickstart_rom||%kickstart_rom_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||floppy1type||%floppy1type_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||floppy2type||%floppy2type_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||floppy3type||%floppy3type_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||nr_floppies||%nr_floppies_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||sound_output||%sound_output_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||immediate_blits||%immediate_blits_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||ntsc||%ntsc_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||chipset||%chipset_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||chipset_compatible||%chipset_compatible_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||collision_level||%collision_level_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||fastmem_size||%fastmem_size_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||bogomem_size||%bogomem_size_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||chipmem_size||%chipmem_size_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cpu_speed||%cpu_speed_value%)
Set_CFG_Value(%dbpath%\Gamebase Amiga.uae||z3mem_size||%z3mem_size_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cpu_type||%cpu_type_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cpu_model||%cpu_type_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||fpu_model||%fpu_model_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cpu_compatible||%cpu_compatible_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||fpu_strict||%fpu_strict_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cpu_24bit_addressing||%cpu_24bit_addressing_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cpu_cycle_exact||%cpu_cycle_exact_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||blitter_cycle_exact||%blitter_cycle_exact_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||statefile||%statefile_value%)
Set_CFG_Value(%dbpath%\GameBase Amiga.uae||cachesize||%cache_size_value%)
;Set_CFG_Value(%dbpath%\GameBase Amiga.uae||finegrain_cpu_speed||%finegrain_cpu_speed_value%)
If VersionComment CONTAINS(WHD)
Set_CFG_Item(%dbpath%\WHDLoad.uae||filesystem2=rw,DH0H0||:||%dbpath%\whd,0)
Set_CFG_Item(%dbpath%\WHDLoad.uae||filesystem=rw,DH0||:||%dbpath\whd)
Set_CFG_Item(%dbpath%\WHDLoad.uae||filesystem2=rw,DH1H1||:||%gbgamepath%\rezip\%gamefilenoext%,0)
Set_CFG_Item(%dbpath%\WHDLoad.uae||filesystem=rw,DH1||:||%gbgamepath%\rezip\%gamefilenoext%)
Set_CFG_Item(%dbpath%\WHD\s\user-startup||cd||||%cd_value%)
Set_CFG_Item(%dbpath%\WHD\s\user-startup||whdload||||%whdload_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||immediate_blits||%immediate_blits_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||chipset_compatible||%chipset_compatible_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||collision_level||%collision_level_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||z3mem_size||%z3mem_size_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||cpu_speed||%cpu_speed_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||cpu_type||%cpu_type_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||fpu_model||%fpu_model_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||cpu_compatible||%cpu_compatible_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||fpu_strict||%fpu_strict_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||cpu_24bit_addressing||%cpu_24bit_addressing_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||cpu_cycle_exact||%cpu_cycle_exact_value%)
Set_CFG_Value(%dbpath%\WHDLoad.uae||blitter_cycle_exact||%blitter_cycle_exact_value%)
;Set_CFG_Value(%dbpath%\WHDLoad.uae||finegrain_cpu_speed||%finegrain_cpu_speed_value%)
Run_Program(%dbpath%\whdrun.exe||%gamepathfile% %gbgamepath%\rezip\%gamefilenoext%/ "%emupath%\winuae.exe" "%dbpath%\WHDLoad.uae" "%dbpath%\WHD\s\user-startup||nowait)

If PalNTSC = NTSC
Set_CFG_Value(%dbpath%\WHDLoad.uae||ntsc||true)
Else
Set_CFG_Value(%dbpath%\WHDLoad.uae||ntsc||false)
End If
If VersionComment CONTAINS(HDF)
Set_CFG_Item(%dbpath%\HDF.uae||hardfile2=rw,DH0H0||:||\F:\GameBase\Demobase Amiga Software\HDF Demos\WB 3.1.hdf,32,1,2,512,0,,uae)
Set_CFG_Item(%dbpath%\HDF.uae||uaehf0=hdf,rw,DH0||:||:F:\GameBase\Demobase Amiga Software\HDF Demos\WB 3.1.hdf,32,1,2,512,0,,uae)
Set_CFG_Item(%dbpath%\HDF.uae||hardfile2=rw,DH1H1||:||\F:\GameBase\Demobase Amiga Software\HDF Demos\empty.hdf,32,1,2,512,0,,uae\rezip\%gamefilenoext%,0)
Set_CFG_Item(%dbpath%\HDF.uae||uaehf1=hdf,rw,DH1||:||\:F:\GameBase\Demobase Amiga Software\HDF Demos\empty.hdf,32,1,2,512,0,,uae\rezip\%gamefilenoext%)
Add_CLP(-f "%dbpath%\hdf.uae" -0%gamepathfile% -1%gamepathfile(1)% uaehf0=%dbpath%\workbench.hdf -s uaehf1=%gamepathfile(1)%)
Set_CFG_Value(%dbpath%\HDF.uae||sound_output||%sound_output_value%)
Set_CFG_Value(%dbpath%\HDF.uae||immediate_blits||%immediate_blits_value%)
Set_CFG_Value(%dbpath%\HDF.uae||ntsc||%ntsc_value%)
Set_CFG_Value(%dbpath%\HDF.uae||chipset||%chipset_value%)
Set_CFG_Value(%dbpath%\HDF.uae||chipset_compatible||%chipset_compatible_value%)
Set_CFG_Value(%dbpath%\HDF.uae||collision_level||%collision_level_value%)
Set_CFG_Value(%dbpath%\HDF.uae||fastmem_size||%fastmem_size_value%)
Set_CFG_Value(%dbpath%\HDF.uae||bogomem_size||%bogomem_size_value%)
Set_CFG_Value(%dbpath%\HDF.uae||chipmem_size||%chipmem_size_value%)
Set_CFG_Value(%dbpath%\HDF.uae||cpu_speed||%cpu_speed_value%)
Set_CFG_Value(%dbpath%\HDF.uae||z3mem_size||%z3mem_size_value%)
Set_CFG_Value(%dbpath%\HDF.uae||cpu_type||%cpu_type_value%)
Set_CFG_Value(%dbpath%\HDF.uae||cpu_model||%cpu_type_value%)
Set_CFG_Value(%dbpath%\HDF.uae||fpu_model||%fpu_model_value%)
Set_CFG_Value(%dbpath%\HDF.uae||cpu_compatible||%cpu_compatible_value%)
Set_CFG_Value(%dbpath%\HDF.uae||fpu_strict||%fpu_strict_value%)
Set_CFG_Value(%dbpath%\HDF.uae||cpu_24bit_addressing||%cpu_24bit_addressing_value%)
Set_CFG_Value(%dbpath%\HDF.uae||cpu_cycle_exact||%cpu_cycle_exact_value%)
Set_CFG_Value(%dbpath%\HDF.uae||blitter_cycle_exact||%blitter_cycle_exact_value%)
Set_CFG_Value(%dbpath%\HDF.uae||statefile||%statefile_value%)
Set_CFG_Value(%dbpath%\HDF.uae||cachesize||%cache_size_value%)
;Set_CFG_Value(%dbpath%\HDF.uae||finegrain_cpu_speed||%finegrain_cpu_speed_value%)
Else
Add_CLP(-f "%dbpath%\GameBase 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


It gives me >2 many IF statements error at the moment.

Please help me out here!

These HD look very nice and it would be COOL to have it in Demobase
Amiga.

Regards
Sjakie43
sjakie43 is offline  
 
Page generated in 0.06666 seconds with 9 queries