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

GEMUS Logic bug (If statements not working logically)

Discuss GameBase, the Universal Emulator Frontend!

Moderator: Jimbo

cluck
New Member
Location: Ontario, Canada
Posts: 3
Joined: Tue Jul 17, 2007 10:13 am

GEMUS Logic bug (If statements not working logically)

Tue Jul 17, 2007 10:18 am

Something is wrong with GEMUS detecting True Drive Emulation. To explain the problem here is a simple script that I tried:

;true drive emulation?
If GameType CONTAINS(d64||g64||g41)
If TrueDriveEmu = YES
show_Message(YES within GameType if statement)
Else
show_Message(NO within GameType if statement)
End If
End If

If TrueDriveEmu = YES
show_Message(YES!)
Else
show_Message(NO!)
End If


So if the game has that option on it works fine! I get 2 messages popup on my screen "YES within GameType if statement" and "YES!". The problem is when it is NOT enabled. In this case I get only one message "NO!". I do have all the information saved for each game. I click on a game and then go to the Version tab and I see "True Drive Emul: No". I then click Play Game and get the above results with that script! I have done programming previously in other languages and this does not make sense to me. I should be seeing 2 messages "NO within GameType if statement" and "NO!". I have removed the GameType check in my script so it looks like this:

;true drive emulation?
If TrueDriveEmu = YES
Add_CLP( -truedrive)
else
Add_CLP( +truedrive)
End If

Hopefully that won't cause any problems.
User avatar
K.C.
Cool Member
Cool Member
Location: The Netherlands
Posts: 416
Joined: Mon Sep 29, 2003 9:57 am

Tue Jul 17, 2007 12:21 pm

Strange. I've tested it with this GEMUS script:

Code: Select all

If GameType CONTAINS(t64||d64||g64||g41)
	If TrueDriveEmu = YES
		Show_Message(YES within GameType if statement)
	Else
		Show_Message(NO within GameType if statement)
	End If
End If

Run_Emulator()
I've added t64 in the Gametype line, because I've tested it with a T64 image.
If true drive emulation is set to ON, I get the message "YES within GameType if statement"
When I set it to Off, the message "NO within GameType if statement" appears.
So it works fine for me.

If you still have problems, you could try this script:

Code: Select all

;true drive emulation? 
If TrueDriveEmu = YES 
	Add_CLP( -truedrive) 
End If
If TrueDriveEmu = NO
	Add_CLP( +truedrive) 
End If 
cluck
New Member
Location: Ontario, Canada
Posts: 3
Joined: Tue Jul 17, 2007 10:13 am

Tue Jul 17, 2007 9:11 pm

Thank you for your reply. Actually today I tried the exact same script...it has not been modified since yesterday and now it works!! Very strange. And it wasnt my imagination. I tested it over and over yesterday and it didnt work and now with the exact same script it is working! Must have had something to do with rebooting my computer. Thanks.
cluck
New Member
Location: Ontario, Canada
Posts: 3
Joined: Tue Jul 17, 2007 10:13 am

Tue Jul 17, 2007 9:17 pm

Its been working fine for a while now. I think I know what the problem was. I might have been clicking on a T64 game and so that would explain it since I didnt have T64 in the if statement.

Return to “The GameBase Frontend”

Who is online

Users browsing this forum: Ahrefs [Bot] and 52 guests