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

More team colors?

Discussion in 'Modding Help' started by GoldenGuy, Jan 29, 2017.

  1. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    i need more teams in my gamemode, and i dont know how to add more colors
     
  2. asger75

    asger75 Haxor

    Messages:
    232
    When you're done add maroons,
    ...
    ...
    QUEENSLANDER! QUEENSLANDER! QUEENSLANDER!
     
  3. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    This can't be done without adding copies of the sprite with the team name appended (like knight_team1, knight_team2 etc) - the engine only supports 8 colours.

    E: a better way to do it in some circumstances would be to have a spritelayer or GUI cue showing the team rather than using team colour on the sprite, but it's quite a departure from normal KAG and keeping spritelayers in sync with sprites can be a hassle
     
    Osmal likes this.
  4. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    U gave me an avesome idea of how to solve that problem! Ill make u moderator on this my server :)
    --- Double Post Merged, Jan 30, 2017, Original Post Date: Jan 30, 2017 ---
    what about adding this in future updates?
    --- Double Post Merged, Jan 30, 2017 ---
    25252525
    screen-17-01-30-17-08-08.png
    it will be something like factions
     
    Last edited: Jan 31, 2017
    asger75 likes this.
  5. asger75

    asger75 Haxor

    Messages:
    232
    I love the racial diversity :thumbs_up:
     
  6. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    now there will be less rasist jokes in kag ::): (or more::D:)
     
    asger75 likes this.
  7. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Honestly I'd like to just give direct access to named textures via scripts (based on CImageData probably) at some point and to rip out the existing engine-side team colour changing - that way you could implement your own colour replacement for whatever colours you wanted, based on whatever you wanted.

    It'd require a lot of scripts get attention though and break any mods that load sprites from code, so it's something that'd almost require it's own big, careful build.

    Looks like you've got multiple images loading now?
    Either way - good luck with it.
     
  8. epsilon

    epsilon Assonist THD Team Forum Moderator Donator Tester
    1. Gather Oceania
    2. KAG World Cup 2018

    Messages:
    506
  9. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    Thanks :)
    It will be port of "Outlands" gamemode from kag classic
    --- Double Post Merged, Jan 31, 2017, Original Post Date: Jan 31, 2017 ---
    little update on this, now there is 24 teams ( standart guys, black guys, stone golem like guys (idk) ) screen-17-01-31-16-43-35.png
     
    epsilon and king-george like this.
  10. king-george

    king-george Haxor Staff Alumni Tester

    Messages:
    284
    What about Asians!?!?!? And where are the Latinos too?
     
  11. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    now i have a problem, attachment point for picking up stuff is wrong for players with other sprites ::(:
    also, sex number got wrong for some reason, it always gives 0
    --- Double Post Merged, Jan 31, 2017, Original Post Date: Jan 31, 2017 ---
    Who's that?
     
    king-george likes this.