at first, the purpose of this was to write a simple script to play Skyrim with
then I realized that I had a bunch of other games I'd want to make a script for, but
I'd not want to write a whole new file for it, so I started experimenting..
I don't have internet access at the moment, so I wasn't able to look up the syntax for
this, but it seems pretty standard, so if I'm doing something some way that could be made
much more efficient, let me know.
Basically, to use this, all you have to do is connect your wiimote and Classic controller via
Bluetooth, and open this up in GlovePIE and Run it. then you're going to type in the profile you want to
use in the top text bar, or the 'Debug' box. once you've typed it in, you don't need to press
Enter or anything, just wait and it should load up, you'll be notified by a loading bar on your wiimote.
There are a few game profiles pre-loaded in this script, the ones I've written are as follows
-Skyrim
-Minecraft
-Nexuiz
-Custom (This one is used as a tutorial example, so don't actually use it.)
-Custom1 (This one is a blank template for you to make your own profile with)
and when you type those in, you have to capitalize and spell everything exactly as you see here.
if you want to choose another profile, you have to stop the script and start it again, typing
in another name.
=====================
|CHANGING THE CONFIG|
=====================
So, you're pretty happy with this, and it plays games pretty nicely, but you're way too used
to playing with inverted controls to use this, or maybe you like southpaw a lot more then
you like default, well don't worry, I thought of you too!
In the script there a a few config variables, that let you change this sort of thing, and they're
conveniently located at the top of the script!
The functional variables are as follows:
Var.Swap: ('Righty' / 'Lefty' Default: 'Righty' )
Swaps the Buttons, joysticks, and triggers over to the oppisite side of the controller
Through the magic of nesting, changes the mouse controls to invert controls however you like
Normal = Normal, Obviously
HInvert = Horizontal invert, inverts Left/Right mouse movement.
VInvert = Vertical Invert, Inverts Up/Down mouse movement.
AInvert = All Invert, Inverts both Vertical and Horizontal mouse movement
=======================
|ADDING YOUR OWN GAMES|
=======================
To add your own game, is to add your own profile to the script itself.. I've tried to make it as simple
and easy to do to do so, but I will at least assume you have a basic understanding of how to code
in GlovePIE
Profiles are kept in their own little boxes, called an 'if statement' and basically that tells the program
that 'if' you type in a name, that it's going to execute a block of code, in this case, a profile.
This, is what one of those profiles looks like in the script
=======================
1| if Var.Game = 'Custom1'
2|
3| a = Var.A
4| y = Var.Y
5| b = Var.B
6| x = Var.X
7|
8| u = Var.Up
9| l = Var.Left
10| d = Var.Down
11| r = Var.Right
12|
13| l = Var.L
14| r = Var.R
15|
16| z = Var.ZR
17| z = Var.ZL
18|
19| p = Var.Plus
20| h = Var.Home
21| m = Var.Min
22|//Ls = Classic.LeftStick
23|//Rs = Classic.RightStick
24| Var.FPS = True
25| Var.Sense = 20
26| Var.Credit = 'Yourname'
27| Var.GameName = 'Custom1'
if Var.Loaded = false
Var.LEDs = false
wait 1s
Wiimote.Led1 = True
debug = '.. '
wait 1s
Wiimote.Led2 = True
debug = '.... '
wait 1s
Wiimote.Led3 = True
debug = '....... '
wait 1s
Wiimote.Led4 = True
debug = '.............'
debug = 'Game Profile "' + var.GameName + '" by ' + var.credit + ' Loaded!'
var.Loaded = true
var.Leds = true
endif
Var.Game = Var.GameName
endif
==========================
I'm going to describe this line-by-line.
1| The first line, has one of the more important bits, the Name of the game that you would
use when loading it into the 'Debug' You're probably just going to want to name it the name
of the game.
3-21| These are the controls themselves, You're going to want to change the Letters like you would a regular GlovePIE Script
I tried to make the Variable names as obvious as possible, but if you're confused, I have a example tutorial profile in the script itself
that describes what each of the variables do.
22-23| These are the variables for the left and right sticks, and are to be left commented out unless you absolutely need to use them, and don't need them to be
bound to WASD / Mouse movement. if you don't you're going to have to change Var.FPS to False.
24-27| These are some useful Per-Profile Variables that you can change. they mean, as follows:
- Var.FPS: (True / False Default:True)
This toggles between using my hardcoded WASD / Mouse controls, or using your profile-specified joystick controls.
- Var.Sense: (Default:20)
This changes the mouse sensetivity for that particular profile. this is useful if you're playing a game that doesn't have the setting.
- Var.Credit: (Default:'Yourname')
This sets the name that is shown in the debug window when the profile is loaded.
- Var.GameName: (Default:'Custom1')
This is the name that is shown in debug when the profile is loaded, reccomended that you make it the same as Var.Game (Line 1)
28+| This is the code for the loading animation, You're free to change it however you like if you know what youu're doing, but be careful because the
code used to load the gamename from debug into game and not let it get stuck in an infinite loops is quite
fragile.. I'd have prefered not having this code in the profiles at all, but it seemed like the only way to make it work, I'm afraid.
============================
Now that you know what all that mumbo jumbo means, go look in the script, on the 342nd line,
you'll find the very script I've put here! you can change it however you like, or copy it and paste it
again to make room for more than one custom profile! Just remember to only copy the code that's shown above (From if to Endif)
and paste it both AFTER an endif and BEFORE another if statement. don't want to get it all tangled up.
I like the idea, but I won't touch the download unless you add some pics or a video.
Edit: Pretty neat, def gonna try this when I get my computer back!
dude, it really looks cool! So, basically, i just connect the wiimote to my computer (yes i have bluetooth installed and workin), then launch the script, type Minecraft in that box of glove pie and then i'm ready to play minecraft with my wii remote? o.0
This should have more downloads, now I'll be able to get people who can't play games with the keyboard to be able to play games. Is the Classic Controller an Xbox controller?
It's a controller for wii, that you need a BT adaptor to connect to~
This is really amazing thank you so much!
It works really well for Minecraft as well as other games I have tried it with. All of the code is organized very neatly and its much easier to understand than any other GlovePie scripts I have found, again thank you. I do have one problem however, when I map buttons to the mouse wheel and use it for something, like switch items in minecraft, It moves way too fast for me to be able to control it. I have the feeling that this is related to the key repeat rate, but I'm not very resourceful with GlovePie scripting (all my attempts have got me nothing). Anyways, I was hoping you might know of any solutions so I can keep using these awesome scripts!
Just as a suggestion, you could use the command/statement window.title so that GlovePIE will read the title of the active window and switch to the appropriate controller profile without the user having to type it into the debug box.
This is very late but does anyone know how to make it scroll through my inventory slower? i tab on what ever is binded for mouse scroll up and it pretty much goes over my whole inventory making it very hard to switch items
Also thank you Fire_Fist for making this script, im enjoying how easy it is to use and add new games
Updated the script added a tf2 one, improved the minecraft one and theres a semi working psp emulator one (i couldnt figure out how to bind the analog sticks)
Okay so I completely forgot about this project!
I'm like super glad that people finally used it too, that makes this my first coding project someone has actually used xD
So I will get to updating this now! I'll be adding an option to use the the Window.Title method to load profiles suggested by Wifty_16.
Also I'll be implementing the new profiles that have been made by Metal079 (Credit will be given for both)
AND I'll fix the weird autoscrolling bug. Shouldn't take too long.
Welcome to UCC - the Universal Classic Controller!
DOWNLOAD - GlovePIE
DOWNLOAD - UCC
at first, the purpose of this was to write a simple script to play Skyrim with
then I realized that I had a bunch of other games I'd want to make a script for, but
I'd not want to write a whole new file for it, so I started experimenting..
I don't have internet access at the moment, so I wasn't able to look up the syntax for
this, but it seems pretty standard, so if I'm doing something some way that could be made
much more efficient, let me know.
====================
|USAGE INSTRUCTIONS|
====================
Basically, to use this, all you have to do is connect your wiimote and Classic controller via
Bluetooth, and open this up in GlovePIE and Run it. then you're going to type in the profile you want to
use in the top text bar, or the 'Debug' box. once you've typed it in, you don't need to press
Enter or anything, just wait and it should load up, you'll be notified by a loading bar on your wiimote.
There are a few game profiles pre-loaded in this script, the ones I've written are as follows
-Skyrim
-Minecraft
-Nexuiz
-Custom (This one is used as a tutorial example, so don't actually use it.)
-Custom1 (This one is a blank template for you to make your own profile with)
and when you type those in, you have to capitalize and spell everything exactly as you see here.
if you want to choose another profile, you have to stop the script and start it again, typing
in another name.
=====================
|CHANGING THE CONFIG|
=====================
So, you're pretty happy with this, and it plays games pretty nicely, but you're way too used
to playing with inverted controls to use this, or maybe you like southpaw a lot more then
you like default, well don't worry, I thought of you too!
In the script there a a few config variables, that let you change this sort of thing, and they're
conveniently located at the top of the script!
The functional variables are as follows:
Var.Swap: ('Righty' / 'Lefty' Default: 'Righty' )
Swaps the Buttons, joysticks, and triggers over to the oppisite side of the controller
Var.Invert: ('Normal' / 'HInvert' / 'VInvert' / 'AInvert' Default:'Normal')
Through the magic of nesting, changes the mouse controls to invert controls however you like
Normal = Normal, Obviously
HInvert = Horizontal invert, inverts Left/Right mouse movement.
VInvert = Vertical Invert, Inverts Up/Down mouse movement.
AInvert = All Invert, Inverts both Vertical and Horizontal mouse movement
=======================
|ADDING YOUR OWN GAMES|
=======================
To add your own game, is to add your own profile to the script itself.. I've tried to make it as simple
and easy to do to do so, but I will at least assume you have a basic understanding of how to code
in GlovePIE
Profiles are kept in their own little boxes, called an 'if statement' and basically that tells the program
that 'if' you type in a name, that it's going to execute a block of code, in this case, a profile.
This, is what one of those profiles looks like in the script
=======================
==========================
I'm going to describe this line-by-line.
1| The first line, has one of the more important bits, the Name of the game that you would
use when loading it into the 'Debug' You're probably just going to want to name it the name
of the game.
3-21| These are the controls themselves, You're going to want to change the Letters like you would a regular GlovePIE Script
I tried to make the Variable names as obvious as possible, but if you're confused, I have a example tutorial profile in the script itself
that describes what each of the variables do.
22-23| These are the variables for the left and right sticks, and are to be left commented out unless you absolutely need to use them, and don't need them to be
bound to WASD / Mouse movement. if you don't you're going to have to change Var.FPS to False.
24-27| These are some useful Per-Profile Variables that you can change. they mean, as follows:
- Var.FPS: (True / False Default:True)
This toggles between using my hardcoded WASD / Mouse controls, or using your profile-specified joystick controls.
- Var.Sense: (Default:20)
This changes the mouse sensetivity for that particular profile. this is useful if you're playing a game that doesn't have the setting.
- Var.Credit: (Default:'Yourname')
This sets the name that is shown in the debug window when the profile is loaded.
- Var.GameName: (Default:'Custom1')
This is the name that is shown in debug when the profile is loaded, reccomended that you make it the same as Var.Game (Line 1)
28+| This is the code for the loading animation, You're free to change it however you like if you know what youu're doing, but be careful because the
code used to load the gamename from debug into game and not let it get stuck in an infinite loops is quite
fragile.. I'd have prefered not having this code in the profiles at all, but it seemed like the only way to make it work, I'm afraid.
============================
Now that you know what all that mumbo jumbo means, go look in the script, on the 342nd line,
you'll find the very script I've put here! you can change it however you like, or copy it and paste it
again to make room for more than one custom profile! Just remember to only copy the code that's shown above (From if to Endif)
and paste it both AFTER an endif and BEFORE another if statement. don't want to get it all tangled up.
Edit: Pretty neat, def gonna try this when I get my computer back!
Added.
Exactly!
It's a controller for wii, that you need a BT adaptor to connect to~
It works really well for Minecraft as well as other games I have tried it with. All of the code is organized very neatly and its much easier to understand than any other GlovePie scripts I have found, again thank you. I do have one problem however, when I map buttons to the mouse wheel and use it for something, like switch items in minecraft, It moves way too fast for me to be able to control it. I have the feeling that this is related to the key repeat rate, but I'm not very resourceful with GlovePie scripting (all my attempts have got me nothing). Anyways, I was hoping you might know of any solutions so I can keep using these awesome scripts!
Also thank you Fire_Fist for making this script, im enjoying how easy it is to use and add new games
https://www.mediafire.com/?nrt7lx3rhhv6j6j
I'm like super glad that people finally used it too, that makes this my first coding project someone has actually used xD
So I will get to updating this now! I'll be adding an option to use the the Window.Title method to load profiles suggested by Wifty_16.
Also I'll be implementing the new profiles that have been made by Metal079 (Credit will be given for both)
AND I'll fix the weird autoscrolling bug. Shouldn't take too long.