[REL] SupCom's Strat Icons by ozonexo3

Discussion in 'Mod Discussions' started by ozonexo3, June 8, 2013.

  1. thedbp

    thedbp Member

    Messages:
    223
    Likes Received:
    8
    seems like the height limit of the atlas is 3600 or something, trying to dig around to find what is limiting it...
  2. ozonexo3

    ozonexo3 Active Member

    Messages:
    418
    Likes Received:
    196
    on the top you have width and height of svg texture.

    Funny thing is that i cant find strategic_icons_address in any of units files. Where exacly do you guys see it?

    When i added it here, game crashed
    PA\media\pa\units\air\fighter_adv\fighter_adv.json
  3. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Some units don't have it because they inherit it from a base unit (base_spec). Have a look at the construction vehicle as an example of a unit that does have a strategic icon defined.
  4. cptusmc

    cptusmc Active Member

    Messages:
    100
    Likes Received:
    52
    This is awesome...I'm excited to get my key, it will be like I never left SupCom. This game will continue to get more and more awesome every week b/c people like you, thanks. :D
  5. thedbp

    thedbp Member

    Messages:
    223
    Likes Received:
    8
    okay this is how it's code normally looks.
    I get it to work by making the strategic icon insertion right after the describtion

    another fun fact is that you can change this while the game is going, and the game will adapt to these changes live.

    but you can still define it with no trouble..
  6. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Correct (I was just pointing out why some don't have the entry).
    Last edited: June 11, 2013
  7. ozonexo3

    ozonexo3 Active Member

    Messages:
    418
    Likes Received:
    196
    Ok, i created icons for every unit in alpha, but im still coding it. I will release it in next 6h (im in work now)

    Thanks for that! You are cool :)
  8. thedbp

    thedbp Member

    Messages:
    223
    Likes Received:
    8
    this right?

    I've changed it... it still don't let me go further than 30, above 30 and it starts from 1...
  9. ozonexo3

    ozonexo3 Active Member

    Messages:
    418
    Likes Received:
    196
    ok, for now i dont know why there is no way to add more than 30 icons. Also there is no way to change icon size, even if i change there size in svg texture, game is still getting size 120x120.

    All icons need to be on y axis, x need to be always 0.

    This looks like something gets texture and only check icon numbers, and if its bigger than 30 then return to 0. Its ignoring X position and XY size. Im searching in js files for that now.

    Maybe someone from uber can tell something about that?
  10. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    The logic must be engine side then. To be honest, it would make more sense if the limit was 31 (then it would simply be overflowing if a higher number was selected). 30 seems a bit odd.
  11. thedbp

    thedbp Member

    Messages:
    223
    Likes Received:
    8
    I have some sort of feeling that it has to do with the common.js under shared, but I can't find much.

    it should, some where, define from where and how it counts the strategic_icons_address.

    it could be done on server, but I don't really understand why they would do that..
  12. ozonexo3

    ozonexo3 Active Member

    Messages:
    418
    Likes Received:
    196
    i just checked all JS files second time and i dont see anything :/
  13. thedbp

    thedbp Member

    Messages:
    223
    Likes Received:
    8
    [​IMG]
    Just spend quite some hours looking through all of these... nothing.. do anyone have .papa file reader? notes++ doesn't read it.
  14. ozonexo3

    ozonexo3 Active Member

    Messages:
    418
    Likes Received:
    196
    viewtopic.php?f=72&t=46767

    well... not yet, but i also dont think this is in papa files. This need to be hardcoded :x
  15. thedbp

    thedbp Member

    Messages:
    223
    Likes Received:
    8

    yeah that's to bad... But I have a feeling they might heighten the limit.. soon, because why not?
  16. ozonexo3

    ozonexo3 Active Member

    Messages:
    418
    Likes Received:
    196
    i think there is reason why they use svg to create texture. As you can see there, you can set x and y position, and size of texture. For now it only uses Y axis, and ignoring everything other. My icons dont need to be 120x120, they can by 2 times smaller, and x axis will add a lot of space there.
  17. thedbp

    thedbp Member

    Messages:
    223
    Likes Received:
    8
    yeah most of them can fit fine with 48x48 I just concluded that it was done because some of their icons (naval) was actually using the 120...
  18. Sorian

    Sorian Official PA

    Messages:
    998
    Likes Received:
    3,844
    The 30 limit it hardcoded at the moment.

    Just so you don't have to put any more effort into figuring this out.
  19. xedi

    xedi Active Member

    Messages:
    135
    Likes Received:
    31
    Thanks for the clarification. Looking forward to that being relaxed!
  20. paprototype

    paprototype Member

    Messages:
    138
    Likes Received:
    1
    Great mod.
    The current PA icons are way to complicated/intrusive.

    Simple circles/triangles/squares is the way to go.

Share This Page