You must be logged in to post messages.
Please login or register

Grey Havens (World Builder & Game Mods)
Moderated by Sir Hugh, Blatant

Hop to:    
Welcome! You are not logged in. Please Login or Register.171 replies, Sticky
Battle for Middle Earth II Heaven » Forums » Grey Havens (World Builder & Game Mods) » Want to Learn INI?
Bottom
Topic Subject:Want to Learn INI?
« Previous Page  1 2 3 4 5 6 ··· 7  Next Page »
MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 01-29-07 08:07 PM EDT (US)         
Ask your questions here: I'll be happy to answer them. This is like the question thread, except that it's solely for INI, and the answers will be in tutorials, which are longer. Ask me an INI question. I may start by giving a mini-tutorial.

Also, please specify in your questions if this is for a mod or a mod map.

Thanks to Kester for the sticky!

Q&A




Wait, so what is this topic about?
This is about modifying BFME2, or at least some aspects.

What do you mean?
Well, basically, this topic is about coding for the game: anything related to that.

Sounds hard...
Well, it is, but once you know what to look for, and how everything's related, it gets easier.

What is ini?
The game keeps its data in files called BIG files. Basically, they compress the data within it. We're looking at the INI.big file, which contains hundreds of files. Every file in that big file ends in INI, which is the format the game uses. There are some files that end in INC, but we won't have to worry about that.
What can ini do?
Well, it can do a lot. It can add new powers to units, cause buildings to spawn specific units, and most of the things used in the game. However, ini is by no means a magical language in which everything is possible.
What's an ini file?
It's an initialization file, to be exact. It tells the game all of the information about a specific object, its modules, etc.


What's an object? And how do I get started?
I'm making tutorials right now. If you ever have a specific question, ask it on this topic. I'll be happy to help.


About Coding




In the next few weeks or so, I'll be putting up tutorials as people need them, but I'll start with object-oriented programming as it relates to BFME2.

The game's code is basically a collection of objects. Some objects do some things, and some do others. Some are buildings, and some are units. Let's start with Boromir.Object GondorBoromirBasically, all this does is tell the game that there is an object named GondorBoromir. There is nothing special about this object, except that we can call it GondorBoromir.

The following code in the game code tells the game the parameters, or the characteristics of the object. The game's code starts out with putting down the art parameters. The art parameters tell the game how Boromir is supposed to look. This is hard to code for a newbie, so let's skip it for now.

Next, you'll see all sorts of random attributes; here are some important ones:BuildCost
BuildTime
WeaponSet
ArmorSet
VisionRange = VISION_HERO_STANDARD
ShroudClearingRange = SHROUD_CLEAR_HERO
BountyValue = GONDOR_BOROMIR_BOUNTY_VALUE
DisplayName = OBJECT:GondorBoromir
RecruitText = CONTROLBAR:GondorBoromirRecruit
ReviveText= CONTROLBAR:GondorBoromirRevive
Hotkey= CONTROLBAR:GondorBoromirHotkey
CrushableLevel = 2 ;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles

CommandSet = BoromirCommandSet
CommandPoints = 50
These are very important.
The BuildCost is how much the unit costs.
The BuildTime is how much time (in seconds) that it takes to build him.
WeaponSet is the type of weapon that Boromir uses, and under what conditions.
The armorset is the same, except for armor.
The VisionRange is how far Boromir can "see" units. If it's under attack stance and it has a large vision, it will attack units very far away.

Alex_3737's Tutorials

[This message has been edited by Ancalagon_4554 (edited 06-05-2007 @ 02:08 PM).]

AuthorReplies:
Pulkit
Dúnadan
posted 05-08-07 03:52 AM EDT (US)     76 / 171       
Hey Ancalagon_4554, why don't you include Alex's guides in the topic post? I think they are wonderful and should be highlighted up there!

Tales of Middle-Earth | Don't miss it
LordJoneZ
Dúnadan
posted 05-25-07 02:51 PM EDT (US)     77 / 171       
Hi Ancalagon_4554!

I want to create some new heroes for bfme2. How can I change the names for DisplayName=? I heard something about the lotr.csf but where is this file and how can I edit it?

MfG LordJoneZ
MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 05-25-07 04:29 PM EDT (US)     78 / 171       
Actually, the csf files are for the first BFME game. You'll want to look for a file called lotr.str. See what you can do with that. If you need any help, just holler.
LordJoneZ
Dúnadan
posted 05-26-07 06:05 AM EDT (US)     79 / 171       
Hi!

I solved the problem I found the lotr.csf in lang/German.big. With a CSF-Editor I found I could mod it.

MfG LordJoneZ
Ps2man0
Dúnadan
posted 06-18-07 08:20 AM EDT (US)     80 / 171       
Hey i really really wanna make a 6 power glitch hero and ive heard you need to edit ini and stuff but i have a problem i can scirp maps etc make them but how do i make ini ive opened up my rotwk directory "C:\Program Files\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king" nothing in there saying a folder called ini and ive opened up appdata "C:\Documents and Settings\Andrew\Application Data\My The Lord of the Rings, The Rise of the Witch-king Files" no folders in there?

Basicially i wanna know wat to write, how to write it and where to put it? Is there a certain program i should use.
heres wat i think:
1. write out the corretc ini in notepad(wtever the corretc ini is)
2.put it in a folder/the right place? (what folder)?
3.run the game?
4. hope for the best

anyhelp will do
MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 06-18-07 09:22 AM EDT (US)     81 / 171       
First of all, trying to spell correctly, etc. will better help me help you.

Second, are you planning to use this "glitch" hero online?
Ps2man0
Dúnadan
posted 06-18-07 10:37 AM EDT (US)     82 / 171       
Hey i really really wanna make a 6 power glitch hero and ive heard you need to edit ini and stuff but i have a problem. i can script maps etc make them. how do i make ini ive opened up my rotwk directory "C:\Program Files\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king" nothing in there saying a folder called ini and ive opened up appdata "C:\Documents and Settings\Andrew\Application Data\My The Lord of the Rings, The Rise of the Witch-king Files" no folders in there?

Basicially i wanna know wat to write, how to write it and where to put it? Is there a certain program i should use.
heres wat i think:
1. write out the correct ini in notepad(watever the correct ini is)
2.put it in a folder/the right place? (what folder/ where is it located)?
3.run the game?
4. Go on my heros and hope the hero is there?

"EDIT" i made my ini.big file into a folder using finalbig program which i downloaded now. all i want to no is how to make the create a hero where do i put it?

In answer to your question no, me and my friends at school are having a tournment at school to see who can make the best create a hero and i think this could be a winner. Ill give u some credit if you help

[This message has been edited by Ps2man0 (edited 06-18-2007 @ 10:39 AM).]

falahid
Dúnadan
posted 06-24-07 11:42 AM EDT (US)     83 / 171       
ok so i want to make units ent i got i this lotr.csf file but it looks like chineese i cant read it there isnt even a normal word in there can sombady help me?
MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 06-24-07 11:59 AM EDT (US)     84 / 171       
Why are you looking at a CSF file? You should be looking at INI files.

[This message has been edited by Ancalagon_4554 (edited 06-24-2007 @ 11:59 AM).]

Drogoth
Dúnadan
posted 06-24-07 09:53 PM EDT (US)     85 / 171       
Hey,how can I do thing like: make a berserker horde, or adding the balrog as a permanent hero?
Hope you reply soon^^
MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 06-25-07 08:02 AM EDT (US)     86 / 171       
For the balrog, you just add the balrog under PlayerTemplate.ini to the factions you wish. Also, take out this code:Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
MinLifetime= BALROG_LIFETIME
MaxLifetime= BALROG_LIFETIME
DeathType= FADED
End
Unless you want it to only be in there for a little bit of time.

Hordes are trickier...

Are these for mod maps or mods?
falahid
Dúnadan
posted 06-25-07 01:17 PM EDT (US)     87 / 171       
how to make units ?please explain this verry detailed plz(its for a map)
i want to learn
MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 06-25-07 02:17 PM EDT (US)     88 / 171       
Please describe what you want to do, and I'll tell you the easiest way to do it, rather than going in depth on something way beyond your experience level...

The best thing to do for maps is to pick out one unit closest in type to the unit you want, and take a unit that won't be on the map, and make it the childobject of the unit you want, making all necessary changes. If you don't understand this, look at the first part.
falahid
Dúnadan
posted 06-25-07 02:21 PM EDT (US)     89 / 171       
so i want to start whith somthing little like a borimir units somthing like that plz tel me now fully how to do it ent do al the nessensary steps by the way if u know somthing easyer let me know
MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 06-25-07 03:03 PM EDT (US)     90 / 171       
Boromir units?
Drogoth
Dúnadan
posted 06-25-07 03:33 PM EDT (US)     91 / 171       
Its for a mod, and not for playing online, im not a bad player xP

but I thing that getting new things on a game is something that you need, soo... thats why I like mods xP

and one more thing, if I use that, wouldn't your Balrog be conditioned by BALROG_LIFETIME = X?

[This message has been edited by Drogoth (edited 06-25-2007 @ 04:28 PM).]

MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 06-25-07 04:31 PM EDT (US)     92 / 171       
and one more thing, if I use that, wouldn't your Balrog be conditioned by BALROG_LIFETIME = X?
Conditioned by? Could you rephrase?
Drogoth
Dúnadan
posted 06-25-07 05:46 PM EDT (US)     93 / 171       
Sure;

I mean that if you have



Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
MinLifetime= BALROG_LIFETIME
MaxLifetime= BALROG_LIFETIME
DeathType= FADED
End

the lifetime of the balrog wouldnt be permanent

I think that this would be easier with MSN :S
MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 06-25-07 05:46 PM EDT (US)     94 / 171       
Right. That's why you should comment out that code if you want the balrog to be permanent.
Drogoth
Dúnadan
posted 06-25-07 06:15 PM EDT (US)     95 / 171       
KK, where do I put thta? XD

I havent found a ..../balrog.ini
MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 06-25-07 07:32 PM EDT (US)     96 / 171       
It's in neutral\neutralunits.ini
Drogoth
Dúnadan
posted 06-25-07 08:11 PM EDT (US)     97 / 171       
Ok xP, just one more thing and I'll stop bothering you; at least for now xP

When I try to add a Hero, like Arveleg for MenFaction, The last slot hero dissapears, in this case: Gandalf.
How do I create more slots?
MR ANCALAGON
Dúnadan
(id: Ancalagon_4554)
posted 06-25-07 08:18 PM EDT (US)     98 / 171       
Drogoth
Dúnadan
posted 06-25-07 09:03 PM EDT (US)     99 / 171       
Heyz, thanks, you've been really helpful
If I publish my mod I'll tell you
falahid
Dúnadan
posted 06-26-07 09:08 AM EDT (US)     100 / 171       
wel i try to do it the most i can what i want to do is:
make new units(i dont care how they look liek ore somthign its for to begin)
first tel me how
i make them
how i put them in my map
so i dotn rlly know which untis yet but i want to start whith somthign easy so u guys can tell me like adding another sword for borimir is easy ore somthign wel i dont know u tel me
« Previous Page  1 2 3 4 5 6 ··· 7  Next Page »
You must be logged in to post messages.
Please login or register

Hop to:    

Battle for Middle Earth II Heaven | HeavenGames