1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Emote Hotkeys

Discussion in 'Modding [KAG]' started by Peasantflayer, Nov 8, 2013.

  1. Peasantflayer

    Peasantflayer Catapult Fodder

    Messages:
    6
    Hello,

    I'm very new here, I actually bought this game on steam launch... so hello ::):

    I enjoy this game very much and I found the emotes (like many others do) to be very special and they add a lot of character to the game...

    Anyhow, I thought this damn things on the hotbar must be rebindable, so I researched and I found nothing on the matter, except a very old thread where people complained about it not being in the settings...

    It turns out, you can change the hotkeys for the emotes!

    To do so, go to your steam installation and find this folder:
    Steam\SteamApps\common\King Arthur's Gold\Base\Entities\Common\Emotes

    In there, 4 files:
    EmoteBubble.as
    EmoteHotkeys.as
    EmotesCommon.as
    Emoticons.png

    Make a backup of EmoteHotkeys.as

    Open EmoteHotekeys.as with notepad.

    Find this piece of code: (In the file it's all in one line and spaced a bit further apart, but you should find it nonetheless)

    Following this, come all keys up to 9, always in the same style of code...

    Now just change this part:
    to whatever emote you like...

    Heres a list of the names for the emotes (you also find this in EmotesCommon):
    :skull:skull
    :blue:blueflag
    :note:note
    :right:right
    ::):smile
    :red:redflag
    :flex:flex
    :down:down
    ::(:frown
    :rekt:troll
    :bird:finger
    :left:left
    :>:(:mad
    :bow:archer
    :noburu:sweat
    :up:up
    ::D:laugh
    :sword:knight
    ???question
    :thumbs_up:thumbsup
    :huh?:wat
    :hammer:builder
    :rektlord:disappoint
    :thumbs_down:thumbsdown
    ::P:derp
    :ladder:ladder
    !!!attn
    (a small arrow pointing upwards) pickup
    :QQ:cry
    :build:wall
    :heart:heart
    :camping:fire
    :wink:check
    :B):cross
    :uhh:dots
    :gear:cog
    Then save the file and test it...

    Can someone please put this list in spoilers, I failed to do so...

    (Also, please excuse any grammatical and spelling errors I've probably made, English is my second language)


    I hope this works for you guys too

    best regards,
    Peasantflayer (but on the battlefield and on Steam also known as Feebles)
     
    Last edited by a moderator: Nov 9, 2013
  2. Kouji

    Kouji Cold, Uncaring, Sadistic, Evil and Cruel Meanie Administrator Global Moderator Forum Moderator Tester
    1. MOLEing Over Large Estates - [MOLE]
    2. REKINS OF SEAS: Super Crew of Ultimate Havoking 2: Return of King of KAG: Chapter 420blazeit - REKIN

    Messages:
    2,910
    Moved to modding.

    Hmm, only thing I want to ask is if it's only client side, or can other people see the same emote you are using as well? If it's client side only, it isn't going to be all that useful since that'd mean that people would still see the standard emote configuration.


    also, an fyi for next time: spoiler tags work by typing [spoiler]-stuff[/spoiler]
    to create
    -stuff
     
    VanHuek likes this.
  3. Peasantflayer

    Peasantflayer Catapult Fodder

    Messages:
    6
    Hi,

    Thanks for moving it..I wasn't sure where to put it myself^^

    Hmm the clientside thing is interesting... I must damit I don't know if it shows the right emote for other people, I'll ask around next time I'm on and see if it actually works...

    oh, and thanks for the spoiler command

    EDIT:
    so.. I asked around and it seems to be working.. I tried it on 2 servers and I got responses that matched my emotes... I'm not 100% sure though... so if anyone tries this please report if it works for you too...

    Thanks,
    Peasantflayer
     
    Last edited: Nov 9, 2013
  4. nkChehov

    nkChehov Ballista Bolt Thrower
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    172
    Yeah, its working for me too. Big thanks for discovery!
     
    Peasantflayer likes this.
  5. 8x

    8x Elimination Et Choix Traduisant la Realité Forum Moderator Staff Alumni Tester
    1. The Young Blood Collective - [YB]

    Messages:
    1,325
    Thanks for this!
    And kudos, for this seems to be your first apport for the community, which you joined just yesterday! awesome! hope you upload more easy resources
     
    Peasantflayer likes this.
  6. Peasantflayer

    Peasantflayer Catapult Fodder

    Messages:
    6
    Hi,

    I'm glad this is so well recceived ::):

    Usually, I'm not much of a modder/fixer... I just dug through the files a bit because I was curious and thought that something like hotkeys shouldn't be to hard to change... :builder::scroll:

    But, well lets see if I find something else in the future ^^

    until then, see ya on the battlefield ::):
     
    BlueLuigi, norill and VanHuek like this.
  7. Rocinante

    Rocinante Ballista Bolt Thrower

    Messages:
    133
    Holy shit. Get this guy a fucking medal.

     
  8. Peasantflayer

    Peasantflayer Catapult Fodder

    Messages:
    6
    @ Rocinante:
    :heart:
    Oh, the flattery! I think I'm blushing a little bit ::P:
     
  9. zerd

    zerd Arsonist
    1. SIEGE Clan - SIEGE

    Messages:
    47
    This was just what i was looking for.
    An awesome trick and also a well written guide.

    Thanks for sharing.

    Another benefit from this trick is that you can increase the amount of keys that you want to use for emotes.
    You can do this by copying one of the else-if-blocks to extend the row of else-if-statements like so.
    ...

    } else if (controls.isKeyJustPressed( KEY_KEY_9 )) {
    set_emote(this,Emotes::cog);
    } else if (controls.isKeyJustPressed( KEY_KEY_R )) {
    set_emote(this,Emotes::right);
    }
    }

    Note: Remember not to lose the last bracket in the process.
    In this case i randomly tried "KEY_KEY_R" and it seemed to do the trick, but i'm sure with some experimenting you can get about any key from your keyboard to spam emotes. Haven't been doing KAG modding so not sure where/if the full list of keys can be found on this site.
     
    Peasantflayer likes this.
  10. C4BioS

    C4BioS Shipwright
    1. Trueblue [TB]

    Messages:
    2
    has this changed? instead of "attn" in the coding to change, it says "emote_1" I changed that to "blueflag" to test it, and it doesn't work? someone help I really want these D:

    "
    if (controls.isKeyJustPressed(KEY_KEY_1))
    {
    set_emote(this, emote_1);
    }"
     
  11. 8x

    8x Elimination Et Choix Traduisant la Realité Forum Moderator Staff Alumni Tester
    1. The Young Blood Collective - [YB]

    Messages:
    1,325
    Yeah they added a customizeable cfg file (open it with notepad) for you to rebind the emots, check
    KAG\Base\Entities\Common\Emotes
    then open Emotebindings.cfg

    Each number for "emot_1" "emot_2" etc, corresponds to 1-9 keys in your keyboard. The emot sprites themselves are in "Emoticons.png", note that the numbering in the sprite sheet starts from 0 and goes from left to righ, downwards, like this:

    emots.png
    (so "attn" would be 26, etc;
    and 1, 5, 27, 34 and 35 cannot be found at the emot wheel I believe)
     
  12. C4BioS

    C4BioS Shipwright
    1. Trueblue [TB]

    Messages:
    2
    Thank you so much!!!