Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Customizing Production Tabs

    Map Making
    2
    5
    400
    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
      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
      
      
      TheDog 1 Reply Last reply Reply Quote 0
      • TheDog
        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.

        U 1 Reply Last reply Reply Quote 2
        • U
          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.

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

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

            U 1 Reply Last reply Reply Quote 1
            • U
              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
              • 1 / 1
              • First post
                Last post
              Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums