Jump to content

Vic George 2K3's Photo

Vic George 2K3

Member Since 12 Sep 2002
OFFLINE Last Active Feb 8 2012 6:49 PM

Topics I've Started

Some Z26 Controller Scripts For GlovePIE

Fri Apr 8, 2011 5:01 AM

Some that I made for the Z26 emulator, for playing Atari 2600 games, mostly the joystick-controlled ones. This is the script that just uses the Wii Remote:
wiimote.Leds = 0
Up = wiimote.Right
Down = wiimote.Left
Left = wiimote.Up
Right = wiimote.Down
F2 = wiimote.Minus //Select
F1 = wiimote.Plus //Start
Escape = wiimote.Home //Exit
Control = wiimote.One
Control = wiimote.Two
And this is the script that uses the Classic Controller:
wiimote.Leds = 0
Up = wiimote.classic.Up or Wiimote.Classic.Joy1Y < -0.2
Down = wiimote.classic.Down or Wiimote.Classic.Joy1Y > 0.2
Left = wiimote.classic.Left or Wiimote.Classic.Joy1X < -0.2
Right = wiimote.classic.Right or Wiimote.Classic.Joy1X > 0.2
F2 = wiimote.classic.Minus //Select
F1 = wiimote.classic.Plus //Start
Escape = wiimote.classic.Home //Exit
Control = wiimote.classic.B

Some specialized versions of the Z26 Classic Controller script for certain Atari 2600 games:

Tron Deadly Discs: This simulates as best as it can a dual firing joystick for games where dual firing joysticks may be or are required but were forced into using a single joystick and action button when ported to the Atari 2600. This script also works for Vanguard and Tutankham.

// Z26 Emulator Controller Script for Tron Deadly Discs
wiimote.Leds = 0
Up = wiimote.classic.Up or Wiimote.Classic.Joy1Y < -0.2
Down = wiimote.classic.Down or Wiimote.Classic.Joy1Y > 0.2
Left = wiimote.classic.Left or Wiimote.Classic.Joy1X < -0.2
Right = wiimote.classic.Right or Wiimote.Classic.Joy1X > 0.2
F2 = wiimote.classic.Minus //Select
F1 = wiimote.classic.Plus //Start
Escape = wiimote.classic.Home //Exit
Up&&Control = wiimote.classic.Joy2Y < -0.2
Down&&Control = wiimote.classic.Joy2Y > 0.2
Left&&Control = wiimote.classic.Joy2X < -0.2
Right&&Control = wiimote.classic.Joy2X > 0.2

Raiders Of The Lost Ark: This game actually uses two joysticks; one for moving Indiana Jones and the other for selecting the objects in his inventory. I simply put them onto one controller, with the Left Stick moving Indiana Jones and the Right Stick for selecting his inventory. Button B uses the selected item in his inventory and Button A selects the item.

wiimote.Leds = 0
Up = wiimote.classic.Up or Wiimote.Classic.Joy1Y < -0.2
Down = wiimote.classic.Down or Wiimote.Classic.Joy1Y > 0.2
Left = wiimote.classic.Left or Wiimote.Classic.Joy1X < -0.2
Right = wiimote.classic.Right or Wiimote.Classic.Joy1X > 0.2
E = Wiimote.Classic.Joy2Y < -0.2
D = Wiimote.Classic.Joy2Y > 0.2
S = Wiimote.Classic.Joy2X < -0.2
F = Wiimote.Classic.Joy2X > 0.2
F2 = wiimote.classic.Minus //Select
F1 = wiimote.classic.Plus //Start
Escape = wiimote.classic.Home //Exit
Control = wiimote.classic.B
N = wiimote.Classic.A

Stargate: This sequel to Defender uses two joysticks; one of them for the main control of the ship and the other for the remaining three weapons. All the controls you need to play this game are all put into one controller.

wiimote.Leds = 0
Up = wiimote.classic.Up or Wiimote.Classic.Joy1Y < -0.2
Down = wiimote.classic.Down or Wiimote.Classic.Joy1Y > 0.2
Left = wiimote.classic.Left or Wiimote.Classic.Joy1X < -0.2
Right = wiimote.classic.Right or Wiimote.Classic.Joy1X > 0.2
F2 = wiimote.classic.Minus //Select
F1 = wiimote.classic.Plus //Start
Escape = wiimote.classic.Home //Exit
Control = wiimote.classic.B //Fire
N = wiimote.Classic.A //Smart Bomb
E = wiimote.Classic.Y //Inviso
D = wiimote.Classic.X //Hyperspace

Star Raiders: This game uses both the joystick and the Video Touch Pad, which is basically a fancied-up version of the Atari 2600 keypad controller. Again all the controls needed for playing this game are all put onto one controller.

// Z26 Emulator Controller Script for Star Raiders
wiimote.Leds = 0
Up = wiimote.classic.Up or Wiimote.Classic.Joy1Y < -0.2
Down = wiimote.classic.Down or Wiimote.Classic.Joy1Y > 0.2
Left = wiimote.classic.Left or Wiimote.Classic.Joy1X < -0.2
Right = wiimote.classic.Right or Wiimote.Classic.Joy1X > 0.2
F2 = wiimote.classic.Minus //Select
F1 = wiimote.classic.Plus //Start
Escape = wiimote.classic.Home //Exit
Control = wiimote.classic.B //Fire
Key.1 = wiimote.classic.Y //Keypad 1
Key.2 = wiimote.classic.X //Keypad 2
Key.3 = wiimote.classic.A //Keypad 3
Q = wiimote.classic.LFull //Keypad 4
W = wiimote.classic.RFull //Keypad 5

Tank Games: For simulating tank controls in games like Combat, Battlezone, and Robot Tank.

// Z26 Emulator Controller Script for Tank Games
wiimote.Leds = 0
Up = wiimote.Classic.Joy1Y < -0.2 and Wiimote.Classic.Joy2Y < -0.2
Down = wiimote.Classic.Joy1Y > 0.2 and Wiimote.Classic.Joy2Y > 0.2
Left = wiimote.Classic.Joy1Y > 0.2 and Wiimote.Classic.Joy2Y < -0.2
Right = wiimote.Classic.Joy1Y < -0.2 and Wiimote.Classic.Joy2Y > 0.2
F2 = wiimote.classic.Minus //Select
F1 = wiimote.classic.Plus //Start
Escape = wiimote.classic.Home //Exit
Control = wiimote.classic.ZR

Wii-fying my PC

Tue Apr 5, 2011 3:46 PM

I finally got myself a Bluetooth adapter for connecting a Wii Remote to my PC and have been playing around with GlovePIE after successfully getting my computer to acknowledge the presence of a Wii Remote. Besides creating the Dragon Age control script (which unfortunately doesn't use the sensor bar as I was hoping for, but nonetheless works without the need for it), I also created one for Elder Scrolls IV: Oblivion, which does the following things:

Control Stick rotates the player's POV and controls the mouse pointer in menus
D-Pad controls the player's forward/backward motion as well as strafing
A Button is the attack button: swinging the Wii Remote horizontally or vertically also does the same action, which is preferable if you're armed with a sword
B Button is the block button
- Button is the crouch/sneak button
+ Button is the button for switching between first-person and third-person views
Home Button brings up the main menu
1 Button is the casting button
2 Button is for accessing inventory menus, maps and quests
C Button is to open doors, activate things, or initiate conversations
Z Button is the jump button

// Elder Scrolls IV: Oblivion Script for Wii Remote and Nunchuk
Mouse.DirectInputX = Mouse.DirectInputX + 10*deadzone(Wiimote.Nunchuk.JoyX)
Mouse.DirectInputY = Mouse.DirectInputY + 10*deadzone(Wiimote.Nunchuk.JoyY)
W = Wiimote.Up
D = Wiimote.Right
S = Wiimote.Down
A = Wiimote.Left
R = Wiimote.Plus
Control = Wiimote.Minus
Escape = Wiimote.Home
Mouse.LeftButton = Wiimote.A or Wiimote.SwingHorizontal or Wiimote.SwingVertical
Mouse.RightButton = Wiimote.B
E = Wiimote.Nunchuk.Z
Space = Wiimote.Nunchuk.C
C = Wiimote.One
Tab = Wiimote.Two