Author Topic: Hot Keys?  (Read 11152 times)

ElJames

  • Guest
Hot Keys?
« on: 29 May 2009, 08:42:59 »
I`m new to glest but have been playing starcraft and warcraft since they first came out back in the 90s.
over i feel that glest is very similar but a great addition to the gamers. but ive been wondering are there any hotkeys for building attacking and so on. if no, it is much needed for experienced gamers to excede.

MadElf

  • Guest
Re: Hot Keys?
« Reply #1 on: 29 May 2009, 10:37:51 »
You mean like press a button and something happens?
Well there is, for example, press F to unlock the camera, and A,S,D,W to move it.
« Last Edit: 29 May 2009, 12:57:53 by MadElf »

gameboy

  • Guest
Re: Hot Keys?
« Reply #2 on: 29 May 2009, 10:43:54 »
press a bottom? LOL

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Hot Keys?
« Reply #3 on: 29 May 2009, 11:03:08 »
in your glest installation is a directory docs where you find a readme.txt.
This contains a description for all shortcuts.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

MadElf

  • Guest
Re: Hot Keys?
« Reply #4 on: 29 May 2009, 12:54:51 »
press a bottom? LOL

LOL hahaha
I didn't realise that.  ;D

ElJames

  • Guest
Re: Hot Keys?
« Reply #5 on: 29 May 2009, 19:40:29 »
no i mean quik action hot keys, yes you have it to move the camera and such, but that is only a beginning, this is a good game u have here, but u have the potential to attract a whole new croud of gamers. starcraft and warcraft for example have millions of users playing everyday. but your missing certain things to draw those players here to glest.  hotkeys is the main thing.  such as to build a castle u an clock on your worker and press B C , build castle.  A for attack, when im microing it takes alot of my time to constantly move my curser over to be clicking on pointless crap when my left hand is here on the keyboard feeling useless..... its called micro.... u need more hotkeys. respond

ElJames

  • Guest
Re: Hot Keys?
« Reply #6 on: 29 May 2009, 19:47:45 »
Please take this into consideration, u neeed the hotkeys, for example to hotkey builds moves, everything, im playing and when im not moving my camera my left hand is useless... i could be microing my units and building back at my base without ever taking my eye off the action. u see what i mean? with shift plus basic hotkeys your possabilities are unlimited. i can help u get u the blizzard people over to glest but not without this small adjustment.

gameboy

  • Guest
Re: Hot Keys?
« Reply #7 on: 29 May 2009, 19:58:16 »
I think the newest version of GAE supports hotkeys, you could check it out.

glest master

  • Guest
Re: Hot Keys?
« Reply #8 on: 30 May 2009, 21:29:06 »
the b c for build castle and a to attack those dos work right?

glest master

  • Guest
Re: Hot Keys?
« Reply #9 on: 30 May 2009, 21:31:19 »
also, can anyone tell me all the hot keys, beside moving camera plz.

@kukac@

  • Guest
Re: Hot Keys?
« Reply #10 on: 31 May 2009, 06:13:01 »
Quote from: readme
Glest Game 3.2.2 Readme

=================
CONTROLS
=================

a) Camera

f => toggle free camera mode
w => move camera up (only in free camera more)
s => move camera down (only in free camera more)
a => rotate camera left (only in free camera more)
d => rotate camera right (only in free camera more)
space => center camera on selection
up arrow or mouse on top => move camera forward
down arrow or mouse on bottom => move camera backward
left arrow or mouse on left => move camera left
right arrow or mouse on right => move camera right

b) Orders and Unit selection

left mouse button => select or deselect units
shift + left mouse button => add unit to selection
control + left mouse button => remove unit from selection
left mouse double click => select nearby units of this type
right mouse button => auto order
menu click => activate order
left mouse when order is activated => give order
right mouse when order is activated => cancel state
number => recall group
control + number => assign group

c) Network

enter => start typing/send chat message
h => toggle between 'All' and 'Team' chat modes
n => show network status

d) Hotkeys (only in game camera more)

a => activate attack command for selection
m => activate move command for selection
s => issue stop command to selection
i => select next idle harvester
b => select next building
d => select next damaged unit
t => select next storage unit
r => select next producer unit

e) Other Keys

- + => adjust game speed  (disabled in multiplayer)
p => pause game (disabled in multiplayer)
e => save screen to TGA file

glest master

  • Guest
Re: Hot Keys?
« Reply #11 on: 14 June 2009, 03:02:53 »
do u have glest 2.1.1. hot keys besides camera?

@kukac@

  • Guest
Re: Hot Keys?
« Reply #12 on: 14 June 2009, 16:28:42 »
Hot keys are new inventions, 2.1.1 doesn't have any of them (expect the free camera, but I wouldn't call it hotkey.)

glest master

  • Guest
Re: Hot Keys?
« Reply #13 on: 19 June 2009, 05:44:36 »
oh no wonder thanks.

ckingbailey

  • Guest
Re: Hot Keys?
« Reply #14 on: 22 June 2009, 07:37:03 »
I have to agree with original poster. I am a Warcrafter/Starcrafter, as well as having dabbled in Age of Empires, and all those games have hot keys up the wazoo. (Glest actually feels a lot like Age of Empires in gameplay, but is a lot more sophisticated in faction balance, like Starcraft/Warcraft)
No, b c doesn't work to Build a Castle. As it stands, b selects next building, which is quite useful, and in fact one that Warcraft III lacks. Also, i for select next idle worker is brilliant, and lacking in SC/WC.
As this is a thread about hot keys, why don't we make a wish list of key commands?
Much needed hot keys include:

-worker build basic (b would work, but is taken)
-worker build advanced (it's v in SC, which is nice 'cause it's next to b, for build)
-each building, ritual (e.g., c for castle, e for wicker behemoth)
-each summon (e.g., g for ghost armor)
-each technician build (e.g., b would work nicely for ballista, but it's taken)
-each unit build, upgrade (e.g., l for shield)
-initiate->battlemage->archmage upgrades
-set rally point from building (SC/WC use r, I think I recall AoE uses y)

This is an open source game, no? Optimally, hot keys could be 100% use-mappable, in a text file just like code. That would be sweet, and, again, lacking in those *cough, ahem* commercial games.

Idanwin

  • Guest
Re: Hot Keys?
« Reply #15 on: 22 June 2009, 15:11:50 »
I agree: hotkeys are a must.

HANAX

  • Guest
Re: Hot Keys?
« Reply #16 on: 2 August 2009, 19:43:16 »
I agree too.... it is veeeery uncomfortable and slow with the mouse...
so now I am asking: what should we do to make hotkeys happen? ;)

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Hot Keys?
« Reply #17 on: 3 August 2009, 08:15:45 »
I'll show you how in THREE easy steps!

1. Learn to program
2. Come back in ten years when you're experienced
3. Impliment it and enjoy!

 :D :D :D

Honestly, there isn't much to do but hope that GAE programmers will improve the hotkeys (GAE has currently a modifiable hot key list, but can't do everything we want (yet)). If you can code, or know someone who can, try to learn Glest, and impliment it. A clean implimentation without bugs can later be added to GAE.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

HANAX

  • Guest
Re: Hot Keys?
« Reply #18 on: 3 August 2009, 17:48:59 »
Ok, I thougt that saying some magic words won't help...
Well, I am a coder for more then 10 years and I think the code can be relatively small. But you know... if you want to implement something to the complex software, you should know the design logic and where to start... does somebody here know that? Maybe I'll have some spare time afternoons ;)

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
Re: Hot Keys?
« Reply #19 on: 4 August 2009, 05:03:28 »
Take a look at game.cpp keyDown(...) in GAE 0.2.11 onwards:
Code: [Select]
UserCommand cmd = keymap.getCommand(key);UserCommand is enum type (defined in keymap.h) that's associated with the key pressed (specified in keymap.ini).

Example use:
Code: [Select]
switch(cmd) {
// on
case ucNetworkStatusOn:
renderNetworkStatus = true;
return;

Or you could use the key directly like:
Code: [Select]
switch (key.getCode()) {
case keyReturn:
saveGame(saveBox->getEntry()->getText());

There are also a lot of hot keys in Gui::hotKey(UserCommand cmd)
« Last Edit: 4 August 2009, 05:05:05 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

HANAX

  • Guest
Re: Hot Keys?
« Reply #20 on: 5 August 2009, 16:00:55 »
At first, I am very sorry, but I can't make GAE run, after launch it makes file with wierd characters in it and that's it. No fun.
So I'am writing about Glest on "old engine" (right?) But also, I played this game for very short time (few hours)... and the simple reason is: the shortcuts :)

OK, now I can see code which runs specific block belonging to specific UserCommand, but....

...but let's take it form other side, from user perspective, so here is my idea (I am pretty sure this was discussed here, but I am lazy to search forum :P ):
  • I start app. I want navigate throug menu buttons with keys. So I need to see underscorized letter in menu buttons. Why? Because is convenient and well-known
  • I want to play with keyboard. So this time I need to know some basic and all-time-works shortcuts like those defined in keymap. BUT:
    • I want to select specific building. But what key to press? And if every faction has different buildings? What now? So for example I need to press Shift+First letter of building and if that collides, second, third... like that underscorized shortcuts known from GUI menu and buttons. Press again = cycle
    • Now I want some action - build, gather...Same rules here - first letter launches it. If I dont know which letter, hover on icon and it will be underscorized in "name" line
  • So for example build barracks: I for idle worker or Shift+W, Shift+B for basic build, Shift+B for barracks and mouse click. Easy an quick. If you don't like Shift use Alt or Ctrl or whatever...

This is IMHO widely used approach to shortcuts.
So now IMHO this is not about handling action, but assigning "shortcut letter" to every significant item on screen (unit, building, button) with some modifier tricks. If it will not be done automatically, the devs and faction designers should make that.
Then there will be simple code that matches presseed shortcut to "currently active list" (visible buttons, units... etc) and make action: for units and building it "finds next", and for button it presses.

Ok, that was an mi mind, maybe that was total crap, but as I sad - I have no idea about game internal design...

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Hot Keys?
« Reply #21 on: 10 August 2009, 05:02:33 »
At first, I am very sorry, but I can't make GAE run, after launch it makes file with wierd characters in it and that's it. No fun.
So I'am writing about Glest on "old engine" (right?) But also, I played this game for very short time (few hours)... and the simple reason is: the shortcuts :)
Vanilla Glest is at a point where it will soon be replaced by GAE, and all new developement is focussed on such. Can you tell me exactly what it says when it crashes, in hopes I may help you?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

HANAX

  • Guest
Re: Hot Keys?
« Reply #22 on: 10 August 2009, 17:32:37 »
Ok, I found out I was running 64bit version, no wonder it couldn't do much fun on my 32bit Athlon :) I must be too sleepy while downloading it  ::)
So I found compiled 0.2.10b somewhere (for Linux)  so now it's all right :) Is there any official source of compiled 32bit version?

Anyway, any coments to shortcuts idea?

wciow

  • Behemoth
  • *******
  • Posts: 968
    • View Profile
Re: Hot Keys?
« Reply #23 on: 10 August 2009, 17:52:23 »
Official 3.2.2 binaries for Glest can be found here: http://glest.org/en/downloads.php

The Latest GAE binaries can be found here: https://forum.megaglest.org/index.php?topic=4508.0

Once you have run GAE for the first time it will create an editable .ini file with all of the keys mapped to it. This will give you 100% customization for hotkeys  ;)
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0

HANAX

  • Guest
Re: Hot Keys?
« Reply #24 on: 10 August 2009, 18:26:53 »
The Latest GAE binaries can be found here: https://forum.megaglest.org/index.php?topic=4508.0

Thanx for the link :)

Once you have run GAE for the first time it will create an editable .ini file with all of the keys mapped to it. This will give you 100% customization for hotkeys  ;)

Ok, maybe I miss something, but how to configure key for example for build action? Or select baracks and train archer?

 

anything