Main > Main Forum
Accepting coins on PC games
Nacimroc:
Ok, I do realise that coins are for arcade games before anyone says it but.....
I'm wondering is there any way to make my coin slot work for newer PC games preferably driving games, i.e you can't play until you put a coin/credit in. I'd like to try make a driving wheel CP and have it accept coins but I'd want some newer games if I was going to that much hassle and would prefer if it had a coin accepted to play. If not are there any newer arcade games that accept coins that would suit me?
Thanks
JustMichael:
Think of the coin as a keypress, is there any driving games that require a certain keypress to start?
nitz:
I'm pretty sure you could make this work for any game using autohotkey. Say you have 5 as your insert coin button, and 1 as your start button. You could probably set up a script where you have a variable with an initial value of 0. If the variable equals 0, the 1 key is disabled. If you press 5 (you insert a coin!) the variable increases by 1 and the start game key is enabled. Pressing it starts the game and decreases the variable by one. So essentially the only way the game can be played is if a coin is inserted first. One potential problem I see is if the key that starts the game is also needed in game, but there's probably a way to work around that if that's the case.
I'm getting fairly familar with autohotkey and I think this would be a fairly easy script to write. So if you're not familiar with it and this sounds daunting to you, let me know and I'll whip up something really quick when I have a bit of free time. :) :cheers:
Edit: Actually in the case of a key press needed to start the game, the easy thing to do would be just what JustMichael suggested, as long as you're not picky about the coin insertion starting the game rather than the start button. In the case of a game working without a specific button being pressed, ie you can just start playing it, it would just be a matter of having all keys disabled until a coin is inserted, and having all keys disabled again after the game is over.
RayB:
Heh, depending on the game (like if it was an XBOX game) , 1 coin starts the game, a 2nd coin would pause it. ;-)
Nacimroc:
I have no hope with the coding side of things and wouldn't even know where to start. I can follow the logic but after reading the replies I can see the main problem would be how to stop the game after a certain time/end of game.
--- Quote from: RayB on September 26, 2010, 07:34:48 pm ---Heh, depending on the game (like if it was an XBOX game) , 1 coin starts the game, a 2nd coin would pause it. ;-)
--- End quote ---
I could map the start button to the coin credit but how would the game stop ? after a certain period of time maybe ? I would also have to make a reset key to restart the game in case someone else didn't want to continue from the last players 'pause point'.