TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Customizing Production Tabs

    Scheduled Pinned Locked Moved Map Making
    5 Posts 2 Posters 1.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • U Offline
      unit332
      last edited by

      What needs to be done in order to customize production tabs? I found some code in "The Shogun" mod, but when I tried to implement a version it didn't seem to work.

      Reference code

      # The Shogun
      # use the default tabs of tripleA which are: All, Land, Air, Sea, Construction, Upgrade/Consumes
      # default=true
      production_tabs.use_default_tabs=false
      
      # how many tabs should there be, for each tab you need to add production_tabs.tab_name.# and production_tabs.tab_units.#
      #NB: you need to create a tabs section as well for each tab or the system will crash!
      # default=0
      production_tabs.number_of_tabs=4
      
      # how many rows of units to be placed on a panel, if 0 the system will calculate
      # default=0
      production_tabs.rows=2
      
      # how many columns of units to be placed on a panel, if 0 the system will calculate, 
      # default=0
      production_tabs.columns=5
      
      
      # Tab 1: All Units
      production_tabs.Rebels.tab_name.1=All Units
      production_tabs.Rebels.tab_units.5=Farmer:Yumi-Sohei:Sohei:na-1:Ronin:Ninja:Fort:Castle:Wako-Jong
      
      # Tab 2: Army
      production_tabs.Rebels.tab_name.2=Army
      production_tabs.Rebels.tab_units.6=Farmer:Yumi-Sohei:Sohei:na-1:Ronin:Ninja
      
      # Tab 3: Navy
      production_tabs.Rebels.tab_name.3=Navy
      production_tabs.Rebels.tab_units.7=Wako-Jong
      
      # Tab 4: Fortifications
      production_tabs.Rebels.tab_name.4=Fortifications
      production_tabs.Rebels.tab_units.8=Fort:Castle
      
      

      Below you can see I've take the base code from Production Tabs and since I need to display this for a certain player (EFGF) I've inserted them where for example Rebels are in the "The Shogun."

      # The Shogun
      # use the default tabs of tripleA which are: All, Land, Air, Sea, Construction, Upgrade/Consumes
      # default=true
      production_tabs.use_default_tabs=false
      
      # how many tabs should there be, for each tab you need to add production_tabs.tab_name.# and production_tabs.tab_units.#
      #NB: you need to create a tabs section as well for each tab or the system will crash!
      # default=0
      production_tabs.number_of_tabs=6
      
      # how many rows of units to be placed on a panel, if 0 the system will calculate
      # default=0
      production_tabs.rows=2
      
      # how many columns of units to be placed on a panel, if 0 the system will calculate, 
      # default=0
      production_tabs.columns=9
      
      production_tabs.EFGF.tab_name.1=Ace Units
      production_tabs.EFGF.tab_units.1=Gundam:Gundam Pixy:FA Gundam:Atlas Gundam:Gundam Alex:Blue Destiny U1:Blue Destiny U2:Blue Destiny U3:Gundam Ground Type
      
      # Tab 1: All Terrain Units
      production_tabs.EFGF.tab_name.2=All Terrain Units
      production_tabs.EFGF.tab_units.2=Guncannon:GM:GM Light:GM Command:Guntank:Gundam:GM Sniper Custom:GM Moore
      
      # Tab 2: Heavy
      production_tabs.EFGF.tab_name.3=Heavy-Type Mobile Suits
      production_tabs.EFGF.tab_units.3=Guntank:Ball:GM Sniper Custom:Gm Moore:GM Striker:Gundam:FA Gundam:Gundam Alex
      
      # Tab 3: Support
      production_tabs.EFGF.tab_name.4=Support-Type Mobile Suits
      production_tabs.EFGF.tab_units.4=Guncannon:GM Light:GM Land Combat
      
      # Tab 4: Earth-Only Units
      production_tabs.EFGF.tab_name.5=Earth Marine-Only Units
      production_tabs.EFGF.tab_units.5=TIN Cod:Fly Manta:Himalaya:GM Land Combat:GM Striker:Gundam Pixy:GM Ground Type:Gundam Ground Type:Aqua GC:GM Aqua:Atlas Gundam
      
      # Tab 5: Space-Only Units
      production_tabs.EFGF.tab_name.6=Space-Only Units
      production_tabs.EFGF.tab_units.6=Saberfish:Ball:GM Moore:Columbus:Salamis:Magellan
      
      
      TheDogT 1 Reply Last reply Reply Quote 0
      • TheDogT Offline
        TheDog @unit332
        last edited by

        @unit332
        AFAIK it has bugs, my finding are;
        production_tabs.properties - shared by 10 clans and works as intended
        production_tabs.Rebels.properties - used only by the Rebels, it uses the units of the Rebels but displays the default tab/headings of All, Land, Air etc.

        Found here;
        https://forums.triplea-game.org/topic/3034/help-with-production_tabs-properties

        I did not pursue it further, as was busy with coding the Shogun.

        https://forums.triplea-game.org/tags/thedog
        https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

        U 1 Reply Last reply Reply Quote 2
        • U Offline
          unit332 @TheDog
          last edited by

          @thedog Thanks! I'll play around to see if I can't figure it out. The Gundam mod I'm working on has far too many units for the default tabs to work.

          TheDogT 1 Reply Last reply Reply Quote 0
          • TheDogT Offline
            TheDog @unit332
            last edited by

            @unit332
            Check out pact_of_steel_2 map as it has the original help text.

            https://forums.triplea-game.org/tags/thedog
            https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

            U 1 Reply Last reply Reply Quote 1
            • U Offline
              unit332 @TheDog
              last edited by

              @thedog Thank you! I suspect the issue is that I have spaces in the names of my units.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums