Page 1 of 1

Gamebase is always giving me "invalid file referenced in script function" !

Posted: Fri May 27, 2022 2:45 am
by The 80s Fan
Hello @ all, helleo .mad !

I am referring to "Demobase64"_V2.
I KNOW: It is not about the gamecollection, but its the same frontend, so...

Everytime i want to start a demo a windows pops up telling me "Invalid file referenced in script function. After clicking it is asking me to run the script anyways. When i click yes, the emulator shows me a black screen.
Configured "Vice" And "CCS64", both failed.

I even made a "clean install", but: No luck...



Please help me as soon as possible, big respect !!

Re: Gamebase is always giving me "invalid file referenced in script function" !

Posted: Fri May 27, 2022 3:12 pm
by .mad.
Hi 80's fan.

that problem is incorrect path set to emulator ini or config file in the script.

first open emulators.ini file in notepad.

[CCS64 v3.9.2 R3]
UseShortFilenames=1
SupportedTypes=D64;G64;G41;T64;P00;TAP;PRG;CRT
EmulatorPathFile=C:\GameBase\GBC_v16\emu\CCS64\CCS64.exe
ScriptFile=CCS64.txt
1=C:\GameBase\GBC_v18\emu\CCS64\c64.cfg
UseDefaultTypes=0
WaitFinish=1

in this example.
is the "c64.cfg" at that path location.

the script is looking for it, so it can edit it.
the "(1||" in the script...
Set_CFG_Value(1||$CONTROLPORT1||0)
refers to this "1" in the emulators ini.
1=C:\GameBase\GBC_v18\emu\CCS64\c64.cfg

if you move gamebase install files around. This is another way of doing the same thing.
Set_CFG_Value(%dbpath%\scripts\c64.cfg||$CONTROLPORT1||0)