Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Showtime
#31
Simple way to describe it, cause I know what it's like when you hear about includes the first time...

Imagine you write your INI code down in a file, mark all it's content and copy-and-paste it into your rulesmd.ini.
That's what includes do: copy a whole file's content and paste it in the file it's invoked in.
So if you put the [VehicleTypes] list and the vehicle sections into vehicles.ini and your rulesmd.ini includes that vehicles.ini file, the game will act as if [VehicleTypes] and the single sections were in rulesmd.ini.

Advantage: You can use this to keep stuff well ordered.
I know I'm going to.
[Image: jsfml.png]
Reply
#32
Just a note: lists such as [VehicleTypes] should NOT reuse indices unless you understand what will happen.

Worth playing: 1 | 2 | 3
Reply
#33
Are sections with equal names actually merged?
That would own even more!!

I don't use indices usually but I tend to set it like MTNK = MTNK - the game allows it and the numbers are gone.
[Image: jsfml.png]
Reply
#34
Quote:Are sections with equal names actually merged?
That would own even more!!
Yes.
Code:
[General]; test1.ini:
KEY1 = VAL1
KEY2 = VAL2
Code:
[General]; test2.ini:
KEY2 = VAL4
KEY3 = VAL3
Code:
[General]; result:
KEY1 = VAL1
KEY2 = VAL4
KEY3 = VAL3

Worth playing: 1 | 2 | 3
Reply
#35
* Renegade dresses up as a n00b and complains about VAL2 not being read
Forum Rules

(01.06.2011, 05:43:25)kenosis Wrote: Oh damn don't be disgraced again!

(25.06.2011, 20:42:59)Nighthawk Wrote: The proverbial bearded omni-bug may be dead, but the containment campaign is still being waged in the desert.
Reply




Users browsing this thread: 1 Guest(s)