Difference between revisions of "Object List file"

From RRU Knowledge Base
Line 1: Line 1:
'''Object List''' files are configuration files used in the Windows PC version of ''[[LEGO Rock Raiders (PC game)|LEGO Rock Raiders]]'' to designate the starting locations of [[Rock Raider]]s, [[Rock Raiders buildings|buildings]], [[Rock Raiders vehicles|vehicles]], [[Rock Raiders creatures|creatures]], [[building materials]], [[web]]s, and the [[game camera]] within levels. They use the filename extension <samp>.ol</samp>, though they're essentially just [[Wikipedia:Text file|text files]]. Each level's Object List is linked to in that level's section in [[Lego.cfg]] using the code<!--or line or flag or what? dunno what the correct terminology is--> <code>OListFile</code>, and is by default located within that level's folder.
'''Object List''' files are configuration files used in the Windows PC version of ''[[LEGO Rock Raiders (PC game)|LEGO Rock Raiders]]'' to designate the starting locations of [[Rock Raider]]s, [[Rock Raiders buildings|buildings]], [[Rock Raiders vehicles|vehicles]], [[Rock Raiders creatures|creatures]], [[building materials]], [[web]]s, and the [[game camera]] within levels. They use the filename extension <code>.ol</code>, though they're essentially just [[Wikipedia:Text file|text files]]. Each level's Object List is linked to in that level's section in [[Lego.cfg]] using the code<!--or line or flag or what? dunno what the correct terminology is--> <code>OListFile</code>, and is by default located within that level's folder.


==Formatting==
==Formatting==
Line 30: Line 30:
   
   
  }
  }
<!--Where <code>ObjectName</code> is an object as it is defined in the <code>ObjectNames</code> or <code>MiscObjects</code> lists in the Main LEGO Config file, <code>X/Y-Coordinate Location</code> is its coordinates on the [[Map file]], and <code>Facing Angle</code> is its angle between 0 and 360 clockwise.-->
<!--Where <code>[ObjectName]</code> is an object as it is defined in the <code>ObjectNames</code> or <code>MiscObjects</code> sections in the Main LEGO Config file, <code>[X/Y-Coordinate Location]</code> is its coordinates on the [[Map file]], and <code>[Facing Angle]</code> is its angle between 0 and 360 clockwise.-->


== Modding ==
== Modding ==

Revision as of 16:46, 17 September 2017

Object List files are configuration files used in the Windows PC version of LEGO Rock Raiders to designate the starting locations of Rock Raiders, buildings, vehicles, creatures, building materials, webs, and the game camera within levels. They use the filename extension .ol, though they're essentially just text files. Each level's Object List is linked to in that level's section in Lego.cfg using the code OListFile, and is by default located within that level's folder.

Formatting

To do: Rewrite first paragraph here

Each entry in an Object List designates the coordinates and facing angle of a certain object. Buildings are often placed with the main part of the construction in the center of a block (ex: 7.5, 8.5), with the Power Path part of the construction pointing towards the facing angle. The facing angle or heading is in degrees in typical compass format, with 0 degrees pointing to the top of the map, and 90 degrees pointing to the right side of the map.

An Object List can have a maximum of 200 entries; going over this limit exceeds its memory pool, causing the level to crash[verify]. While the allocodeed name of an object can be anything, it's typically in the format Object# (using a sequential number in place of #) to keep track of the amount of objects used. Any special objects that are used in script are referred to using this allocodeed name.

If an Object List doesn't have a camera defined, one will be placed when the level has loaded, either facing straight down and north over the first building in the list, or at the minimum tilt angle facing north at the center of the map. If there are no non-hidden Rock Raiders or buildings exposed at the start of the level, the level will load, but will softlock on the first page of the level's mission briefing.

Example

Lego* {

	Object1 {
		type	[ObjectName]
		xPos	[X-Coordinate Location]
		yPos	[Y-Coordinate Location]
		heading	[Facing Angle]
	}
 
	Object2 {
		type	[ObjectName]
		xPos	[X-Coordinate Location]
		yPos	[Y-Coordinate Location]
		heading	[Facing Angle]
	}

}

Modding

Object List files are unencrypted and can easily be edited with even Notepad.

To do: write editing OL files after forums are back up