[Rel] Hotbuild [57164]

Discussion in 'Mod Discussions' started by cola_colin, August 3, 2013.

Thread Status:
Not open for further replies.
  1. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    updated again, my last update broke the default mapping of y to stop
  2. stormingkiwi

    stormingkiwi Post Master General

    Messages:
    3,266
    Likes Received:
    1,355
    Hey.

    I want to change the key to make buildings pause/unpause production. I don't particularly want the rest of the keybinds from your mod. How do I go about changing that keybind?

    I may be really stupid, but I can't see it in the game settings.

    **Edit**

    I've also downloaded your mod. But how on earth do I rebind stuff? The energy conserve stuff seems to be commented out, but it definitely works, so I'm confused!

    **Edit2**

    Sorted. I just commented everything out that didn't refer to Tab
    Last edited: November 5, 2013
    reptarking likes this.
  3. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I am surprised somebody installs the mod just for that single feature.
    But yeah that is the right way to do it.
  4. stormingkiwi

    stormingkiwi Post Master General

    Messages:
    3,266
    Likes Received:
    1,355
    Lol I know right?

    It seems like a pretty essential feature -- it's also one of the commands on the UI that doesn't have a hotkey.
  5. kryovow

    kryovow Well-Known Member

    Messages:
    1,112
    Likes Received:
    240
    ColaColin, could you implement a hotkey that switches pole lock on and off? Or is this not possible atm with the game?
  6. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Attached a version that should do what you want. Only did a pretty rough test.
    After you confirmed it working I'll make it the official version.

    Default mapping is ^ to toggle pole lock. It stores the selected option as well.

    Attached Files:

  7. kryovow

    kryovow Well-Known Member

    Messages:
    1,112
    Likes Received:
    240
    AWESOME seems to work. Will improve polar gameplay for me1^^
  8. bradburning

    bradburning Active Member

    Messages:
    187
    Likes Received:
    102
    Hey could you edd the first post to say if you have the mod manager installed all you need to do is put the file in the right place? It would make it a lot less confusing. :)
  9. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    added a note about it
  10. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Added a new function I call requeue:

    Whenever you queue up units the mod will remember it. When you press o it will repeat everything you queued so far 50 times. To reset the "remembered" queue that is repeated give a stop command.

    So i.e. you can do this:

    1. Select factory, press stop to make sure you dont have rubbish in memory
    2. Queue up 2 workers, 1 ant, 1 scout (example)
    3. Press o, you will now have 50 times 2 workers, 1 ant 1 scout more in the queue
    4. Select other factory press o to give it the same commands, do this with as many factories as you want
  11. kryovow

    kryovow Well-Known Member

    Messages:
    1,112
    Likes Received:
    240
    loool
  12. stormingkiwi

    stormingkiwi Post Master General

    Messages:
    3,266
    Likes Received:
    1,355
    Hm... I may have to learn how to javascript.

    Is there anyway to change the way commands work?

    Essentially so that I can bind combinations like Ctrl+(something) to commands?

    I tried it but I broke your code so it never worked at all.
    Edit 2: Jokes. I just totally broke it. Time to revert to vanilla.

    I was basically trying to make the map compatible with w, a, s, d camera controls.
    Last edited: November 7, 2013
  13. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Currently the system does not easily support modifiers like that. You would need to modify the map.js format and the handling in the keymapper js file to achieve that.
  14. stormingkiwi

    stormingkiwi Post Master General

    Messages:
    3,266
    Likes Received:
    1,355
    XD I'll grin and bear it :) Thanks so much for you mod man! I can actually edit the shift+click on build queues now. It's kind of meaningless to add 20 to the queue at once when I can just hit o and add 50.
  15. zaphodx

    zaphodx Post Master General

    Messages:
    2,350
    Likes Received:
    2,409
    I'm not at home to test it but does 'tab' actually pause your factory constructions, and then re-enable construction from the same point? Or does it stop the factories and then re-queue them up? Either way that seems neat and useful.
    stormingkiwi likes this.
  16. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Tab works exactly like in FA: pauses/unpauses the queue is untouched
  17. zaphodx

    zaphodx Post Master General

    Messages:
    2,350
    Likes Received:
    2,409
    Is it just for selected factory or global? Is it possible to do a global pause?
  18. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Selected factory.
    Global pause is most likely impossible. ... unless ... well maybe it could be hacked that whenever you select a unit it is automatically added to a unit group and a press on "global pause" selects that group, pauses and goes back to your previous selection by using another unit group. ... is an idea for a hack that _might_ be possible.
  19. kryovow

    kryovow Well-Known Member

    Messages:
    1,112
    Likes Received:
    240
    you can select all factories and press tab. isnt there a standard hotkey for selecting all facs?
  20. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I think there is, yes
Thread Status:
Not open for further replies.

Share This Page