22. Jul 2017, 16:41 Hallo Gast.
Willkommen Gast. Bitte einloggen oder registrieren. Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge


Select Boards:
 
Language:
 


Autor Thema: map.ini  (Gelesen 1409 mal)

Offline lord_ellessar

  • Elronds Berater
  • **
  • Beiträge: 329
  • you know nothing j... sorry wrong place
map.ini
« am: 9. Mär 2016, 11:41 »
i would like to know how, with the map ini i can change the reinforcements of the man of west CaH to units of Arnor? :)

Offline FG15

  • Administrator
  • Bezwinger der Toten
  • *****
  • Beiträge: 3.753
Re: map.ini
« Antwort #1 am: 9. Mär 2016, 12:02 »
Yes, look for the OCLs, and change it there.
Else you can also create complete new OCLs and change the entry in the summon abilitiy of the CaH.

Offline lord_ellessar

  • Elronds Berater
  • **
  • Beiträge: 329
  • you know nothing j... sorry wrong place
Re: map.ini
« Antwort #2 am: 9. Mär 2016, 12:11 »
but it doesn't include to change the data.big to do that? :/

Offline FG15

  • Administrator
  • Bezwinger der Toten
  • *****
  • Beiträge: 3.753
Re: map.ini
« Antwort #3 am: 9. Mär 2016, 13:01 »
No, you can do it by map.ini

ObjectCreationList OCL_CaHGoodSummon1
CreateObject
ObjectNames = GondorFighter_Summoned
Count = 5
FadeIn = Yes
FadeTime = 8000
    MinLifetime    = 30000
    MaxLifetime    = 30000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
        DispositionIntensity      = 100
DispositionAngle = 72 ;SpawnAround uses this as the arc between guys
                Offset                          = X:0 Y:0 Z:0
                ForbiddenUpgrades      = Upgrade_Heerführer
End
CreateObject
ObjectNames = GondorFighter_Summoned
Count = 5
FadeIn = Yes
FadeTime = 8000
    MinLifetime    = 60000
    MaxLifetime    = 60000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
        DispositionIntensity      = 100
DispositionAngle = 72 ;SpawnAround uses this as the arc between guys
                Offset                          = X:0 Y:0 Z:0
                ForbiddenUpgrades      = Upgrade_ObjectLevel4
                RequiredUpgrades = Upgrade_Heerführer
End
End

Object CreateAHero
ReplaceModule ModuleTag_OCLSpecialPowerHotWSummonAllies_Level1
Behavior = OCLSpecialPower ModuleTag_OCLSpecialPowerHotWSummonAllies_Level1New
SpecialPowerTemplate = SpecialAbilityCreateAHeroHotWSummonAllies_Level1
OCL = OCL_CaHGoodSummon1
TriggerFX = FX_SummonFog
CreateLocation = CREATE_AT_LOCATION
StartsPaused = Yes
SetModelCondition = ModelConditionState:USER_1
SetModelConditionTime = 8.1
End
End
End
This is the code I used, for changing the summon on a map to something different.

Offline lord_ellessar

  • Elronds Berater
  • **
  • Beiträge: 329
  • you know nothing j... sorry wrong place
Re: map.ini
« Antwort #4 am: 9. Mär 2016, 13:15 »
Thanks :)

Offline lord_ellessar

  • Elronds Berater
  • **
  • Beiträge: 329
  • you know nothing j... sorry wrong place
Re: map.ini
« Antwort #5 am: 9. Mär 2016, 13:28 »
It doesn't work :/

this is the code i've putted

PlayerAIType MenAI
    LibraryMap = "Libraries\ki arnor\ki arnor.map"
End

PlayerAIType MenSkirmishAI
    LibraryMap = "Libraries\ki arnor\ki arnor.map"
End

PlayerTemplate FactionMen
    StartingUnit1               = ArnorFighterHorde
    StartingUnitOffset1         = X:30 Y:200 Z:0
    StartingUnit0               = ArnorFighterHorde
    StartingUnitOffset0         = X:1 Y:130 Z:0
    SpellBook                   = GoodSpellBook
    SpellBookMp                 = ArnorSpellBook
    PurchaseScienceCommandSet   = GoodSpellStoreCommandSet
    PurchaseScienceCommandSetMP = ArnorSpellStoreCommandSet
    IntrinsicSciences           = SCIENCE_GOOD
    IntrinsicSciencesMP         = SCIENCE_ARNOR
    DisplayName                 = INI:FactionArnor
    MultiSelectionPortrait      = UPArnor_Army
    InitialUpgrades             = Upgrade_MenFaction Upgrade_AllFactionUpgrade Upgrade_ArnorFaction
    BuildableHeroesMP           = CreateAHero ArnorCaptainStealthless_mod ArnorAraphant ArnorAranarthDunedain GondorArvedui GondorGandalf_mod_forFornost ImladrisGlorfindel_forArnor LothlorienCirdan
    BuildableRingHeroesMP       = RingHeroDummy
End

Object GondorCastleUpgrade
    ReplaceModule ModuleTag_MenTreb
      Behavior = ObjectCreationUpgrade ModuleTag_MenTrebforFornost
        TriggeredBy               = Upgrade_HasWallTrebuchet
        ConflictsWith             = Upgrade_PosternGate Upgrade_OpenGarrison
        Delay                     = 0.0       
        RemoveUpgrade             = Upgrade_WallTrebuchetButtonEnable
        ThingToSpawn              = ArnorTrebuchetWall
        Offset                    = X:50.0 Y:0.0 Z:68
        FadeInTime                = 1000
      End
    End
End

Object GondorForge

    CommandSet              = ArnorForgeCommandSet
 
  ReplaceModule ModueTag_EconomyLevel2CommandSet_Produktionserhöhung
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel2CommandSet_Produktionserhöhung_Arnor
        TriggeredBy           = Upgrade_EdainEconomyProduktionserhöhung
        ConflictsWith         = Upgrade_EdainEconomyVerbesserteProduktionserhöhung Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbessertesVorratslager   
        CommandSet            = ArnorForgeCommandSetLevel2_Produktionserhöhung
    End
  End   
  ReplaceModule ModueTag_EconomyLevel2CommandSet_Verteidigungsmaßnahmen
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel2CommandSet_Verteidigungsmaßnahmen_Arnor
        TriggeredBy           = Upgrade_EdainEconomyVerteidigungsmaßnahmen
        ConflictsWith         = Upgrade_EdainEconomyVerbesserteProduktionserhöhung Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbessertesVorratslager   
        CommandSet            = ArnorForgeCommandSetLevel2_Verteidigungsmaßnahmen
    End
  End
  ReplaceModule ModueTag_EconomyLevel2CommandSet_Vorratslager
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel2CommandSet_Vorratslager_Arnor
        TriggeredBy           = Upgrade_EdainEconomyVorratslager
        ConflictsWith         = Upgrade_EdainEconomyVerbesserteProduktionserhöhung Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbessertesVorratslager   
        CommandSet            = ArnorForgeCommandSetLevel2_Vorratslager
    End
  End
  ReplaceModule ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbesserteProduktionserhöhung
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbesserteProduktionserhöhung_Arnor
        TriggeredBy           = Upgrade_EdainEconomyProduktionserhöhung Upgrade_EdainEconomyVerbesserteProduktionserhöhung   
        RequiresAllTriggers   = Yes
        CommandSet            = ArnorForgeCommandSetLevel3_Produktionserhöhung_VerbesserteProduktionserhöhung
    End
  End
  ReplaceModule ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbesserteVerteidigungsmaßnahmen
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbesserteVerteidigungsmaßnahmen_Arnor
        TriggeredBy           = Upgrade_EdainEconomyProduktionserhöhung Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen
        RequiresAllTriggers   = Yes
        CommandSet            = ArnorForgeCommandSetLevel3_Produktionserhöhung_VerbesserteVerteidigungsmaßnahmen
    End
  End
  ReplaceModule ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbessertesVorratslager
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbessertesVorratslager_Arnor
        TriggeredBy           = Upgrade_EdainEconomyProduktionserhöhung Upgrade_EdainEconomyVerbessertesVorratslager
        RequiresAllTriggers   = Yes
        CommandSet            = ArnorForgeCommandSetLevel3_Produktionserhöhung_VerbessertesVorratslager
    End
  End
  ReplaceModule ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbesserteProduktionserhöhung
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbesserteProduktionserhöhung_Arnor
        TriggeredBy           = Upgrade_EdainEconomyVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbesserteProduktionserhöhung
        RequiresAllTriggers   = Yes
        CommandSet            = ArnorForgeCommandSetLevel3_Verteidigungsmaßnahmen_VerbesserteProduktionserhöhung
    End
  End
  ReplaceModule ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbesserteVerteidigungsmaßnahmen
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbesserteVerteidigungsmaßnahmen_Arnor
        TriggeredBy           = Upgrade_EdainEconomyVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen
        RequiresAllTriggers   = Yes
        CommandSet            = ArnorForgeCommandSetLevel3_Verteidigungsmaßnahmen_VerbesserteVerteidigungsmaßnahmen
    End
  End
  ReplaceModule ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbessertesVorratslager
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbessertesVorratslager_Arnor
        TriggeredBy           = Upgrade_EdainEconomyVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbessertesVorratslager
        RequiresAllTriggers   = Yes
        CommandSet            = ArnorForgeCommandSetLevel3_Verteidigungsmaßnahmen_VerbessertesVorratslager
    End
  End
  ReplaceModule ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbesserteProduktionserhöhung
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbesserteProduktionserhöhung_Arnor
        TriggeredBy           = Upgrade_EdainEconomyVorratslager Upgrade_EdainEconomyVerbesserteProduktionserhöhung
        RequiresAllTriggers   = Yes
        CommandSet            = ArnorForgeCommandSetLevel3_Vorratslager_VerbesserteProduktionserhöhung
    End
  End
  ReplaceModule ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbesserteVerteidigungsmaßnahmen
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbesserteVerteidigungsmaßnahmen_Arnor
        TriggeredBy           = Upgrade_EdainEconomyVorratslager Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen
        RequiresAllTriggers   = Yes
        CommandSet            = ArnorForgeCommandSetLevel3_Vorratslager_VerbesserteVerteidigungsmaßnahmen
    End
  End
  ReplaceModule ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbessertesVorratslager
    Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbessertesVorratslager_Arnor
        TriggeredBy           = Upgrade_EdainEconomyVorratslager Upgrade_EdainEconomyVerbessertesVorratslager
        RequiresAllTriggers   = Yes
        CommandSet            = ArnorForgeCommandSetLevel3_Vorratslager_VerbessertesVorratslager
    End
  End
End


Object GondorBuildingFoundation

 SelectPortrait = BRArnorFoundation

  CommandSet = ArnorGondorFoundationCommandSet

    ReplaceModule ModuleTag_Draw2
      Draw = W3DScriptedModelDraw ModuleTag_Draw2_Arnor
        DefaultModelConditionState
            Model = OBBFoundationX
        End
        ModelConditionState = WORLD_BUILDER
            Model = GBSizeTemplate
        End
      End
    End
    ReplaceModule ModuleTag_Draw
      Draw = W3DFloorDraw ModuleTag_Draw_Arnor
        ModelName = ABFoundationX
      End
    End
End

Object GondorBaseDefenceFoundation

 SelectPortrait = BRArnorFoundation

    ReplaceModule ModuleTag_Draw2
      Draw = W3DScriptedModelDraw ModuleTag_Draw2_Arnor
        DefaultModelConditionState
            Model = OBBFoundationX
        End
        ModelConditionState = WORLD_BUILDER
            Model = GBBtlTwrM
        End
      End
    End
    ReplaceModule ModuleTag_Draw
      Draw = W3DFloorDraw ModuleTag_Draw_Arnor
        ModelName = ABFoundationM
      End
    End
End

Object GondorCastleBaseKeep
  CommandSet = ArnorGondorCastleBaseKeepCommandSet

    ReplaceModule MakeTheFreeTreb2
       Behavior = ObjectCreationUpgrade MakeTheFreeTreb2_Arnor
          TriggeredBy             = Upgrade_PurchaseUpgradeMalbeth
          Delay                   = 3000.0
          RemoveUpgrade           = Upgrade_WallTrebuchetButtonEnable
          ThingToSpawn            = ArnorMalbeth
          Offset                  = X:28 Y:0.8 Z:35
          FadeInTime              = 500
       End
    End
End

Object GondorStable
    CommandSet = GondorStablesCommandSet_forFornost

    ReplaceModule ModueTag_StableLevel2CommandSet
      Behavior = CommandSetUpgrade ModueTag_StableLevel2CommandSet_Arnor
        TriggeredBy       = Upgrade_GondorStructureLevel2
        ConflictsWith     = Upgrade_GondorStructureLevel3
        CommandSet        = GondorStablesCommandSetLevel2_forFornost
      End   
    End

    ReplaceModule ModueTag_StableLevel3CommandSet
      Behavior = CommandSetUpgrade ModueTag_StableLevel3CommandSet_Arnor
        TriggeredBy       = Upgrade_GondorStructureLevel3
        CommandSet        = GondorStablesCommandSetLevel3_forFornost
      End 
    End
End

Object GondorWorkshop
    CommandSet = GondorWorkshopCommandSet_forFornost

    ReplaceModule ModuleTag_GondorWorkshopLevel2CommandSet
      Behavior = CommandSetUpgrade ModueTag_GondorWorkshopLevel2CommandSet_Arnor
        TriggeredBy          = Upgrade_GondorStructureLevel2
        ConflictsWith        = Upgrade_GondorStructureLevel3
        CommandSet           = GondorWorkshopCommandSetLevel2_forFornost
      End   
    End

    ReplaceModule ModuleTag_GondorWorkshopLevel3CommandSet
      Behavior = CommandSetUpgrade ModueTag_GondorWorkshopLevel3CommandSet_Arnor
        TriggeredBy          = Upgrade_GondorStructureLevel3
        CommandSet           = GondorWorkshopCommandSetLevel3_forFornost
      End 
    End
End

Object GondorRangerTents
    Description         = OBJECT:ArnorRangerTentsDescription
    ReplaceModule ModuleTag_SpawnFighters
      Behavior = SpawnBehavior ModuleTag_SpawnFighters_Neu
        TriggeredBy          = Upgrade_StructureLevel1
        ConflictsWith        = Upgrade_ObjectUnderAIControl
        SpawnNumber          = 3
        InitialBurst         = 3
        SpawnTemplateName    = DunedainRangerMod_SlavedCreep
        SpawnReplaceDelay    = 30000
        CanReclaimOrphans    = Yes
      End
    End
    CommandSet = ArnorRangerTentsCommandSet
End
Object SnowTrollLairSnow
ReplaceModule ModuleTag_Spawn
    Behavior = SpawnBehavior ModuleTag_Spawnneu
        SpawnNumber            = 3
        InitialBurst            = 3
        SpawnTemplateName        = SnowTroll_Slaved
        SpawnReplaceDelay        = 100000
        CanReclaimOrphans        = Yes
    End
End
End

Object DireWolfLair
ReplaceModule ModuleTag_Spawn
    Behavior = SpawnBehavior ModuleTag_Spawnneu
        SpawnNumber            = 2
        InitialBurst        = 2
        SpawnTemplateName    = AngmarWeißerWarg_Slaved
        SpawnReplaceDelay    = 30000
        CanReclaimOrphans    = Yes
    End
End
End

ObjectCreationList OCL_CaHGoodSummon1
CreateObject
ObjectNames = GondorFighter_Summoned
Count = 5
FadeIn = Yes
FadeTime = 8000
    MinLifetime    = 30000
    MaxLifetime    = 30000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
        DispositionIntensity      = 100
DispositionAngle = 72 ;SpawnAround uses this as the arc between guys
                Offset                          = X:0 Y:0 Z:0
                ForbiddenUpgrades      = Upgrade_Heerführer
End
CreateObject
ObjectNames = GondorFighter_Summoned
Count = 5
FadeIn = Yes
FadeTime = 8000
    MinLifetime    = 60000
    MaxLifetime    = 60000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
        DispositionIntensity      = 100
DispositionAngle = 72 ;SpawnAround uses this as the arc between guys
                Offset                          = X:0 Y:0 Z:0
                ForbiddenUpgrades      = Upgrade_ObjectLevel4
                RequiredUpgrades = Upgrade_Heerführer
End
End

Object CreateAHero
ReplaceModule ModuleTag_OCLSpecialPowerHotWSummonAllies_Level1
Behavior = OCLSpecialPower ModuleTag_OCLSpecialPowerHotWSummonAllies_Level1New
SpecialPowerTemplate = SpecialAbilityCreateAHeroHotWSummonAllies_Level1
OCL = OCL_CaHGoodSummon1
TriggerFX = FX_SummonFog
CreateLocation = CREATE_AT_LOCATION
StartsPaused = Yes
SetModelCondition = ModelConditionState:USER_1
SetModelConditionTime = 8.1
End
End

and this is the message :

« Letzte Änderung: 9. Mär 2016, 13:36 von lord_ellessar »

Offline FG15

  • Administrator
  • Bezwinger der Toten
  • *****
  • Beiträge: 3.753
Re: map.ini
« Antwort #6 am: 9. Mär 2016, 13:56 »
Look at the error message ;)

It seems that I created the FX_SummonFog just for this map. The original FX is FX_DunedainSummon. If you replace it, it should work.

Also you should change the code in the OCL, because I just copied my code, which does something completly diferent.

Offline lord_ellessar

  • Elronds Berater
  • **
  • Beiträge: 329
  • you know nothing j... sorry wrong place
Re: map.ini
« Antwort #7 am: 9. Mär 2016, 14:39 »
okay thanks a lot :)

Offline Thorin King under the Mountain

  • Bilbos Festgast
  • *
  • Beiträge: 9
  • Will you follow me, one last time?
Re: map.ini
« Antwort #8 am: 9. Mär 2016, 16:55 »
Did you copy the code from the arnorforge or why does the "l" miss at: Replace Module ModuleTag_Economy....??  [uglybunti]

Offline lord_ellessar

  • Elronds Berater
  • **
  • Beiträge: 329
  • you know nothing j... sorry wrong place
Re: map.ini
« Antwort #9 am: 16. Mär 2016, 20:31 »
I would like to make that the power taint stay the whole skirmish, what code have I to do :)

Offline lord_ellessar

  • Elronds Berater
  • **
  • Beiträge: 329
  • you know nothing j... sorry wrong place
Re: map.ini
« Antwort #10 am: 17. Mär 2016, 02:36 »
I would also like to how to enlarge the radius effect  of devastation :)