Renegade Projects Network Forums

Full Version: Showtime
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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.
Just a note: lists such as [VehicleTypes] should NOT reuse indices unless you understand what will happen.
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.
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
* Renegade dresses up as a n00b and complains about VAL2 not being read
Pages: 1 2 3