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)
|
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) |
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?Yes. Code: [General]; test1.ini: Code: [General]; test2.ini: Code: [General]; result: RE: Showtime - Renegade - 10.10.2008 * Renegade dresses up as a n00b and complains about VAL2 not being read |