I'd like to add a new basement for Gondor faction which will allow to build only healing well , hero statue and keep.
So, I have created corresponding command set in the commandset.ini:
CommandSet GondorFoundationCommandSetSmall
1 = Command_ConstructGondorStatue
2 = Command_ConstructGondorWell
3 = Command_ConstructGondorKeep
End
Then, I went to goodfactionbuildings.ini and added corresponding foundation to this file:
;Gondor Small Building Foundation -- the area where faction gondor buildings can be built on
Object GondorBuildingFoundationSmall
SelectPortrait = BPGCamp_Plot
; *** ART Parameters ***
Draw = W3DScriptedModelDraw ModuleTag_Draw2
DefaultModelConditionState
Model = OBBFoundationX
End
ModelConditionState = WORLD_BUILDER
Model = GBSizeTemplate
End
End
Draw = W3DFloorDraw ModuleTag_Draw
ModelName = GBFoundationX
End
;PlacementViewAngle = 0
; ***DESIGN parameters ***
DisplayName = OBJECT:GondorBuildingFoundation
Side = Gondor
EditorSorting = STRUCTURE
ThreatLevel = 1.0
BuildCost = 1
BuildTime = 5.0 ; in seconds
VisionRange = 160.0 ; Shroud clearing distance
ShroudClearingRange = 160
CommandSet = GondorFoundationCommandSetSmall
; *** AUDIO Parameters ***
VoiceSelect = Gui_PlotSelect
; *** ENGINEERING Parameters ***
RadarPriority = STRUCTURE
KindOf = STRUCTURE SELECTABLE IMMOBILE BASE_FOUNDATION UNATTACKABLE MP_COUNT_FOR_VICTORY NO_COLLIDE DO_NOT_CLASSIFY
Behavior = FoundationAIUpdate ModuleTag_foundationAI
End
Behavior = CastleMemberBehavior ModuleTag_CMB
End
Body = ImmortalBody ModuleTag_05
MaxHealth = 15000.0
End
Geometry = BOX
GeometryMajorRadius = 24.0
GeometryMinorRadius = 24.0
GeometryHeight = 0.8
GeometryIsSmall = No
Shadow = SHADOW_VOLUME
BuildCompletion = PLACED_BY_PLAYER
End
After that, I ran worldbuilder and added one extra slot to gondor castle (castle_gondorne.bse, castle_gondornw.bse, castle_gondorse.bse, castle_gondorsw.bse).
But now when I launch the game and start scrimish, the castle does not unpack and I lose whenever I choose Gondor.
P.S. I had to make the changes in commandset.ini and goodfactionbuildings.ini in the original game folder as well to make the worldbuilder see that new foundation.
Please let me know If I am missing something