[REL] Favourite Colour v1.4 [63180]

Discussion in 'Mod Discussions' started by DeathByDenim, January 18, 2014.

  1. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Oh, goodie! The handlers have been fixed. I no longer need to shadow so this mod is less prone to breaking you PA now. Also I was that @burntcustard claims that the secondary colours are back. Neat! I need to build that in again.
    mishtakashi likes this.
  2. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    This mod is very stubborn! If I try to change my color in the lobby, the mod takes over and puts it back t whatever it likes best. This can be a problem when both the first and second choices are already taken.
  3. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Oh? If both the colours are taken, it shouldn't even try to do anything at all. I did build in an infinite-loop-prevention check, so if you change your colour 50 times, the mod will just give up. (Although your fellow players in the lobby will be wondering what that heck you are doing :))

    The previous pre-gamma version of my mod was able to detect when the user itself would change the colour and stop interfering. It did that by hijacking the go-to-next-colour command, but they put that function in a new viewmodel inside a new viewmodel inside the main viewmodel. I'll find a way though.
  4. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Favourite secondary colours are back!

    Also, I made the mod less stubborn, @cptconundrum.
    cptconundrum likes this.
  5. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    This mod actually only works for player 1's color. I'm only just noticing it now.
  6. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    awwwwwwwww
  7. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Doh! I tested it briefly in FFA's it seemed to work fine, or so I thought. I guess I just got 'lucky' and already got my favourite colour on joining. Looking at my code, it should certainly account for it. Oh well, I'll try it out when I'm home again.

    Testing is harder ever since AI's don't pick colours anymore. :)
  8. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Nope. I lied entirely. Posted in the wrong thread. :D I meant to post in player chat colors... sorry.
  9. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Why you...! :)
    cptconundrum likes this.
  10. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Still going strong in build 63180.
  11. Fr33Lancer

    Fr33Lancer Well-Known Member

    Messages:
    595
    Likes Received:
    288
    May be partially broken (due to rSettingsManager ?), as seen in other topic here and there
    upload_2014-8-15_15-39-21.png
  12. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Oh, probably. It does rely on that. I'll have a look and try to fix it. Thanks!
    Fr33Lancer likes this.
  13. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    Fr33Lancer likes this.
  14. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Yeah, I noticed that one. I may just follow @burntcustard's example though and just use the built-in "api.settings". I'll see.
  15. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    The only issue is the settings types and such are really limited in the default API. That mod extends it with more options.
  16. jpinard

    jpinard Member

    Messages:
    75
    Likes Received:
    22
    Latest stable build of the game and I can't get colors to save and when I select secondary colors the only option is random.
  17. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Yeah, Fr33Lancer reported that too (see above). I still need to fix it though.
  18. jpinard

    jpinard Member

    Messages:
    75
    Likes Received:
    22
    Ok! Looking forward to a fix.
  19. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    Ok, fixed now! And available on PAMM. I also made a new thread for it here.
    jpinard and Fr33Lancer like this.
  20. jpinard

    jpinard Member

    Messages:
    75
    Likes Received:
    22

Share This Page