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.
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)
Moderator: Jimbo
- cluck
- New Member
- Location: Ontario, Canada
- K.C.
- Cool Member
- Location: The Netherlands
Post
Strange. I've tested it with this GEMUS script:
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
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()
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
Post
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.
Return to “The GameBase Frontend”
Who is online
Users browsing this forum: No registered users and 0 guests