|
I've been working on a little program the last few days to help practice with new hotkeys, since I'm switching over to darkgrid, check it out and give me some feedback!
Darkgrid Thread Darkgrid Trainer on Reddit
Darkgrid Trainer, v7
This python script lets you practice the Darkgrid layout without having to open SC2, useful if you are at work and want to practice, waiting for a queue in Dota2, or just want to focus on hotkeys and nothing else.
NOTE: Still working on adding every useful command
Download!, (Note: This is my amazon AWS server)
Instructions:
- You must have Python 3 installed on your computer (python.org/download/)
- Unzip dgtrainer.zip to any folder
- COPY your Darkgrid .SC2Hotkeys file to the folder, this script reads the hotkeys file, so any modifications you have done to it will work fine
- Open the config.ini if you wish to change options, such as time per command and if you want to always show the key combinations (recommended for people going cold turkey for the first time)
- Double click the dgtrainerV7.py file and get to practicing!
NOTE: If double clicking the .py file doesn't work (seems to do this on Macs) do the following:
- Open "IDLE (Python GUI)"
- File -> Open...
- Navigate to dgtrainerV7.py and open it
- Run -> Run Module
Recent changes:
- Added a config option to swap the mouse buttons
- Mouseless keys support!
Screenshot: + Show Spoiler +
Screenshot (shows the correct keys and what you pressed): + Show Spoiler +
|
This would work for any hotkey setup, would it not ?
|
On February 12 2012 10:29 Kaitlin wrote: This would work for any hotkey setup, would it not ?
I need to work on it a little more and it can. The thing about the hotkey files is that they only contain information about keys that are different from the normal keys. I haven't hardcoded the non-modified keys yet.
|
this is amazing! thank you so much!! ive been spamming in Notepad when Im at work to practice Darkgrid too haha =.="
|
Can you show the code font? or can i download it in any place?
|
yeah show the code font! that would be great
|
Please make it so that it can work for various other hot key set ups. I would be forever grateful :D
|
I'm not exactly sure, but I think there is a bug when the "attack" command pops up. Whenver i press a button after it, a python window pops up and the program crashes.
|
Wow even thought I am not a zerg player, this is great! good job, glad to see people making programs to help out with this kind of thing, better than having to do 100 customs or what ever haha
|
On February 12 2012 15:40 TheBOSZ wrote: I'm not exactly sure, but I think there is a bug when the "attack" command pops up. Whenver i press a button after it, a python window pops up and the program crashes.
I'll look into it, probably from me not having the default keys in there yet
|
Updated to version 2, check it out terran and protoss players!
|
On February 13 2012 11:03 SirPsychoMantis wrote: Updated to version 2, check it out terran and protoss players!
Actually this looks cool. Reminds me of a kindergarden program for kids, Just what I need to improve at SC2 cause that's about my level of play. But I love to watch
|
This is awesome,darkgrid is the best setup there is, way better than the regular grid (for me).
|
Updated to version 3, check top for changes
EDIT: Are the tabbed production hotkeys correct for protoss and terran? I'm a zerg player so I haven't used the other two in game.
|
Awesome work man. I've added a link to this thread at the top of the Darkgrid page. In red!
I think it's... interesting that people are asking you to make it compatible with other layouts. It's like watching someone cut off their own leg and practicing running one-legged so they can get really good at the disability Olympics.
|
i cant get this to work, i keep geting an error when trying to open the .py i keep getting an error that says Traceback (most recent call last): File "C:\Users\Souza\Desktop\dgtrainer\dgtrainerV3.py", line 32, in <module> fileHandle = open(fileName, 'r') IOError: [Errno 2] No such file or directory: 'Darkgrid 1-3b Mouseless T and P'
but i dont understand because i followed the steps and that file is named correctly and in the folder with config and the .py. Anyone know how to fix this?
|
On February 12 2012 11:02 Chaves wrote: Can you show the code font? or can i download it in any place?
On February 12 2012 11:06 KicKDoG wrote: yeah show the code font! that would be great
What is "code font"? Do you guys mean the source code? If so, the file is a script i.e. it is the source code.
|
On February 15 2012 05:58 Souza wrote: i cant get this to work, i keep geting an error when trying to open the .py i keep getting an error that says Traceback (most recent call last): File "C:\Users\Souza\Desktop\dgtrainer\dgtrainerV3.py", line 32, in <module> fileHandle = open(fileName, 'r') IOError: [Errno 2] No such file or directory: 'Darkgrid 1-3b Mouseless T and P'
but i dont understand because i followed the steps and that file is named correctly and in the folder with config and the .py. Anyone know how to fix this?
Make sure you also have the extension on there, should be 'Darkgrid 1-3b Mouseless T and P.SC2Hotkeys' most likely.
Might change this to read the only SC2Hotkeys file in the folder instead of having a name
EDIT: If you download the new version, no more name in the config file
|
A little off topic, but there cant be a gentlemanly psychomantis :O! good work!
|
On February 15 2012 06:05 Prillan wrote:Show nested quote +On February 12 2012 11:02 Chaves wrote: Can you show the code font? or can i download it in any place? Show nested quote +On February 12 2012 11:06 KicKDoG wrote: yeah show the code font! that would be great What is "code font"? Do you guys mean the source code? If so, the file is a script i.e. it is the source code.
Yup, feel free to peruse the script, I tried to comment what is going on in some of the trickier parts.
On February 15 2012 07:28 PsykoMantis wrote: A little off topic, but there cant be a gentlemanly psychomantis :O! good work!
Haha, I was (like 10 years ago) in a counterstrike clan called -[SiR]-, when we disbanded I decided to incorporate it into my name, thus the SirPsychoMantis
Also, just updated to version 4
|
Requested feature would be to be able to change what the hotkey for something is in the trainer.
I have redone a couple of hotkeys, and all control group hotkeys so when it asks me to e.g. select queens then plant tumor I do what is right, but the trainer gives me a wrong.
|
On February 15 2012 13:34 NTTemplar wrote: Requested feature would be to be able to change what the hotkey for something is in the trainer.
I have redone a couple of hotkeys, and all control group hotkeys so when it asks me to e.g. select queens then plant tumor I do what is right, but the trainer gives me a wrong.
Hm, did you try this with version 4? There was a bug with the drop creep, I was using the wrong command since the SC2Hotkeys file has some really odd/legacy names. Or was it the queen hotkey? I can double check that since I have rebound mine to ForwardMouseButton/BackMouseButton
Some of the interesting command names: MorphMorphalisk/Queen = Inject ResearchHighCapacityBarrels/FactoryTechLab = Blue Flame ResearchPunisherGrenades/BarracksTechLab = Concussive shells
Really confused me for a little bit
EDIT: Question for everyone, which keys (O and P) do you bind to which mouse keys?
|
can you add a guide on how to install the program on a mac please
|
On February 15 2012 02:59 FoxyMayhem wrote:Awesome work man. I've added a link to this thread at the top of the Darkgrid page. In red! I think it's... interesting that people are asking you to make it compatible with other layouts. It's like watching someone cut off their own leg and practicing running one-legged so they can get really good at the disability Olympics.
... but some of us like our own custom hotkey setups
|
Added some extra mac instructions, one person I was talking to said he uses "Option" instead of alt, is this true for everyone on macs?
On February 16 2012 07:51 Kaitlin wrote:Show nested quote +On February 15 2012 02:59 FoxyMayhem wrote:Awesome work man. I've added a link to this thread at the top of the Darkgrid page. In red! I think it's... interesting that people are asking you to make it compatible with other layouts. It's like watching someone cut off their own leg and practicing running one-legged so they can get really good at the disability Olympics. ... but some of us like our own custom hotkey setups
The problem right now is the control groups, since they are very specific for Darkgrid, but barring that a heavily modified hotkey layout *should* work.
(heavily modified makes the keys appear in the hotkey file, although I do have some defaults in right now)
|
the game gives mac users an option to use the command key instead of option wich makes it way easier for mac users
|
On February 15 2012 23:56 SirPsychoMantis wrote:Show nested quote +On February 15 2012 13:34 NTTemplar wrote: Requested feature would be to be able to change what the hotkey for something is in the trainer.
I have redone a couple of hotkeys, and all control group hotkeys so when it asks me to e.g. select queens then plant tumor I do what is right, but the trainer gives me a wrong. Hm, did you try this with version 4? There was a bug with the drop creep, I was using the wrong command since the SC2Hotkeys file has some really odd/legacy names. Or was it the queen hotkey? I can double check that since I have rebound mine to ForwardMouseButton/BackMouseButton Some of the interesting command names: MorphMorphalisk/Queen = Inject ResearchHighCapacityBarrels/FactoryTechLab = Blue Flame ResearchPunisherGrenades/BarracksTechLab = Concussive shells Really confused me for a little bit EDIT: Question for everyone, which keys (O and P) do you bind to which mouse keys?
I have swapped which control groups got which hotkeys in the sense that. (without knowing exactly what it use) e.g. ctrl+3 to make control group 1, I am quessing control group 1 in that case is ment to be the control group for queens, but I have changed ctrl+3 to make a different control group (6) so when it asks me to use the hotkeys for queens that is the hotkeys for control group 6 in my case, not whatever the default of darkgrid is.
|
Thank you for developing Darkgrid trainer SirPsychoMantis, your program is freaking awesome! Your download and installation instructions are very clear,
I have an idea for Darkgrid trainer and a question:
Idea: I think it would be cool if the user was unable to continue to the next practice command until they have correctly pressed the keys required of the current command. I find that I am not currently not learning anything with the program because I am not practising the correct key combos for the ones I am getting wrong.
Another alternative would be to create an option for "#Time between failure, in miliseconds timeBetweenFailure=". This would allow the user time to process what they did wrong by increasing the time between failures. Currently, I feel there is not enough time between failures to learn anything.
Question: How can I get my forward and back mouse buttons to work in the program? Do I have to set them to P and O somehow?
Thanks for reading and again for taking the time to create this awesome program,
|
On February 16 2012 09:49 NTTemplar wrote:Show nested quote +On February 15 2012 23:56 SirPsychoMantis wrote:On February 15 2012 13:34 NTTemplar wrote: Requested feature would be to be able to change what the hotkey for something is in the trainer.
I have redone a couple of hotkeys, and all control group hotkeys so when it asks me to e.g. select queens then plant tumor I do what is right, but the trainer gives me a wrong. Hm, did you try this with version 4? There was a bug with the drop creep, I was using the wrong command since the SC2Hotkeys file has some really odd/legacy names. Or was it the queen hotkey? I can double check that since I have rebound mine to ForwardMouseButton/BackMouseButton Some of the interesting command names: MorphMorphalisk/Queen = Inject ResearchHighCapacityBarrels/FactoryTechLab = Blue Flame ResearchPunisherGrenades/BarracksTechLab = Concussive shells Really confused me for a little bit EDIT: Question for everyone, which keys (O and P) do you bind to which mouse keys? I have swapped which control groups got which hotkeys in the sense that. (without knowing exactly what it use) e.g. ctrl+3 to make control group 1, I am quessing control group 1 in that case is ment to be the control group for queens, but I have changed ctrl+3 to make a different control group (6) so when it asks me to use the hotkeys for queens that is the hotkeys for control group 6 in my case, not whatever the default of darkgrid is.
Trying to think of an easy way to be able to customize this, don't want to have the program become too convoluted.
On February 16 2012 22:47 RonaldTimmins wrote:Thank you for developing Darkgrid trainer SirPsychoMantis, your program is freaking awesome! Your download and installation instructions are very clear, I have an idea for Darkgrid trainer and a question: Idea: I think it would be cool if the user was unable to continue to the next practice command until they have correctly pressed the keys required of the current command. I find that I am not currently not learning anything with the program because I am not practising the correct key combos for the ones I am getting wrong. Another alternative would be to create an option for "#Time between failure, in miliseconds timeBetweenFailure=". This would allow the user time to process what they did wrong by increasing the time between failures. Currently, I feel there is not enough time between failures to learn anything. Question: How can I get my forward and back mouse buttons to work in the program? Do I have to set them to P and O somehow? Thanks for reading and again for taking the time to create this awesome program,
Updated to v5, added the repeat on failure option. Also, if you rebind your mouse keys to O and P it should work. What I did was rebind the control groups in game to ForwardMouseButton/BackMouseButton. As a work around if you did this, I have Plus and Minus on the keypad bound to these, so you can use your thumb in kind of the same way to press them.
|
Thanks SirPsychoMantis for both of your solutions! I used version 5 for only 30 minutes, learned A TON.....played a game and owned.....wow man, just wow! I know that sounded like a commercial/infomercial but its 100% true, you sir have made me very happy!
One last question: Is it feasible to add functionality for creating and adding to control groups and creating camera locations? Or is the simultaneous button pushing too much of a pain or impossible to implement?
Thanks again man!!!!
|
This is a great idea and I'm glad someone took the time to make something like this. I recently decided to try Darkgrid and after a few stumbling days decided to switch as it seems very well thought out and elegant. Teaching my hands to do something new is pretty hard and a trainer like this is just perfect.
This trainer would be a great way to keep my hands learning the new motions while not actually playing a game, however I seem to have a problem with it. The mouse buttons do not respond to the trainer and so I'm nearly locked out from any use of this program. Not sure what to do to fix this.
Since I've been using Darkgrid a lot in team games for the past week I may not need a trainer much longer, but still a cool idea.
|
Vatican City State582 Posts
i guess this is like some sort of flash cards? try quizlet dot com?
|
On February 22 2012 22:11 dacimvrl wrote: i guess this is like some sort of flash cards? try quizlet dot com? Kind of like flash cards, except with this you push the exact keys rather than just remembering, so it improves memory + muscle memory.
On February 22 2012 22:09 Tictock wrote: This is a great idea and I'm glad someone took the time to make something like this. I recently decided to try Darkgrid and after a few stumbling days decided to switch as it seems very well thought out and elegant. Teaching my hands to do something new is pretty hard and a trainer like this is just perfect.
This trainer would be a great way to keep my hands learning the new motions while not actually playing a game, however I seem to have a problem with it. The mouse buttons do not respond to the trainer and so I'm nearly locked out from any use of this program. Not sure what to do to fix this.
Since I've been using Darkgrid a lot in team games for the past week I may not need a trainer much longer, but still a cool idea.
The way that is recommended by Darkgrid is rebinding your side mouse buttons to O/P. That isn't the way I do it, so I can't test it, but I think it should work. If you use direct mouse button binds, I have + and - on the keypad bound to them so you can kind of use your thumb in the same way. Which way are you trying to do it? I can look more into using the mouse directly, but might take a little while.
Also I will be adding the additional control group / camera binding commands soon, probably later today.
|
This would be amazing if everyone could practice their hotkeys...
|
Updated to v6, with additional creation of control groups / cameras
Thanks to RonaldTimmins for getting the terran ones done
|
Hi, thank you so much for this wonderful program! There is one thing that could be improved, though. It seems that for some reason a few of the control groups are off. I'm using the 'Mouseless P and T" hotkey file, as Protoss. For instance, using this hotkey setup , the correct "Create an observer hotkey" would be "Shift + Y", yet the program has it as "Shift + 5".
Good job however with the program, and much thanks again!
|
Thx for great program. But on my keyboard (MERC Stealth) I can't get pass CTRL+ALT commands (f.ex. Ctrl+Alt+S). It's showing me that I pressed "S" button only. My Ctrl and Alt butttons works fine for other Command (and also for CTRL+ALT+DEL). Anyone has the same problem?
Also it says that Nexus/Tech and Gate/Robo/Stargate main groups are both "O" (one of them should be "P")
|
I personally find the idea questionable. I applaud your effort and it's nice that people like it, more people using Darkgrid would be a good thing as well since it's ridiculously good and it sucks that most of the community don't know about it.
That said, the way to get used to Darkgrid is to use it in SC2, not spam it in a program. if you're at work and can't play SC2, sure... but learning Darkgrid is at the very most a one week process, even if you just play a few hours of SC2 a day, so IMO it feels like a bit of wasted effort.
Great job though.
|
On February 28 2012 08:06 bloodorc44 wrote: Hi, thank you so much for this wonderful program! There is one thing that could be improved, though. It seems that for some reason a few of the control groups are off. I'm using the 'Mouseless P and T" hotkey file, as Protoss. For instance, using this hotkey setup , the correct "Create an observer hotkey" would be "Shift + Y", yet the program has it as "Shift + 5".
Good job however with the program, and much thanks again!
I'll look into this, didn't realize the mouseless keysets used different control group numbers
On February 28 2012 19:27 Ch3rry wrote: Thx for great program. But on my keyboard (MERC Stealth) I can't get pass CTRL+ALT commands (f.ex. Ctrl+Alt+S). It's showing me that I pressed "S" button only. My Ctrl and Alt butttons works fine for other Command (and also for CTRL+ALT+DEL). Anyone has the same problem?
Also it says that Nexus/Tech and Gate/Robo/Stargate main groups are both "O" (one of them should be "P")
Weird, does it only do this on the side keypad or does it do it on the regular keyboard part as well?
On February 28 2012 19:47 Tobberoth wrote: I personally find the idea questionable. I applaud your effort and it's nice that people like it, more people using Darkgrid would be a good thing as well since it's ridiculously good and it sucks that most of the community don't know about it.
That said, the way to get used to Darkgrid is to use it in SC2, not spam it in a program. if you're at work and can't play SC2, sure... but learning Darkgrid is at the very most a one week process, even if you just play a few hours of SC2 a day, so IMO it feels like a bit of wasted effort.
Great job though.
I feel like many people don't want to switch due to how badly you will play in that weeks time, hopefully this will let people switch and not have to grind out AI games. Also I partly did this as a way to practice my Python coding, so not a wasted effort
|
Downloaded the hotkey layout yesterday, I can already see why it is much more efficient. My only question is I play exclusively terran and the trainer despite using the T and P hotkey layout continuously asks for zerg inputs. Is there a way to modify this? Thank You!
|
I can't get it to work on my Mac.
I do as said in the head post and get this:
+ Show Spoiler +>>> ================================ RESTART ================================ >>> Traceback (most recent call last): File "/Users/frieder/Spiele/StarCraft II/learn darkgrid/dgtrainerV6.py", line 573, in <module> mainframe = ttk.Frame(root, padding="2 2 2 2") File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/tkinter/ttk.py", line 761, in __init__ Widget.__init__(self, master, "ttk::frame", kw) File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/tkinter/ttk.py", line 559, in __init__ _load_tile(master) File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/tkinter/ttk.py", line 47, in _load_tile master.tk.eval('package require tile') # TclError may be raised here _tkinter.TclError: can't find package tile >>>
Any clue?
|
Seems like a good program, unfortunately I can't use it due to the fact that I have a Dvorak keyboard. I can play in game fine, but when I keys are bound to punctuation in the trainer they are counted incorrectly. The program reads the input as capitol letters, but the program wants lowercase letters.
Also Darkwinja, you need to edit the config file in the trainer folder.
|
Hey Cherry!
I had the same problem. I'm from Germany and I only needed to change my keyboard settings from 'german' to 'english (US)'. Now it's working fine.
Cheers, George
On February 28 2012 19:27 Ch3rry wrote: Thx for great program. But on my keyboard (MERC Stealth) I can't get pass CTRL+ALT commands (f.ex. Ctrl+Alt+S). It's showing me that I pressed "S" button only. My Ctrl and Alt butttons works fine for other Command (and also for CTRL+ALT+DEL). Anyone has the same problem?
Also it says that Nexus/Tech and Gate/Robo/Stargate main groups are both "O" (one of them should be "P")
|
So I'm trying to use the trainer to learn the Dark Grid setup for Terran. I'm curious as to why P and O are used in this set up (O for barracks and P for creating some command center cameras or something.) Anyway, just curious if that's normal or I did something wrong in downloading and running this trainer.
|
From the Darkgrid FAQ
The mouse control groups are set to O and P. I have my mouse producing O and P when I hit my fourth and fifth mouse buttons. You can do this for most mice by downloading the manufacturer's drivers. Or, you can rebind the O and P control groups to your mouse button in SCII. This has been the more buggy method, though.
|
On February 29 2012 01:38 Darkwinja wrote: Downloaded the hotkey layout yesterday, I can already see why it is much more efficient. My only question is I play exclusively terran and the trainer despite using the T and P hotkey layout continuously asks for zerg inputs. Is there a way to modify this? Thank You!
You can change the race in config.ini.
|
Q: Im using the terran mouseless layout. In game all the keys are correct but using the trainer, it constantly asks for different key inputs IE: in the trainer, barracks shows as CAPS LOCK, however in the layout barracks is on 4. frustrating and confusing at the same time....any ideas?
|
|
Updated to version 7, which supports mouseless setups! Please tell me if it is working properly
On March 10 2012 21:35 CrazyPieGuy wrote: Seems like a good program, unfortunately I can't use it due to the fact that I have a Dvorak keyboard. I can play in game fine, but when I keys are bound to punctuation in the trainer they are counted incorrectly. The program reads the input as capitol letters, but the program wants lowercase letters.
Also Darkwinja, you need to edit the config file in the trainer folder.
Weird... All the .SC2Hotkeys files I've seen have caps, if you open your hotkeys files are the keys in lower case?
EDIT: Also, sorry for the delay, I've been trying to get into masters, hope you understand
|
Thank you so much! It works perfectly now with mouseless setups. Thanks again! Did you make it to masters?
|
didnt test the other races, but mouseless terran works perfect in the new version. Thanks for the update!
|
SirPsychoMantis, great idea, great execution, great program! I'm a big fan of anything I can do to train for SC2 without having to open SC2 (id: reflexTE ) , so I'm instantly a big fan!
I'm going to use this to switch to Darkgrid (from standard grid), and probably learn a few new builds as I'm going to be up against the AI anyway.
One idea that would make the program maybe a bit more intuitive is if you could add pictograms by the text. I believe I could interpret a pictogram of a spawning pool quicker than the text "Build spawning pool", and it's more in line with what I would be thinking during the game. But that's probably a ton of work, and the program is already great. Good luck getting into masters!
|
This program wont work with another keyboard layout than the American one. The problem is that the program will recognize the keycombination for adding sth to the 3ʳᵈ control group as #, for the British ISO layout it recognizes shift + £, for the German one shift + #: Also all combinations that create a symbol with AltGr wont work, like strg + alt + q.
I would be cool if the clicking with the right and left mouse button on the window would substitute the forward and back button. But I dont know if its possible with reasonable effort in python.
Otherwise its a pretty cool program.
|
|
|
|