Jump to content


Photo

CAH => Starting Army (CTD)


Best Answer Chriso87, 23 February 2020 - 10:44 AM

EDIT: I solved it! As soon as I wrote unofficial 2.02, I knew what was the Problem.

I only edited the autoresolvebody in Vanilla-File and NOT in the Version 7.0.0 (where the last entry of the autoresolvebody is located). Made the change ind the unofficial-autoresolvebody (LeaveInArmySummary) and BOOM, it worked just well.

 

----------------

 

I'm using rotwk unoffical 2.02 (8.2.0) and made the changes only in the "ini.big".

Maybe some other helpful info:

I want to have two CAH Armies. One for Elves, one for Dwarven. A buddy in me playing WOTR together.

 

Here is what I did:

 

Livingworlddefaultunits

Elven:
SpawnArmy
ScriptingName = HeroArmy5
SpawnForTemplates = PlayerElves
HeroTemplateName = CreateAHero
PlayerArmy = Elven_CreateAHeroArmy
Icon = ElfArmyIcon
Banner = BannerElves
End

Dwarven:
SpawnArmy ScriptingName = HeroArmy5
SpawnForTemplates = PlayerDwarves
HeroTemplateName = CreateAHero
PlayerArmy = Dwarven_CreateAHeroArmy
Icon = DwarfArmyIcon
Banner = BannerDwarves End
LivingWolrdbuildings

Elven:
ArmyToSpawn
PlayerArmy = Elven_CreateAHeroArmy
Icon = ElfArmyIcon
IconSize = Small
PalantirMovie = Palantir_150
BuildTime = 1 ; 3
ConstructButtonImage = CPYoungWizardAlpha // TEMP
ConstructButtonTitle = CONTROLBAR:LW_Hero_CreateAHero
ConstructButtonHelp = CONTROLBAR:LW_ToolTipBuild_CreateAHero
End
End

Dwarven:
ArmyToSpawn     
PlayerArmy = Dwarven_CreateAHeroArmy     
Icon = DwarfArmyIcon     
IconSize = Small     
PalantirMovie = Palantir_150     
BuildTime = 1 ; 3     
ConstructButtonImage = CPYoungWizardAlpha    // TEMP     
ConstructButtonTitle = CONTROLBAR:LW_Hero_CreateAHero     
ConstructButtonHelp = CONTROLBAR:LW_ToolTipBuild_CreateAHero
End
Livingworldstartingunits

Elven:
LivingWorldPlayerArmy
Name = Elven_CreateAHeroArmy
DisplayNameTag = LWA:ElvesHeroArmy
ArmyEntry
ThingTemplate = CreateAHero
Quantity = 1
End
End

Dwarven:
LivingWorldPlayerArmy     
Name = CreateAHeroArmy     
DisplayNameTag = LWA:DwarvesHeroArmy     
ArmyEntry     
ThingTemplate = CreateAHero     
Quantity = 1     
End
End
livingworldautoresolvebody

;----------- Create-A-Hero -----------

AutoResolveBody AutoResolve_CreateAHeroBody
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL1_HP Level:1
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL2_HP Level:2
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL3_HP Level:3
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL4_HP Level:4
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL5_HP Level:5
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL6_HP Level:6
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL7_HP Level:7
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL8_HP Level:8
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL9_HP Level:9
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL10_HP Level:10
    LeaveInArmySummary = Yes
End

(If just added the LeaveInArmySummary = Yes to the existing entry!)

Livingworldbuildableunits

Elven:
LivingWorldPlayerArmy
Name = Elven_CreateAHeroArmy
DisplayNameTag = LWA:Elves
ArmyEntry
ThingTemplate = CreateAHero
Quantity = 1
End
End

Dwarven:
LivingWorldPlayerArmy
Name = Dwarven_CreateAHeroArmy
DisplayNameTag = LWA:Dwarves
ArmyEntry
ThingTemplate =
CreateAHero Quantity = 1
End
End
Go to the full post


  • Please log in to reply
3 replies to this topic

#1 Chriso87

Chriso87
  • New Members
  • 4 posts

Posted 05 November 2016 - 07:04 PM

Hi @ All
 
Playing RotWK very often (war of the ring). I wanted to play with my custom hero
as an "Ring-Hero" (starting army)...hope you'll understand what i mean :-)
 
I changed following code:
 
File: livingworlddefaultarmies
 
SpawnArmy
ScriptingName = HeroArmy5
SpawnForTemplates = PlayerDwarves
HeroTemplateName = CreateAHero
PlayerArmy = Dwarven_CreateAHeroArmy
Icon = DwarfArmyIcon
Banner = BannerDwarves
End
 
File: livingworldstartingunits
 
LivingWorldPlayerArmy
Name = CreateAHeroArmy
DisplayNameTag = LWA:DwarvesHeroArmy
ArmyEntry
ThingTemplate = CreateAHero
Quantity = 1
End
End
 
 
Moving, Attacking and winning is working very well.
But if I loose a battle (manual and autoresolve) game crashes, as soon as I click
on the hero...
 
Any Ideas?!
 
Thanks!
 
BR
Chriso


#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 16 November 2016 - 10:46 AM

How so manual? You mean realtime battle? as in goes into the game mode?


Ridder Geel

#3 Chriso87

Chriso87
  • New Members
  • 4 posts

Posted 19 February 2020 - 10:22 PM

How so manual? You mean realtime battle? as in goes into the game mode?

 

Funny story...after i've posted it i solved it somehow. But it was almost 4 years ago :D

 

Startet to play ROTWK again...Made my CAH a starting army in WOTR. But again I'm facing the autoresolve issue. After my CAH Army looses in autoresolve game crashes after the battle (whn clicking on the CAH-army)



#4 Chriso87

Chriso87
  • New Members
  • 4 posts

Posted 23 February 2020 - 10:44 AM   Best Answer

EDIT: I solved it! As soon as I wrote unofficial 2.02, I knew what was the Problem.

I only edited the autoresolvebody in Vanilla-File and NOT in the Version 7.0.0 (where the last entry of the autoresolvebody is located). Made the change ind the unofficial-autoresolvebody (LeaveInArmySummary) and BOOM, it worked just well.

 

----------------

 

I'm using rotwk unoffical 2.02 (8.2.0) and made the changes only in the "ini.big".

Maybe some other helpful info:

I want to have two CAH Armies. One for Elves, one for Dwarven. A buddy in me playing WOTR together.

 

Here is what I did:

 

Livingworlddefaultunits

Elven:
SpawnArmy
ScriptingName = HeroArmy5
SpawnForTemplates = PlayerElves
HeroTemplateName = CreateAHero
PlayerArmy = Elven_CreateAHeroArmy
Icon = ElfArmyIcon
Banner = BannerElves
End

Dwarven:
SpawnArmy ScriptingName = HeroArmy5
SpawnForTemplates = PlayerDwarves
HeroTemplateName = CreateAHero
PlayerArmy = Dwarven_CreateAHeroArmy
Icon = DwarfArmyIcon
Banner = BannerDwarves End
LivingWolrdbuildings

Elven:
ArmyToSpawn
PlayerArmy = Elven_CreateAHeroArmy
Icon = ElfArmyIcon
IconSize = Small
PalantirMovie = Palantir_150
BuildTime = 1 ; 3
ConstructButtonImage = CPYoungWizardAlpha // TEMP
ConstructButtonTitle = CONTROLBAR:LW_Hero_CreateAHero
ConstructButtonHelp = CONTROLBAR:LW_ToolTipBuild_CreateAHero
End
End

Dwarven:
ArmyToSpawn     
PlayerArmy = Dwarven_CreateAHeroArmy     
Icon = DwarfArmyIcon     
IconSize = Small     
PalantirMovie = Palantir_150     
BuildTime = 1 ; 3     
ConstructButtonImage = CPYoungWizardAlpha    // TEMP     
ConstructButtonTitle = CONTROLBAR:LW_Hero_CreateAHero     
ConstructButtonHelp = CONTROLBAR:LW_ToolTipBuild_CreateAHero
End
Livingworldstartingunits

Elven:
LivingWorldPlayerArmy
Name = Elven_CreateAHeroArmy
DisplayNameTag = LWA:ElvesHeroArmy
ArmyEntry
ThingTemplate = CreateAHero
Quantity = 1
End
End

Dwarven:
LivingWorldPlayerArmy     
Name = CreateAHeroArmy     
DisplayNameTag = LWA:DwarvesHeroArmy     
ArmyEntry     
ThingTemplate = CreateAHero     
Quantity = 1     
End
End
livingworldautoresolvebody

;----------- Create-A-Hero -----------

AutoResolveBody AutoResolve_CreateAHeroBody
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL1_HP Level:1
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL2_HP Level:2
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL3_HP Level:3
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL4_HP Level:4
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL5_HP Level:5
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL6_HP Level:6
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL7_HP Level:7
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL8_HP Level:8
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL9_HP Level:9
    HitpointsAtLevel = Hitpoints:CREATEAHERO_LVL10_HP Level:10
    LeaveInArmySummary = Yes
End

(If just added the LeaveInArmySummary = Yes to the existing entry!)

Livingworldbuildableunits

Elven:
LivingWorldPlayerArmy
Name = Elven_CreateAHeroArmy
DisplayNameTag = LWA:Elves
ArmyEntry
ThingTemplate = CreateAHero
Quantity = 1
End
End

Dwarven:
LivingWorldPlayerArmy
Name = Dwarven_CreateAHeroArmy
DisplayNameTag = LWA:Dwarves
ArmyEntry
ThingTemplate =
CreateAHero Quantity = 1
End
End

Edited by Chriso87, 26 February 2020 - 03:13 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users