Main > Software Forum
Cheat options (overclock) from command line (adding to derivative)
ianpatt:
--- Quote ---That code will not compile.
--- End quote ---
Oops, fixed in local file but didn't copy over to the messageboard. Use
--- Code: ---timer_set(TIME_IN_MSEC(delay), (data & 0xFFFFFF00) | cpu, HandleOverclock);
--- End code ---
instead of the other mame_timer line.
--- Quote ---Just curious if this needs to also be added? (function prototype snipped)
--- End quote ---
Doesn't need to be, as long as HandleOverclock is before HandleLocalCommandCheat, but I prototyped everything else at the beginning of the file, so if you want to stick with the same coding style go ahead.
TheGatesofBill:
Okay, it works now. It'll be in the next release of No Name MAME.
Tiger-Heli:
--- Quote from: ianpatt on May 10, 2004, 02:58:13 pm ---I don't mind if someone uses it in a derivative build, but stuff like this doesn't really belong in the main build.
--- End quote ---
Ian, first off, I would again like to say thanks for coding this. I think it's a great addition to MAME and personally, I'm glad it will be available in a derivative build, if not in the main build.
The rest of this is more academic/hypothetical, but let me spend some time on the high horse and hopefully it will at least lead to some good discussion.
My personal feeling is that not only does this delay function belong in the main build, but the whole overclock CPU function should be in the main source code and out of the cheat function, so that high score saving is not affected. (or the cheat function should be modified so overclocking the CPU does not disable high score save, but I think that would be more difficult to accomplish).
More on this theory: I understand why if I play a game with infinite lives and infinite power-ups, I shouldn't overwrite high-scores that were legitimately obtained, but CPU overclock really doesn't make the game easier, just makes it playable on a slower computer. I don't see how it's really any different than playing a game at frameskip 8 instead of frameskip 0 or settting samplerate to 11025 instead of 44100 (except it's usually more transparent than either of these changes), both of which I could make and still save high scores.
Anyway, that's the main thing I wanted to say, and I would welcome anyone else's thoughts on this issue. (And I realize it's unlikely to be changed no matter what I think, and that's okay with me too!)
ianpatt:
--- Quote ---My personal feeling is that not only does this delay function belong in the main build, but the whole overclock CPU function should be in the main source code and out of the cheat function, so that high score saving is not affected. (or the cheat function should be modified so overclocking the CPU does not disable high score save, but I think that would be more difficult to accomplish).
--- End quote ---
It already works that way. Highscore saving is only disabled if you enable a cheat, and from a technical standpoint these aren't cheats. I just put this code in the cheat engine because it's a good framework for doing game-specific things, and because I'm very familiar with the code.
Tiger-Heli:
--- Quote from: ianpatt on May 11, 2004, 02:19:28 pm ---
--- Quote ---My personal feeling is that not only does this delay function belong in the main build, but the whole overclock CPU function should be in the main source code and out of the cheat function, so that high score saving is not affected. (or the cheat function should be modified so overclocking the CPU does not disable high score save, but I think that would be more difficult to accomplish).
--- End quote ---
It already works that way. Highscore saving is only disabled if you enable a cheat, and from a technical standpoint these aren't cheats. I just put this code in the cheat engine because it's a good framework for doing game-specific things, and because I'm very familiar with the code.
--- End quote ---
Ok, my mistake. I assumed (and you know what that does) that anytime I ran MAME with -cheat enabled, high score saving was turned off. If that's not the case with this, than I couldn't be happier.
(Except I still think it belongs in the main build, even though most people wouldn't know how to activate it (like I didn't before yesterday)). 8)
Thanks again!