Jump to content


Photo

Creation of Heroes and Units


  • Please log in to reply
32 replies to this topic

#1 King of the East

King of the East
  • Members
  • 20 posts

Posted 21 June 2007 - 12:25 PM

Hello,

I'm writing to you in order to get some informations. I read all the site but i have a lot of difficulties to understand what i must to do, because i'm not english and it's difficult for me.

So, i would like to modify a little BFME 1 (only the faction of mordor) in order to add:

- A Rhun captain (as an Heroe of Mordor)

So, how can i create an heroe ?
I want to make a simple thing, just take one character of the existing original unit of Rhun for example. But i really don't know how to do this.

- A Rhun riders unit (This unit will be create in the existing haradrim barrack)

How can i add a unit in the faction of mordor ?


For these two modifications, must i create a mod or can i just modify the original game ?

What do I have to make? (about the codes and other, the files to download.......) knowing that i have already the models of the riders, but i don't know how to add them to the game.

I'm a total newbie and i need your help please !! :D

Thank you well in advance :ninja:
Le Rhûn, le plus puissant royaumme de l'Est, mettra un terme definitf à la domination sans partage des peuples de l'Ouest...[color=#FF0000]

#2 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 21 June 2007 - 04:17 PM

Hello and welcome to The 3rd Age!

- A Rhun captain (as an Heroe of Mordor)

This question has been answered in this subforum not long ago, so take a look at the last few pages and you'll find the topic.
Basicly, you copy the Rhun Soldier (not horde) code and add hero-specific parts like the HERO KindOf, ButtonImage and so on...

- A Rhun riders unit (This unit will be create in the existing haradrim barrack)

This is more difficult. First you need to create a new model with Rhun Soldier on horse, then bind the bones to a skeleton of a rider unit and then code your new unit (and horde, commandset, commandbutton and more).

Try to read the tutorials again and if you still have problems understanding them, maybe someone who speaks your language here can help you :D

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#3 Taralom

Taralom

    Self-proclaimed A**hole

  • Project Team
  • 1,519 posts
  • Location:Not here
  • Projects:Turned to Writing
  •  I R GOOGL'd

Posted 21 June 2007 - 08:01 PM

i think a new skin upon the rohirrim model is good enough.
but i'm not that experienced with modding. it's only a suggestion...
If the above post offended you in any way,
please take note that, until further notice, I don't care, so get lost.

#4 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,438 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 21 June 2007 - 08:06 PM

Click me!

as you can see, that link takes you to The Dead Players free models, where he has a free Cavalry Rider of Rhun ;) :p

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#5 King of the East

King of the East
  • Members
  • 20 posts

Posted 22 June 2007 - 12:40 PM

Okay thanks you :p


I have another some little questions please (sorry lol)

Where can i find the codes in the INI concerned the Rhun soldiers, and how can I change this little easterling in a great captain ???(I speak at the level of codes).
Can you give me here an example of code plz ? And tell me where to place the modified code in the INI.file ?

Sorry for these questions, i'm very lost lol
In the case of anyone here speak my language in order to help me, I speak French.

Thanks !
Le Rhûn, le plus puissant royaumme de l'Est, mettra un terme definitf à la domination sans partage des peuples de l'Ouest...[color=#FF0000]

#6 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,438 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 22 June 2007 - 02:45 PM

well, we have many french guys here :p

I remember that someone made a few tutorials in french... (was it ched?) atleast, if it was ched, his site still has the nice index, so yeah...

Anyways, to find the rhun soldier, you'd have to open up ini\object\evilfaction\evilfactionunits.ini, and search MordorEasterling.
Then copy all his things untill you get to the next object (which should be MordorCatapult)
Then place the copied code in a new ini file, wich you can call whatever you'd like, and place it in the evilfaction folder (if you wish)
Then, rename the Object from MordorEasterling (methinks) to your desired name (ie, MordorRhunCaptain, but basically whatever you want :p)
Then, search for KindOf, and add HERO to that line...
Then, search for DisplayName, and replace that line with these lines;
DisplayName	= OBJECT:MordorRhunCaptain
	RecruitText = CONTROLBAR:MordorRhunCaptainRecruit
	ReviveText	= CONTROLBAR:MordorRhunCaptainRevive
	Hotkey		= CONTROLBAR:MordorRhunCaptainHotkey
Those things are what's going to be when you purchace your hero, and what it'll say, and what it'll say when you have the mouse above your hero ;)
Then, you should find PorcupineFormationBodyModule, search it.. it should look like this;
Body = PorcupineFormationBodyModule ModuleTag_porcupineFormation
CheerRadius = 	EMOTION_CHEER_RADIUS	
MaxHealth = MORDOR_SOLDIERRHUN_HEALTH
MaxHealthDamaged = MORDOR_SOLDIERRHUN_HEALTH_DAMAGED
;RecoveryTime	= MORDOR_SOLDIERRHUN_HEALTH_RECOVERY_TIME
DamageWeaponTemplate =	EasterlingPorcupineDamage
CrushDamageWeaponTemplate	= EasterlingPorcupineCrushDamage
End
Then, replace PorcupineFormationBodyModule with RespawnBody and add this below the End (which is below CrushDamageWeaponTemplate in case your eyes have faults :lol:)
Behavior = RespawnUpdate ModuleTag_RespawnUpdate
DeathAnim = DYING
DeathFX = FX_AragornDieToRespawn
DeathAnimationTime = 3933
InitialSpawnFX = FX_AragornInitialSpawn
RespawnAnim = LEVELED
RespawnFX = FX_ResurrectionAragorn
RespawnAnimationTime = 2000
AutoRespawnAtObjectFilter = NONE +CASTLE_KEEP
ButtonImage = BMHaradrimPalace_SoldiersRhun

RespawnRules =	 AutoSpawn:No	Cost:600 Time:90000 Health:100%
RespawnEntry =	Level:2	Cost:800 Time:90000
RespawnEntry =	Level:3	Cost:900 Time:90000
RespawnEntry =	Level:4	Cost:1000 Time:90000
RespawnEntry =	Level:5	Cost:1100 Time:120000
RespawnEntry =	Level:6	Cost:1200 Time:120000
RespawnEntry =	Level:7	Cost:1300 Time:120000
RespawnEntry =	Level:8	Cost:1400 Time:120000
RespawnEntry =	Level:9	Cost:1500 Time:120000
RespawnEntry =	Level:10 Cost:1600 Time:120000
End
you can see that if we respawn your hero at level 7, he will cost 1300, and take 2 minutes to ressurect... (120 seconds is 120000 milliseconds, which is the default number EA uses in their codes)
Now your hero is almost ready... below the things you just added, add this;
BuildCost = 1200
BuildTime = 20
those numbers are just a good choice for a captain, but feel free to change them ;)

Now, you can change the armor and weaponsets, and health, so he's though as a hero and not weak (compared to a hero, the easterlings are weak). Find ArmorSet and WeaponSet, and change the armor with HeroArmor, and the Weapon with FaramirSword, as it should look like this;
ArmorSet
	Conditions = None
	Armor = HeroArmor
	DamageFX = None
End

WeaponSet
	Conditions = None 
	Weapon	= PRIMARY FaramirSword
	AutoChooseSources = PRIMARY FROM_PLAYER FROM_SCRIPT FROM_AI
End
There you go, your hero is mostly done :p
or, you might want him to be able to re-generate his health, so go down to the BuildCost and BuildTime again, and below that, add in this;
Behavior = AutoHealBehavior ModuleTag_FaramirHealing
	StartsActive = Yes
	HealingAmount = HERO_HEAL_AMOUNT
	HealingDelay = 1000
	StartHealingDelay = HERO_HEAL_DELAY
	HealOnlyIfNotInCombat = Yes
End
now, we're done with the hero... mostly, atleast the main part ;)
Now, we're gonna add him to the Mordor faction, so we can build him.
open up ini\playertemplate.ini, andgo down to Mordor, and find BuildableHeroes, and add your desired name (ie, MordorRhunCaptain in this example), and place it infront of NeutralGollum just for the sake of it :p
then, let's remember this?
DisplayName	= OBJECT:MordorRhunCaptain
	RecruitText = CONTROLBAR:MordorRhunCaptainRecruit
	ReviveText	= CONTROLBAR:MordorRhunCaptainRevive
	Hotkey		= CONTROLBAR:MordorRhunCaptainHotkey
yeah, now we're gonna add these to lotr.str... and since your new to modding, I'm pretty sure you don't know what that is...well, then just create a new text file, and place it in \data\ and call it lotr2.str, and add this:
OBJECT:MordorRhunCaptain
"Easterling Captain"
END

CONTROLBAR:MordorRhunCaptainRecruit
"Hero Unit. Recruit the captain of the Easterlings."
END

CONTROLBAR:MordorRhunCaptainRevive
"Revive the fallen Captain of Rhûn"
END

CONTROLBAR:MordorRhunCaptainHotkey
"&Easterling Captain"
END
I have no idea if this will work, but if it does or not, your now finished... Try it out in-game ;)

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#7 King of the East

King of the East
  • Members
  • 20 posts

Posted 23 June 2007 - 01:25 AM

Woah !
In all case, thanks !!
It's very nice.
I will try this week all that and i will post again to say to you if that work (I hope that :p )
Thanks very much I'm not lost now ^^ :p
Le Rhûn, le plus puissant royaumme de l'Est, mettra un terme definitf à la domination sans partage des peuples de l'Ouest...[color=#FF0000]

#8 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,438 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 23 June 2007 - 11:16 AM

good :p I was starting to get worried that you'd run away or something, because I spent some time writing it :p

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#9 King of the East

King of the East
  • Members
  • 20 posts

Posted 26 June 2007 - 05:43 PM

So, to recapitulate;

I need: - FinalBIG editor to open the INI files and to modify them
- GIMP 2 to modify the model's texture
- GMAX to modify the models

That's right ? ;)
Do I need another program ?
(Sorry for these newbie's things, but... :p I'm not english lol)

Thanks ^^
Le Rhûn, le plus puissant royaumme de l'Est, mettra un terme definitf à la domination sans partage des peuples de l'Ouest...[color=#FF0000]

#10 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,438 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 26 June 2007 - 07:45 PM

well, GIMP is GIMP... if there is a 2, whatever, should also work :p
GMax with RenX ;) (you need both, get GMax first, then install RenX... you need to do that ;))

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#11 Downfall

Downfall

    Scenarist

  • Members
  • 356 posts
  • Location:Chicago,USA
  •  There is one?

Posted 26 June 2007 - 07:52 PM

I believe the 2 was meant as to as refering to being too lazy to write to which is why he used the number two.
Follow me so far :p

And with GMax/RenX, you'll need the W3D importer to load the models in RenX. ;)

Edited by Downfall, 26 June 2007 - 07:55 PM.

"Human beings make strange fauna and flora. From a distance they appear negligible; up close they are apt to appear ugly and malicious."
Henry Miller, Tropic of Cancer


Posted Image

Posted Image

#12 King of the East

King of the East
  • Members
  • 20 posts

Posted 27 June 2007 - 10:42 AM

Euhm, i'am progressing little to little :xcahik_: lol and i have a new pb.

So, I have all the files. I 'am using FinalBIG editor, i open the INI files and all that blablabla...
But I don't understand.

When you say to me to go to evilfaction (in the INI) and all that, how can I make this? I don't understand what I must to do to reach these files (like gondorinfantry.ini etc...)
Morever, in the BIGfiles editor, I opened with success the files but i can't modify them..

I'm sorry for all that but in all cases thanks, I have good hope for the future (one day I will modify this game !!)


Thanks :D
Le Rhûn, le plus puissant royaumme de l'Est, mettra un terme definitf à la domination sans partage des peuples de l'Ouest...[color=#FF0000]

#13 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,438 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 27 June 2007 - 11:16 AM

hehe, it's better to extract them :xcahik_:
Edit -> Extract All, and the choose a place you want your mod to be.... (ie, C:\Games\Mods\MyModsName)
then, do what I said :D

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#14 King of the East

King of the East
  • Members
  • 20 posts

Posted 28 June 2007 - 02:14 AM

Hum... That is sad ^^ lol I have just make all you said;

So, I've extracted the Big File, I've created a shortcut to my mod, I have a special folder for it, and all the INI are in this one.

So, in order to try (begin little ;) ) I modify the prices of the mordor units. I launch the game (I'm happy because for once, the game run ^^) but obviously there is no modification in the game.

I have also tried with the prepared ini package of the tutorial, (so i modify the water.ini to modify the mordor prices but the mod don't run, it's the normal game)

What i've forgotten ?
I think it's don't run because of details, but i would like to know what are these details
(Like that, I will be able finally to stop to disturb you lol, i'm sorry)
Thanks
Le Rhûn, le plus puissant royaumme de l'Est, mettra un terme definitf à la domination sans partage des peuples de l'Ouest...[color=#FF0000]

#15 CyberGremlin

CyberGremlin
  • Members
  • 8 posts

Posted 28 June 2007 - 06:07 AM

When u done modding, u have to create another .big file which contains all the modified files.
In FinalBig->New then put(drag'n'drop) all your files in the left column, but they must have the same catalogue(folder) structure as they had in the original .big file.
Then save as your_file.big . Place it in your My Battle for Middle-Earth folder(where all the -mod mods usually go), then copy the shortcut to the original game and add -mod yourbigfile.big to the destination.

Edited by CyberGremlin, 28 June 2007 - 06:08 AM.


#16 Gandalforce

Gandalforce
  • Members
  • 26 posts

Posted 28 June 2007 - 06:31 AM

hehe, it's better to extract them ;)
Edit -> Extract All, and the choose a place you want your mod to be.... (ie, C:\Games\Mods\MyModsName)
then, do what I said ;)


This is very helpFul Laurie , im having the same trouble too and was just about to post anew topic when i saw this. Thanks, also good luck King of the East, Soldiers of Rhun are awsome! Soeey if this was random.

So do all who live to face such times, but that is not for them to decide. All we have to decide is what to do with the time that is given to us.
-Mithrandir

May the Force be with you, and Godspeed my friend.

92% of teens have moved onto rap. If you are part of the 8% that still listen to real music, copy and paste this text into your singnature.


#17 King of the East

King of the East
  • Members
  • 20 posts

Posted 28 June 2007 - 02:21 PM

Thanks you two ^^

I'am going to show you all I do to make my mod.
If you can tell me what is wrong please ^^

Firstly, i decided to name my mod HaradRhun


So,

-I download the INI file of the tutorial (the prepared file)
-I make a few changements in the WATER.INI ; I just modify the cost of the Haradrim and Rhun's soldiers in order to begin with something ;)
-I save this WATER.INI (so wich was modified) as a BIG.file with BIGFinal Editor.
-I named it HaradRhun
-I put this new BIG.file in "My Battle for Middle-Earth folder" (I tried also to put this one in the folder of the game but... It's the same result)
-I create a new shortcut with the command -mod HaradRhun.big
-I run the game with this shortcut, and... There is no modification ;) ;) ;) ;)


Where is my error ?
;)

Edited by King of the East, 28 June 2007 - 05:03 PM.

Le Rhûn, le plus puissant royaumme de l'Est, mettra un terme definitf à la domination sans partage des peuples de l'Ouest...[color=#FF0000]

#18 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,438 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 28 June 2007 - 02:42 PM

did you put it in "My Battle for Middle-Earth Files"? in C:\Documents and Settings\USERNAME\Application Data\My Battle for Middle-Earth files? If not, then that's what you should do ;)
if you can't see the Application Data folder, you have to un-hide it;
Tools -> Folder Options, -> View -> select "Show hidden files and folders", and voila...

T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#19 King of the East

King of the East
  • Members
  • 20 posts

Posted 28 June 2007 - 03:21 PM

Yes i made that

My BIG file is in this file.
There is another error in my list ?

I just modify this in the water.INI

;------------------------HARADRIM-------------
#define M_MORDOR_HARADRIM_BUILDCOST 100
#define M_MORDOR_HARADRIM_BUILDTIME 20 ;10

Edited by King of the East, 28 June 2007 - 03:24 PM.

Le Rhûn, le plus puissant royaumme de l'Est, mettra un terme definitf à la domination sans partage des peuples de l'Ouest...[color=#FF0000]

#20 King of the East

King of the East
  • Members
  • 20 posts

Posted 01 July 2007 - 05:18 PM

Nobody can help me please ???
Le Rhûn, le plus puissant royaumme de l'Est, mettra un terme definitf à la domination sans partage des peuples de l'Ouest...[color=#FF0000]




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users