Customizing Production Tabs
-
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:CastleBelow 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 -
@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-propertiesI did not pursue it further, as was busy with coding the Shogun.
-
@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.
-
@unit332
Check out pact_of_steel_2 map as it has the original help text. -
@thedog Thank you! I suspect the issue is that I have spaces in the names of my units.
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