1. Hello and welcome to MSFC. We are a small and close knitted community who specialises in modding the game Star Trek Armada 2 and the Fleet Operations modification, however we have an open field for discussing a number of topics including movies, real life events and everything in-between.

    Being such a close community, we do have some restrictions, including all users required to be registered before being able to post as well as all members requiring to have participated in the community for sometime before being able to download our modding files to name the main ones. This is done for both the protection of our members and to encourage new members to get involved with the community. We also require all new registrations to first be authorised by an Administrator and to also have an active and confirmed email account.

    We have a policy of fairness and a non harassment environment, with the staff quick to act on the rare occasion of when this policy is breached. Feel free to register and join our community.

FO GUI's in stock A2

Discussion in 'Modding and Editing' started by Rifraf, 7 Mar 2017.

  1. Rifraf

    Rifraf I know just enough to be a danger to myself Community Member

    Joined:
    25 Aug 2013
    Messages:
    843
    Likes Received:
    325
    Trophy Points:
    518
    Gender:
    Male
    Location:
    Colorado
    I had gotten the FO's GUI's to work in stock A2 a while ago, but had some issues so shelved it. A recent thread over at FO got me looking into them again.

    I've attached a screen shot from in game and it shows dilithium and latinum on the upper left along with the unused supply. In the middle is metal, officers and crew from left to right. For testing I used the Borg collective connections I think it is for metal and used the supply icon for the officers and crew.

    For the life of me I can't get the stock metal and crew icons to show up there. In the global sprite file I reference the stock A2 texture that shows the metal and crew symbols and reference their approximate location, but it still only shows the FO symbols. Any ideas?

    Here's the bit from the sprite file:
    @referenceWidth=1024
    @referenceHeight=256
    @tmaterial=interface
    resourcePanel.0 all_interface 895 127 48 48
    resourcePanel.1 all_interface 959 127 48 48
    resourcePanel.2 all_interface 895 191 48 48
    resourcePanel.3 all_interface 959 191 48 48
    resourcePanel.4 all_interface 895 191 48 48
    resourcePanel.5 all_interface 895 191 48 48

    Attached Files:

  2. Terradyhne

    Terradyhne Community Member Community Member

    Joined:
    19 Jan 2011
    Messages:
    225
    Likes Received:
    57
    Trophy Points:
    128
    Location:
    Germany
    In stock A2 are the resource symbols set in the races gui_XX.spr, not in the gui_global.spr . Your other mistake is that you used the FleetOPs TGA-file, the all_interface.tga. In A2 those are set with the races ui.tga-files. Here is the stock A2 gui_federation.spr setting for this:

    # Federation Resource Panel
    resourcePanel.0 fedUI0 0 214 256 40
    resourcePanel.1 fedUI2 0 0 256 40
    resourcePanel.2 fedUI2 0 200 76 40
    resourcePanel.3 fedUI2 0 40 256 40
    resourcePanel.4 fedUI2 0 80 194 40

    This means that you have to change the resource icons on the all_interface.tga from the FleetOps standard icons, to the Stock A2 icons or you will have those race ui bars from stock in the place where those icons are. FleetOps uses the same res icons for all races and has only one texture for it, stock A2 uses manny textures for those icons, for every race ingame. I have made a pic with both textures from FleetOps and one respective Federation Ui-texture from stock A2, next to each other and marked those icons in red circles.

    [​IMG]

    maybe this helps not good at explaining these days
  3. Rifraf

    Rifraf I know just enough to be a danger to myself Community Member

    Joined:
    25 Aug 2013
    Messages:
    843
    Likes Received:
    325
    Trophy Points:
    518
    Gender:
    Male
    Location:
    Colorado
    Hey Terradyhne. It helps believe me. I was a bit of an idiot though when I posted this:
    @referenceWidth=1024
    @referenceHeight=256
    @tmaterial=interface
    resourcePanel.0 all_interface 895 127 48 48
    resourcePanel.1 all_interface 959 127 48 48
    resourcePanel.2 all_interface 895 191 48 48
    resourcePanel.3 all_interface 959 191 48 48
    resourcePanel.4 all_interface 895 191 48 48
    resourcePanel.5 all_interface 895 191 48 48

    Yes, that is the stock reference from FO. I should have posted my entries which referenced fedUI2 I believe it was and my coordinates so apologies for that. I had changed the .tga reference of resourcePanel lines _3, _4 and _5 I think to reference the stock fedUI2.tga, but it still showed the FO icons. Let me try again when home this evening and I'll report back.

    The FO sprite entries I'm using are a bit different from stock so it's kind of a mix of both. Each race has a small base sprite file then they all reference a default sprite file which has the panel locations for all races. I just need to figure out the metal, offices and crew icons.
  4. Rifraf

    Rifraf I know just enough to be a danger to myself Community Member

    Joined:
    25 Aug 2013
    Messages:
    843
    Likes Received:
    325
    Trophy Points:
    518
    Gender:
    Male
    Location:
    Colorado
    I ran a test and I'm on the right track now. Just need to get it all right. I changed my global.spr to the following:
    @referenceWidth=1024
    @referenceHeight=256
    @tmaterial=interface
    resourcePanel.0 all_interface 895 127 48 48
    resourcePanel.1 all_interface 959 127 48 48
    resourcePanel.2 all_interface 895 191 48 48
    resourcePanel.3 fedUI0 0 214 256 40
    resourcePanel.4 all_interface 895 191 48 48
    resourcePanel.5 all_interface 895 191 48 48

    All I changed was panel.3 and got the following result so at least I'm getting there:
    upload_2017-3-8_21-31-1.png

    It's not exactly right, but the stock dilithium icon now appears by the 2000 value. I just need to get the metal icon there, the officer icon by the 15/750 and the crew icon by the 2260.

    I made the following as a test, but the metal and crew icon didn't show up:
    upload_2017-3-8_21-33-38.png

    I cut and pasted the metal and crew icon into the FO .tga, but as said they didn't show up in game. If I delete the layer mask from a .tga and add my icons do I have to add the layer mask back to get them to show up? I hope that all makes sense.
  5. Terradyhne

    Terradyhne Community Member Community Member

    Joined:
    19 Jan 2011
    Messages:
    225
    Likes Received:
    57
    Trophy Points:
    128
    Location:
    Germany
    :clap: You are on the right track, the layer is only for transparency around tose icons. You have to change the coordinates for the icons in the spr-file to those of your pasted icons. The easiest way to achieve what you want is to paste them directly on over the old icons in the texture, with this method you don't need to change the coordinates in your spr-file.

    I made a tga-file for you, with alpha mask and all those icons you want from stock A2, its called all_interface2.tga but i can't attach it here, it doesnt upload so here is a link to download it.
    Http://www.terradyhne-yards.de/all_interface2.tga

    Sorry Staff, if this type of linking is not allowed :angel:
    Last edited by a moderator: 10 Mar 2017
    Rifraf likes this.
  6. Rifraf

    Rifraf I know just enough to be a danger to myself Community Member

    Joined:
    25 Aug 2013
    Messages:
    843
    Likes Received:
    325
    Trophy Points:
    518
    Gender:
    Male
    Location:
    Colorado
    Thank you for doing that tga for me. The simplest things elude me. I had tried the very same thing before and just tried again to paste the stock icons onto that FO tga, but I can still see the FO icon underneath. What am I doing wrong? Yours is perfect, but I can't seem to duplicate it.

    Do I just need to cut a bigger area on the donor tga that's big enough to cover the whole FO icon? Sorry for being a pain. :sweat: I'm using Gimp2

Share This Page