Main > Lightguns
Wingun, lightgun, guncon 2 troubles aplenty
felix pontifex:
I wanted you to know that I am probably going to get my penguin pistol tomorrow, so we can find out if it works ok'n'stuff. When you get a calibration feature ready for the script, would it be much work to add a bit to it where instead of just shooting the corners/center once, you do so 3 times? (for averaging purposes) I ask because I would like to test and see if there is a difference myself. Most users (as you said) would mind the multiple shot calibrations, but I do not. For your script, is there any sort of visual confirmation of where the center is supposed to be? Like a dot or something?
Howard_Casto:
I was working on the calibration code tonight actually. I still need a new sensor bar to properly test (the leds on this one are going in and out) but it works fairly well at first glance.
It'll have multiple visual confirmations on the screen, because I very much intend for this to be a all-in one script. At the desktop you'll be presented with flashing icons showing you where to shoot. In mame you'll have the mame cursor "shimmer" in the position where you are supposed to shoot. By shimmer I mean the cursor will bounce a pixel or two back and forth. I had to do this because with mame's preferred "auto" crosshair display, the crosshairs disappear if there isn't any movement aftre a second or two. This means you'll need to keep your crosshairs at least turned to auto, but trust me, for an ir gun that is almost a requirement. You can turn them off for positional gun games like terminator 2, but you'll need to have the game in a spot where the game's cursor is moveable to calibrate, which means you are going to lose a game. ;)
In either mode, if you have some form of text to speech installed, there will be a voice telling you what to do. That could easily be replaced by wav files if a person preferred it instead of installing sapi.
We'll see about the additional averaging. To be honest, it would be a noticable amount of extra work.
Howard_Casto:
One of the more annoying aspects of glovepie's scripting language is the inability to save or retrieve settings. It's looping nature also causes issues with constants, or lack there of.
The constant issue is easily fixed.... you just put the variables in an if statement that can only be entered when the script starts... like so:
if var.init=0 then
var.init=1
var.const1=12
var.const2=13
end if
The script starts up and of course init is 0 because it's never been defined. Once in the loop we immediately set var.init to 1 ensuring that after these variables are set the first time, they are never set again evne though the script is constantly looping.
Saving variables is a little tricker as there isn't any easy way to do it. Luckily glovepie supports the launching of programs in the script and the passing of variable values in the command line options. So I wrote a little command line app that changes the variable values in a script and re-saves it.
What does all this mean?
Well normally any glovepie script that involves a calibration routine (like our wiimote gun script) MUST be recalibrated every time you run the script as there isn't any way to save the calibration values. Now with my command line app, every time you calibrate your gun the values will be resaved in a "constant" section of the script, and thus the next time you open and run the script it will load your latest calibration values! Now we are getting somewhere!
Howard_Casto:
Picked up a new sensor bar today. Too bad I forgot the batteries. (DOH!) Anyway before the bats I did have went dead I tried it out and it works amazingly well. Now the thing is gigantic, you could probably go into battle with it, but it has adjustable seperation distance between the leds and it works really well.
It's called the "Wireless Ultra Sensor Bar" by Power A. If you need one go pick it up!
Anyway, I'll see what I can do about releasing at least the basic script tonight.
felix pontifex:
That is some wonderful news! I wanted you to know that I lost the Internet connection at my house, and I do not know when I will be getting it back. I suspect someone forgot to pay the bill but I won't find that out until I actually get around to calling my ISP. Some good news of my own though (btw posting from a friend's house): I got the penguin remote pistol and it is connecting to my bluetooth and showing up as a wii remote. I haven't been able to properly test whether it works with glovepie because of some battery issues of my own. I brought 2 pairs with me here, one that is kind of low, and the other that I thought was charged to full. Little did I know the ones that were supposed to be fully charged were in fact, dead, so I won't be able to give a 100% functional confirmation on the pistol until then, but so far it seems to be working (unless my friend has some spare batteries I can borrow).
I plan to also test a rifle shell thing that I bought, it aims the wii remote at a 90 degree angle, so it may require a modified script with roll compensation or something to work (and I do not expect you to help with that, seeing that it is not part of your plans).
(some time later) well my friend has no spare AA's, so I will just have to test it at home.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version