Anno 1800
0 of 0

File information

Last updated

Original upload

Created by

jmanz

Uploaded by

soirnoir

Virus scan

Safe to use

Tags for this mod

23 comments

  1. g262
    g262
    • member
    • 0 kudos
    Is it possible to use the code basis of this mod the create a new mod that lets you set a hotkey to close the menues on the left (notifications, expeditions etc) when they are open? It drives me insane, that I always have to press the X button with my mouse. My current solution is, that when ever I play the game, I have a python script running, that loops and looks for a keypress (a keypress of the key on my keyboard that I want to function as the respective shortcut for that task) and if it detects the keypress, it just executes a leftclick on the screen, where the X button is located. This solution works, but I guess a mod solution would be much more CPU friendly.
  2. Lulunk
    Lulunk
    • member
    • 0 kudos
    Not working for GU17
  3. Rocushabrams
    Rocushabrams
    • member
    • 0 kudos
    Not work. please update
  4. Lulunk
    Lulunk
    • member
    • 0 kudos
    Just like @GaiusG said... dont use number on your shortcut key and it will works just fine..
  5. GeoToo
    GeoToo
    • member
    • 1 kudos
    As @Lulunk said, mod is not working for me either. I have changed key mapping based on the newly defined key combination (Alt;F1) but no joy. As last resort I even changed key combinations between using function keys with other characters but didn't work either. I have the latest version 16.1.1202360. If anyone is willing to help me troubleshoot I welcome the help.

    Thank you.
    1. GeoToo
      GeoToo
      • member
      • 1 kudos
      Update...
      So, I may have spoken too soon. I did some playing around and what @GaiusG wrote about someone "changed the name of the command used to bind keys" finally made sense, so I changed "DefaultKey" for "KeyTypes" plus changed "key+1" to "key;1" and it worked. Now I just have the issue where it doesn't work all the time but it's better than nothing.

      Thanks.
  6. Lulunk
    Lulunk
    • member
    • 0 kudos


    Now its adding more than one item, and i just hit one key.

    My game version is 18.22712
  7. portgasDace08
    portgasDace08
    • member
    • 0 kudos
    Thanks for the mod, it works absolutely fine but unfortunately the hotkeys kept on resetting after I quit and re-open the game. I'm tired of rebinding them again and again. What did I do wrong?

    Game Update 15 by the way. 
  8. GaiusG
    GaiusG
    • member
    • 0 kudos
    Hey soirnoir,
    the mod stopped working with Game Update 15, today.

    The game has a new hotkey combination, Alt+Space, which makes it focus on the spot of the last notification.
    Whatever dev was responsible for adding this apparently has a dislike for the term DefaultKey, so he changed the name of the command used to bind keys.
    And while he was at it, he also changed the syntax used to define the key combination.

    Replace<DefaultKey>Alt + 1</DefaultKey>
    with<KeyTypes>Alt;1</KeyTypes>
    and you are back in business.

    Cheers.
    1. valagarus
      valagarus
      • member
      • 0 kudos
      Sadly Alt;1 set Alt key to keybind... Right now i don't know how to set multiple items to difrent keys. If anyone have idea how this work now let us know. 
    2. GaiusG
      GaiusG
      • member
      • 0 kudos
      "Alt;1" was just an example. You should never use number keys for self-made key bindings, it usually messes up a lot of things. Stick to the function keys and letters.

      As for how to set different items to different keys, that's not hard to do:
      <ModOps>

       <!-- Description 1 -->
       <ModOp Type="add" GUID='2001271' Path="/Values/GUIConfig/KeyBindings">
        <Item>
          <KeyTypes>Alt;F5</KeyTypes>
          <Command>TextSources.TextSourceRoots.Selection.Object.ItemContainer.SetCheatItemInSlot(123456,1)</Command>
          <Text>90001</Text>
          <Active>Menu;Session;WorldMap;VideoCameraSequence;TextInput;PostcardView;Pause</Active>
        </Item>
       </ModOp>
       <!-- Description 2 -->
       <ModOp Type="add" GUID='2001271' Path="/Values/GUIConfig/KeyBindings">
        <Item>
          <KeyTypes>Alt;F6</KeyTypes>
          <Command>TextSources.TextSourceRoots.Selection.Object.ItemContainer.SetCheatItemInSlot(234567,1)</Command>
          <Text>90001</Text>
          <Active>Menu;Session;WorldMap;VideoCameraSequence;TextInput;PostcardView;Pause</Active>
        </Item>
       </ModOp>
       <!-- Description 3 -->
       <ModOp Type="add" GUID='2001271' Path="/Values/GUIConfig/KeyBindings">
        <Item>
          <KeyTypes>Alt;F7</KeyTypes>
          <Command>TextSources.TextSourceRoots.Selection.Object.ItemContainer.SetCheatItemInSlot(345678,1)</Command>
          <Text>90001</Text>
          <Active>Menu;Session;WorldMap;VideoCameraSequence;TextInput;PostcardView;Pause</Active>
        </Item>
       </ModOp>

      </ModOps>
      There you go.
      The above Command will add an item to your ship's cargo slot, like done in this mod.

      If you want to add resources to an island, use<Command>TextSources.TextSourceRoots.Area.Current.Economy.AddAmount(123456,10)</Command>

      Cheers.
    3. a448738483
      a448738483
      • premium
      • 1 kudos
      Actually, since the game already occupies a great deal of alt + number combo keys. while the others are occupied by steam and nividia overlays, I would simply suggest doing something like 
      Z + Q
      Z + W
      Z + E

      Those would always work.
    4. LBraden
      LBraden
      • premium
      • 35 kudos
      Ya know ... I didn't think about the Z key as basis for this, I'll do it now while I update this.

      EDIT: upon doing so, I end up with the rather nasty situation of getting it filling my ship's inventory with everything on the list (or at least attempting to)

      Not sure if I've messed up something or that's a bug with the new update.
    5. GaiusG
      GaiusG
      • member
      • 0 kudos
      You didn't mess up, and it's not a bug either. It is merely a peculiarity of how key binding works. The same thing happens if you try to utilise the number keys, they get addressed every time Alt/Shift/Whatever-You-Use-As-Combination-Key is pressed. That's why I said not to use them, in my earlier reply to valagarus.
      Just stick to Shift/Alt with F5-F12 and the regular letter keys. That's enough anyway, unless you want to keybind every specialist and item in the game.
    6. LBraden
      LBraden
      • premium
      • 35 kudos
      Aye, just running the issue of as a448738483 said, my nVidia panel by default is Alt F2, but I changed that recently to Ctrl Alt F2.

      But hey, I love to test things in a way to break them, though speaking of, I've tried the same style you mentioned for Add Item (which I use for testing mods if they add in a specialist) and well, it didn't work at all.
    7. GaiusG
      GaiusG
      • member
      • 0 kudos
      The Add Item mod doesn't work for me either, no matter what I try or how I reassign keys. I have no idea why, which is why I ended up binding a dozen keys, so I can get things done faster during those testing games (or if I'm just too lazy to get to Investors the regular way).
      I suspect that certain NVIDIA drivers or other video-related software somehow interfere with adding numbers in that way during gameplay ... which is probably also the reason why assigning Alt+1 to Alt+0 doesn't work without ending up with unwanted items in your cargo slots.
      Well, F5 to F12 work just fine, and so do Q to M ... that offers a total of 34 keys to bind, which should be enough for anyone.
  9. LBraden
    LBraden
    • premium
    • 35 kudos
    Hey dude, just a quick.

    Is it possible to do "Alt + [random]" rather than "Alt + F#" as I found a minor issue with my GPU software where it tries to do certain things due to "Alt+F#" ends up with it trying to do something.

    Outside of that, and a few minor issues where I've mistyped a GUID code (I've got a few mods) this mod has been great (even with me trying the other add item mod, conflicted a little bit with that in my testing)
    1. soirnoir
      soirnoir
      • supporter
      • 0 kudos
      all the mod does is assign a hotkey to adding an item. you can change the hotkey combo to whatever you like, provided it's not already in use for some other function. theoretically you could even assign a single key if it's not in use already. alternatively you could try and change whatever hotkeys are used for your GPU software to sidestep the conflicting entries. Cheers.
    2. LBraden
      LBraden
      • premium
      • 35 kudos
      Aye, been digging around for it on the Graphics, found the option to change keys about 3 layers deep (seriously, UI people ...)

      Though one thing I might try is if "Ctrl Shift 1" could work, though that's me trying to create edge cases of insanity while bored waiting for the new update (which may result in me starting a new game as of the new Bauxite mines)
  10. trenty66
    trenty66
    • supporter
    • 0 kudos
    so i cant seem to get this mod to work at all i was reading description is it no longer working at all?
    1. soirnoir
      soirnoir
      • supporter
      • 0 kudos
      it still works fine for me. is there more info you could provide or is it just a general 'i can't get it to work' kind of deal? do you have other mods that you use? there aren't many mods that deal with hotkeys so there will be minimal at best conflicts.