Jump to content


Photo

adding hero in game.


  • Please log in to reply
23 replies to this topic

#1 wanchope

wanchope
  • Members
  • 9 posts

Posted 27 January 2018 - 07:18 PM

hello, I wanted to add a hero to the game; using the tutorial on the link.  but I could not succeed because my english is not very well, and i found the ''mod command'' method complicated. is there any other way to add units in game? i just wanna make changes in main folders of the game for accomplish that.
 
 


#2 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 28 January 2018 - 08:15 PM

I can help you to add new heroes or units without new textures
Write more concrete about what you want.


#3 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 27 February 2018 - 04:13 PM

if you can help with this i try to swap commandset and it work but i clude not upgrade them btw i am talking about pach 1.09

 

Command_ConstructRohanElvenWarriorHorde ; Command_ConstructInnGondorRangerHorde  ; Dunedain Ranger     (to be ste at ElvenBarracks )

 

CommandSet RohanElvenWarriorHordeCommandSet
1 = Command_ToggleStance
2 = Command_ToggleElvenWarriorWeapon
3 = Command_PurchaseUpgradeGondorForgedBlades                                          (and to get Elven Upgrade)
4 = Command_PurchaseUpgradeGondorFireArrows
5 = Command_PurchaseUpgradeGondorHeavyArmor
6 = Command_PurchaseUpgradeGondorBasicTraining
12 = Command_CaptureBuilding
13 = Command_AttackMove
14 = Command_Stop
End
 
and 1 more question can elite untits form rotwk be copy to bfme 2?

Bad_K


#4 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 27 February 2018 - 06:10 PM

Hi Bad K

You cant upgrade your ElvenWarrior horde?
I dont know about 1.09 but original ROTWK commandset are:

 

CommandSet RohanElvenWarriorHordeCommandSet
1 = Command_ToggleStance
2 = Command_ToggleElvenWarriorWeapon
3 = Command_PurchaseUpgradeRohanForgedBladesForElves
4 = Command_PurchaseUpgradeRohanHeavyArmorForElves
5 = Command_PurchaseUpgradeRohanFireArrows
6 = Command_PurchaseUpgradeRohanBasicTraining
13 = Command_AttackMove
14 = Command_Stop
16  = Command_SetStanceBattle
17  = Command_SetStanceAggressive
18  = Command_SetStanceHoldGround
End
 
And you need to pay this upgrades on forge first (in forge you can also need to have UpgradeRohanForgedBladesForElves or UpgradeGondorForgedBlades)

Yes you can add this units to bfme2 but you need to extract models and put them into bfme2. I not good at this but if you have extracted models or know where they are i can try to help.

 

Edited by Slava Shadrinov, 27 February 2018 - 06:10 PM.


#5 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 27 February 2018 - 06:28 PM

I understand that code and it works but when I try to do the same thing for elfs upgrades on same units they don't want to upgrade

 

i want this to work and it work

 
CommandSet ERElvenBarracksCommandSet
  1 = Command_ConstructElvenLorienWarriorHorde
  2 = Command_ConstructElvenLorienArcherHorde
  3 = Command_ConstructElvenMithlondSentryHorde
  4 = Command_ConstructElvenMirkwoodArcherHorde
  5 = Command_ConstructRohanElvenWarriorHorde ; Command_ConstructInnGondorRangerHorde  ; Dunedain Ranger
  6 = Command_PurchaseUpgradeElvenBarracksLevel2
  7 = Command_Sell
End
 
but this also works but in the game its only shown as icon and i can't press it to upgrade 
 
CommandSet RohanElvenWarriorHordeCommandSet
1 = Command_ToggleStance
2 = Command_ToggleElvenWarriorWeapon
3 = Command_PurchaseUpgradeElvenForgedBlades
4 = Command_PurchaseUpgradeElvenHeavyArmor
5 = Command_PurchaseUpgradeElvenSilverthornArrows
6 = Command_PurchaseUpgradeElvenBasicTrainingForMirkwoodArcherHorde
12 = Command_CaptureBuilding
13 = Command_AttackMove
14 = Command_Stop
End
 
ty for replay

Edited by Bad K, 27 February 2018 - 06:29 PM.

Bad_K


#6 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 27 February 2018 - 07:03 PM

https://imgur.com/a/dJawv


Edited by Bad K, 27 February 2018 - 07:04 PM.

Bad_K


#7 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 27 February 2018 - 10:06 PM

In EregionForgecommandset you have something like that?
 

CommandSet EregionForgeCommandSet
1 = Command_PurchaseTechnologyElvenBasicTraining
2 = Command_PurchaseTechnologyElvenHeavyArmor
3 = Command_PurchaseTechnologyElvenForgedBlades
4 = Command_PurchaseTechnologyElvenSilverthornArrows
5 = Command_PurchaseUpgradeEregionForgeLevel2
6 = Command_Sell
End
 
CommandSet EregionForgeCommandSetLevel2
1 = Command_PurchaseTechnologyElvenBasicTraining
2 = Command_PurchaseTechnologyElvenHeavyArmor
3 = Command_PurchaseTechnologyElvenForgedBlades
4 = Command_PurchaseTechnologyElvenSilverthornArrows
5 = Command_PurchaseUpgradeEregionForgeLevel3
6 = Command_Sell
End
 
CommandSet EregionForgeCommandSetLevel3
1 = Command_PurchaseTechnologyElvenBasicTraining
2 = Command_PurchaseTechnologyElvenHeavyArmor
3 = Command_PurchaseTechnologyElvenForgedBlades
4 = Command_PurchaseTechnologyElvenSilverthornArrows
6 = Command_Sell
End

And open unit ini file

In original ROTWK they can be found on obsolete\obsolete.ini. They name was RohanElvenWarrior

And in Engineering parameters they have other upgrades:

; Fire arrow upgrade
Behavior = WeaponSetUpgrade ModuleTag_WeaponSetUpgradeTag
TriggeredBy = Upgrade_RohanFireArrows
CustomAnimAndDuration   = AnimState:USER_4 AnimTime:0 TriggerTime:0 ;set flag forever
End
 
; Switch arrows being displayed.
Behavior = SubObjectsUpgrade ModuleTag_FireArrowSwapUpgrade
TriggeredBy = Upgrade_RohanFireArrows
ShowSubObjects = FireArowTip
End
 
Behavior = WeaponSetUpgrade WeaponSetUpgradeModuleTag
TriggeredBy = Upgrade_RohanForgedBladesForElves
CustomAnimAndDuration   = AnimState:USER_5 AnimTime:0 TriggerTime:0 ;set flag forever
End
 
Behavior = SubObjectsUpgrade Armor_Upgrade
TriggeredBy = Upgrade_RohanHeavyArmorForElves
UpgradeTexture = RUElvnWorrior.tga 0 RUElvnWorriorHA.tga
UpgradeTexture = RUElvnWorrior_L.tga 0 RUElvnWorriorHA.tga
RecolorHouse = Yes
End
 
Behavior = ArmorUpgrade ArmorUpgradeModuleTag
TriggeredBy = Upgrade_RohanHeavyArmorForElves
End
 
Behavior = SubObjectsUpgrade ForgedBlades_Upgrade
TriggeredBy = Upgrade_RohanForgedBladesForElves
ShowSubObjects = Forged_Blade
End
 
; Fire arrow upgrade
Behavior = WeaponSetUpgrade ModuleTag_14
TriggeredBy = Upgrade_RohanFireArrows
 
So if you have upgrades like me you need to change them
And you can also check CommandSet = RohanElvenWarriorCommandSet this command set need to be same as you commandset

 

Edited by Slava Shadrinov, 27 February 2018 - 10:27 PM.


#8 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 28 February 2018 - 01:31 AM

man you are the best ty 1000x  :thumbsupxd:

now i only need to find armor and stuf to glow when thy are upgred to elven 


Edited by Bad K, 28 February 2018 - 01:33 AM.

Bad_K


#9 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 28 February 2018 - 02:14 AM

; Fire arrow upgrade
Behavior = WeaponSetUpgrade ModuleTag_WeaponSetUpgradeTag
TriggeredBy = Upgrade_ElvenSilverthornArrows 
CustomAnimAndDuration   = AnimState:USER_4 AnimTime:0 TriggerTime:0 ;set flag forever 
 
all done but i cant find  AnimState:USER (FOR  SilverthornArrows to get thet animation)
 
 

Edited by Bad K, 28 February 2018 - 02:19 AM.

Bad_K


#10 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 28 February 2018 - 01:25 PM

Hi
 

Ok im try and my Elven warriors change his armor to golden if upgrade elven armor, what do you mean about "armor and stuf to glow"?

I change this:
Behavior = SubObjectsUpgrade Armor_Upgrade
TriggeredBy = Upgrade_ElvenHeavyArmor;Upgrade_RohanHeavyArmorForElves
UpgradeTexture = RUElvnWorrior.tga 0 RUElvnWorriorHA.tga
UpgradeTexture = RUElvnWorrior_L.tga 0 RUElvnWorriorHA.tga
RecolorHouse = Yes
End
 
Behavior = ArmorUpgrade ArmorUpgradeModuleTag
TriggeredBy = Upgrade_ElvenHeavyArmor;Upgrade_RohanHeavyArmorForElves
End


https://imgur.com/a/WQAhr

About Arrows im try this some time later)
 

Edited by Slava Shadrinov, 28 February 2018 - 02:17 PM.


#11 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 28 February 2018 - 04:12 PM

sry about theti i have forgotten to tell you its working because when i wos testing it wos in very low quality in game settings so i can load faster thets why i dident see the change.  only arrows are problem. 

 

and i eddit this so now thy have psychic effective

 

 

ProjectileNugget                    ; Default arrow

    ProjectileTemplateName    = GoodFactionArrow
    WarheadTemplateName       = ElvenBowWarhead
    ForbiddenUpgradeNames     = Upgrade_ElvenSilverthornArrows ; ; Upgrade_GondorFireArrows ; ;
End
ProjectileNugget                    ; Fire arrow available from fire arrow upgrade
    ProjectileTemplateName    = GoodFactionFireArrow
    WarheadTemplateName       = ElvenBowSilverthorneWarhead
    RequiredUpgradeNames      = Upgrade_ElvenSilverthornArrows  ;; Upgrade_GondorFireArrows ; ;
  End
End

 

 

 

I have 1 new idea for somthing ohter i will try to do after this is finish. is it posible to make when dwarf pick a ring they make  Tom Bombadil as a ring hero ? 


Edited by Bad K, 28 February 2018 - 06:06 PM.

Bad_K


#12 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 28 February 2018 - 07:35 PM

Hi again

So you can change this:
 

WeaponSet
Conditions = None 
Weapon = PRIMARY    LorienElvenBow ;RohanElvenBow
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
;bow upgrade
WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY LorienElvenBow ; RohanElvenBowFireArrow
AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
 
As you see i change Weapon = to LorienElvenBow

Or another way you can change this in RohanElvenBow without changing weapon:

Find in Weapons.ini: Weapon RohanElvenBow and change this piece of code:
 
ProjectileNugget                    ; Fire arrow available from fire arrow upgrade
    ProjectileTemplateName    = MirkwoodArcherSilverthornProjectile ;GoodFactionFireArrow               
    WarheadTemplateName       = LorienBowSilverthorneWarhead  ;ElvenBowSilverthorneWarhead     
    RequiredUpgradeNames      = Upgrade_ElvenSilverthornArrows
  End
 
So arrows will be fired Silverthorne projectiles but fire effect on arrows stay and i do not know how to change them to blue color but you can remove fire effect while you upgrade arrows
 
Behavior = SubObjectsUpgrade ModuleTag_FireArrowSwapUpgrade
TriggeredBy = Upgrade_ElvenSilverthornArrows;Upgrade_RohanFireArrows
;ShowSubObjects = FireArowTip                                                                          ;;;;;;Add ";" before Show!
End
 

Try this, for me is look good)

About Bombadil with ring, its possible


Edited by Slava Shadrinov, 28 February 2018 - 07:39 PM.


#13 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 28 February 2018 - 07:56 PM

ty so much for your time! last thing i did and its like you say i will try the frst code you told me. one more time ty :thumbsupxd:


Bad_K


#14 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 28 February 2018 - 09:04 PM

I'm glad that I helped you and i think my english is understood for you).

First find Bombandil

goodfaction\generic\tombombadil.ini

And after Engineering parameters for example after health parameters put this piece of code like that:

 

Body = ActiveBody ModuleTag_02
CheerRadius   = EMOTION_CHEER_RADIUS
MaxHealth         = TOM_BOMBADIL_HEALTH
;RecoveryTime     = TOM_BOMBADIL_HEALTH_RECOVERY_TIME
End
 
; Player no longer has the ring hero upgrade when the hero is created.
Behavior = RemoveUpgradeUpgrade ModuleTag_RemoveRing
TriggeredBy = Upgrade_DwarfFaction ;Upgrade_MenFaction Upgrade_ElfFaction //the names of the faction upgrades from the factions that can make this ring hero!
UpgradeToRemove = Upgrade_RingHero Upgrade_FortressRingHero
RemoveFromAllPlayerObjects = Yes
SuppressEvaEventForRemoval = Yes; this is to avoid the Eva event about 'Gollum stole our ring'
; when we are actually losing the upgrade because we built the ring heroine
End
 
; Spawn a dropped ring object.
Behavior = CreateObjectDie ModuleTag_DropTheRing
CreationList = OCL_TheOneRing
End

Next find data\ini\playertemplate.ini and FactionDwarves and find BuildableRingHeroesMP = ElvenGaladriel_RingHero , and change this to TomBombadil  (or like that BuildableRingHeroesMP = TomBombadil ;ElvenGaladriel_RingHero)

For testing you can do some cool thing:
 
In FactionDwarves find StartingUnit0

And change to: StartingUnit0 = TheDroppedRing;DwarvenPorter this means near you stronghold appear Ring while you start game and you can get them instantly with you second porter and put inside stronghold after you can create Bombadil for free and test them.
Describe how it works and after i can help you with adding cost, time to create or etc.
Enjoy!

Edited by Slava Shadrinov, 28 February 2018 - 09:07 PM.


#15 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 28 February 2018 - 09:45 PM

thets all i need it to do to have tom? i hope abilitys will be ez like this 


Bad_K


#16 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 28 February 2018 - 10:00 PM

Yes this Bombandil works for me and have ability like Gandalf's first power)
I think he cant regenerate his health after out of combat, cost zero gold and create after few seconds but this can be fixed.
Test him and describe how it work.


Edited by Slava Shadrinov, 28 February 2018 - 10:02 PM.


#17 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 28 February 2018 - 10:07 PM

i will test heam and i will think about abilities to add

:smile2ap:


Bad_K


#18 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 01 March 2018 - 01:59 AM

1 skill is oke

2.Elven Wood (not 2 long cd it shood be max 20 sec)  becous he is by lore erth 

3.Summon (normal cd) Ent Allies he can sing to the trees 

4.Cloud ( litle shorter then normal  ) Break becous he can control all the middle earth 

 

all around he is the first beaning and i dont want to make heam to op like souron with 2 balrogs and stuf like thet and egals hase elfs

and he will have ents. 

 

need litle more hp and better hp regen becous i dont want more arrmor it will not be to heas persona 

build cost 10k like all

timer like rest of rings

 

i think this is fair for heam

 

 

but its so fun to have heam in team better then souron  is so fun to fight :)


Edited by Bad K, 01 March 2018 - 02:01 AM.

Bad_K


#19 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 07 March 2018 - 10:53 AM

Hello

So you can work with powers?
Can you get for example GoblinKing summon or Aragorndeadarmy and replace with ents, elven wood?
So if you cant i can do it



#20 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 07 March 2018 - 08:39 PM

every time i do thet i start a game  and in game when i creat tom an click on tom the game crash and i wos trying and trying to fix thet but no hope for guy like me (noob at moding) to work i need to creat it spelbook, buttons and many more and if i do thet it crash befor it starts :(


Bad_K





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users