[DERELICT] Reconnect Button 2.1.0 [68331]

Discussion in 'Mod Discussions' started by wondible, March 10, 2014.

  1. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    No longer maintained

    Provides a Reconnect button on the start menu. When it's disabled, you know it's safe to start a game without fear of reconnecting to the wrong one.

    Reconnect button in live_game ESC menu. Will attempt to reset the connection when you stop getting updates. Doesn't always work and requires regenerating planets when it does.

    - https://github.com/JustinLove/reconnect_button
    - http://wondible.com/pa/reconnect_button_v2.1.0.zip

    I'd almost rather make this a Disconnect button, but I've tried three different messages to no avail.

    ## 2.1.0

    - Changes circa 67998
    - Fix KO binding on start menu
    - Fix new in-game menu
    Last edited: December 18, 2014
    websterx01 and brianpurkiss like this.
  2. brianpurkiss

    brianpurkiss Post Master General

    Messages:
    7,879
    Likes Received:
    7,438
    This is a pretty awesome mod.

    Add it to PAMM!
  3. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    can't you just do the reset_game_state call to disconnect?
    thetrophysystem likes this.
  4. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Thanks - I'd forgotten about that one. No dice, however. I think it resets client state only. I'd expect ubernet.removePlayerFromGame to be the thing, but the Abandon button calls it to no effect, and I haven't had any better luck.
  5. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    It's been a day with no bug reports, published.
  6. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    1.0.1: Fixed a relative path issue for 63180
  7. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    I'm currently testing 2.0 with a one-click reconnect from live_game ESC menu. It's worked enough to make me think I'm on the right track, but it looks like I'll have to disable it in game over state, because the game is stuck in generating planets after the refresh.

    https://github.com/JustinLove/reconnect_button/tree/live_game

    It saves Main Menu -> Yes -> Reconnect, but I haven't found a working sequence that avoids regenerating planets.
  8. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Version 2.0

    Reconnect button in live_game ESC menu. Will attempt to reset the connection when you stop getting updates. Doesn't always work and requires regenerating planets when it does.
  9. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
  10. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    since this is a bit of a funky mod I'm not quite sure how to test it, I may be entirely mistaken.
  11. keterei

    keterei Active Member

    Messages:
    258
    Likes Received:
    93
  12. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    PTE-67998 changed the in-game options menu, so the in-game reconnect button doesn't appear. In theory it should be easier to add in the future.
  13. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Start menu is also running afoul of the KO double-binding issue.
  14. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Random info about the double binding issues, I have not actually looked at the PA code, this is based on knowledge I have from other I have done in ko 3:

    You can clean nodes from KO, so you can rebind on them with other stuff:
    ko.cleanNode(element);

    so if PA does a full page bind you may be able to unbind some portion of it and do a bind on that specific element afterwards again:

    ko.applyBindings(model, pageElement);
    thetrophysystem likes this.
  15. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Thanks, didn't know there was a method for that.
  16. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    github has a pte branch that fixes button appearance.
  17. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Reconnect Button 2.1.0

    - Changes circa 67998
    - Fix KO binding on start menu
    - Fix new in-game menu
  18. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Delisted from PAMM; I use Connect Buttons and don't need the in-game reconnect anymore.

Share This Page