The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.24 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



Renegade Projects Network Forums
Showtime - Printable Version

+- Renegade Projects Network Forums (https://forums.renegadeprojects.com)
+-- Forum: Inject the Battlefield (https://forums.renegadeprojects.com/forumdisplay.php?fid=60)
+--- Forum: News from the Battlefield (https://forums.renegadeprojects.com/forumdisplay.php?fid=20)
+--- Thread: Showtime (/showthread.php?tid=1042)

Pages: 1 2 3


RE: Showtime - pd - 09.10.2008

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.


RE: Showtime - DCoder - 09.10.2008

Just a note: lists such as [VehicleTypes] should NOT reuse indices unless you understand what will happen.


RE: Showtime - pd - 09.10.2008

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.


RE: Showtime - DCoder - 09.10.2008

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



RE: Showtime - Renegade - 10.10.2008

* Renegade dresses up as a n00b and complains about VAL2 not being read