[WIP][Server] Imperial Legion (Faction)

Discussion in 'Work-In-Progress Mods' started by Nicb1, June 28, 2015.

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

    Ksgrip Active Member

    Messages:
    612
    Likes Received:
    242
    Or maybe make a mod separate fron the pack that uses it and put it so it depends of the main one and is optative to use? Would not be possible to make the script read the unit files and those which start with l_ attach the selection icon to them?
  2. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    not possible
  3. Ksgrip

    Ksgrip Active Member

    Messages:
    612
    Likes Received:
    242
    Too bad:s
    Maybe @wondible knows hpw to surpass this?
    Also i pretty much though that using pointers could be usefull to this kind of situations.

    Im saying this without proper knowledge of java. But in C this kind of thing wouldn't be realy be much of a problem
    Last edited: January 22, 2016
  4. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Scripts don't really have any power here. These shaders can only be shadowed and there's no way to get around that.
    stuart98 likes this.
  5. Ksgrip

    Ksgrip Active Member

    Messages:
    612
    Likes Received:
    242
    [QUkno"KillerKiwiJuice, post: 1123285, member: 1970458"]
    Scripts don't really have any power here. These shaders can only be shadowed and there's no way to get around that.[/QUOTE]
    Yo know, that you can always replace vanilla files.. That is some user preference to do so or not. And then you surpass that shadowing problem.
  6. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Actually, it might be. If you give the Legion units a special selection circle size, lets say using a negative number instead, I could probably use the vertex shader to then encode that information, so that the fragment shader can use that to decide which selection box to render.

    This is predicated on me somehow being able to encode that information...so I'll have a look :).
    martianhunter, Nicb1 and Ksgrip like this.
  7. Ksgrip

    Ksgrip Active Member

    Messages:
    612
    Likes Received:
    242
    Also what about giving it a faction ui?
  8. Ksgrip

    Ksgrip Active Member

    Messages:
    612
    Likes Received:
    242
    @KillerKiwiJuice will the hailfaire be added? I still think it can have good role. The three would be the most beneficial combination
  9. Nicb1

    Nicb1 Post Master General

    Messages:
    1,010
    Likes Received:
    1,286
    They are placeholders and will be replaced in due time.

    In regards to custom faction ui i do not think it is possible to make it so the ui appears exclusively to the legion, if we made changes even vanilla players would see it.
    stuart98 likes this.
  10. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Turns out I left an unused include in the shaders, but you won't have that file so you will need to remove it in order to use it :p. Anyway, I thought I may as well include some pics to show you what I mean.
    [​IMG]
    cdrkf and killerkiwijuice like this.
  11. optimi

    optimi Well-Known Member

    Messages:
    572
    Likes Received:
    652
    Any idea of an ETA?
  12. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Actually the UI is different. It's possible because JavaScript is much more flexible and can take in arguments from outside sources. That would be a lot of work though, and would best be kept as a client mod. I'm not sure if it's possible as a server mod actually.
    Those look great, honestly, but unless you can get the shader file to bind exclusively to a legion user we probably won't use it. The issue is getting the .fs files to accept external parameters like some encoded localstorage data. Shadowing is a pain :p
    Beta is very soon, final is soon. :)
    dom314 likes this.
  13. optimi

    optimi Well-Known Member

    Messages:
    572
    Likes Received:
    652
    Good to hear! This mod reminds me of the glory days of PA development, i.e checking the forums constantly for news about new updates :p
    cdrkf and Nicb1 like this.
  14. Nicb1

    Nicb1 Post Master General

    Messages:
    1,010
    Likes Received:
    1,286
    Remember though kiwi our mod is split into client and server. So doesnt matter about needing a client mod. 160mb is almost too much for anyone to upload quickly in a unified mod.
    Ksgrip likes this.
  15. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    well yeah I know. Wait, what does that have to do with a custom UI?
  16. cdrkf

    cdrkf Post Master General

    Messages:
    5,721
    Likes Received:
    4,793
    The fact that you have a client side mod in which you could include the ui modifications already?
    stuart98 and Nicb1 like this.
  17. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
  18. Ksgrip

    Ksgrip Active Member

    Messages:
    612
    Likes Received:
    242
    wow!! I´m clapping with my ears jaja.
    Would i suggest something? I think if you have to use the hexagonal icon for vanilla; at least change it to the vanilla colour, the blue one:))
  19. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    I don't need to, the point is that there is information in the fragment shader that I can use to differentiate the two. This means that I can use a completely vanila selection circle for vanila units, and the red hexagon for Legion units.
    cdrkf likes this.
  20. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Case in point:
    [​IMG]
Thread Status:
Not open for further replies.

Share This Page