• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Battlecry

Field Marshal
16 Badges
Feb 22, 2007
2.528
4
  • Arsenal of Democracy
  • Crusader Kings II
  • Europa Universalis III
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis: Rome
  • Semper Fi
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV Sign-up
Well I added a new building to the buildings.txt file (just copied another and changed the name), and then added it to a localisation file, and it still doesn't show up. Is there a limit to how many buildings can be displayed? Am I missing something else?
 

apg

Field Marshal
67 Badges
May 28, 2011
2.679
269
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Pre-order
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings Complete
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV Sign-up
  • Imperator: Rome
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Rule Britannia
  • 500k Club
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
Well I added a new building to the buildings.txt file (just copied another and changed the name), and then added it to a localisation file, and it still doesn't show up. Is there a limit to how many buildings can be displayed? Am I missing something else?

post the code, so we can see what could be wrong. There is no limit on buildings.
 

Battlecry

Field Marshal
16 Badges
Feb 22, 2007
2.528
4
  • Arsenal of Democracy
  • Crusader Kings II
  • Europa Universalis III
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis: Rome
  • Semper Fi
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV Sign-up
Code:
 # Castle
castle = {
	royal_guard = {
		potential = {
			FROM = {
				ai = no
			}
		}
		build_cost = 500
		build_time = 365
		heavy_infantry = 250
		pikemen = 250
		ai_creation_factor = 0
		
		start = {
			ai = no
			year = 1066
		}
	}

EDIT: Lol I think I just found (at least part of) my mistake...should be:
Code:
start = {
			FROM = {
				ai = no
			}
			year = 1066
		}

Since of course ai = no has no meaning in province scope!

EDIT2: Still doesn't show up...
 
Last edited:

Battlecry

Field Marshal
16 Badges
Feb 22, 2007
2.528
4
  • Arsenal of Democracy
  • Crusader Kings II
  • Europa Universalis III
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis: Rome
  • Semper Fi
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV Sign-up
Did you put the building to the end of file or to the end of castle's part? That could be the problem.
I put it at the start of the castle = {}...

Anyway, it's working now! I'm not really sure why it didn't earlier.