Difference between revisions of "Object List file"

From RRU Knowledge Base
(Created page with "{{WIP}} '''Object List''' files are configuration files used in the Windows PC version of ''LEGO Rock Raiders'' to designate the locations of o...")
 
Line 1: Line 1:
{{WIP}}
{{WIP}}
'''Object List''' files are configuration files used in the Windows PC version of ''[[LEGO Rock Raiders (PC game)|LEGO Rock Raiders]]'' to designate the locations of objects within levels. They use the filename extension <code>.ol</code>, though any extension can be used as long as the file's actual formatting remains the same. Each level has its own Object List file, located in its folder by default and defined in each level's section in [[Lego.cfg]] using the line<!--or code or flag or what? dunno what the correct terminology is--> <tt>OListFile</tt>.
'''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 [[The Rock Raider|Rock Raiders]], [[Rock Raiders buildings|buildings]], [[Rock Raiders vehicles|vehicles]], [[Rock Raiders creatures|creatures]], [[building materials]], [[web]]s, and the [[game camera]] within levels.
Each level's Object List is linked to in that level's section in [[Lego.cfg]] using the line<!--or code or flag or what? dunno what the correct terminology is--> <tt>OListFile</tt>, and is by default located within that level's folder.
They use the filename extension <code>.ol</code>, though any extension can be used as long as its internal formatting remains the same.
The configuration data in them is unencrypted and can easily be edited with even [[Wikipedia:Microsoft Notepad|Notepad]].


 
Each entry in the OL File designates the coordinates and facing angle of a certain object.
One of several [[Level Files]] located in a Mission's level folder, the '''OL File''' designates the locations of [[Objects]], such as [[Rock Raiders buildings|Buildings]], [[Rock Raiders vehicles|vehicles]], [[The Rock Raider|Rock Raiders]], [[Rock Raiders creatures|creatures]], and the [[Camera]].  It is unencrypted and easily editable in notepad or more preferably using the [[RRU Level Editor]].  Each entry in the OL File 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 square (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. The maximum number of objects that can be present in the OL file at a time is 200 (anymore would exceed its memory pool, causing the level to crash). While the allotted name of the object in the can be anything, it typically is in the format "Object#" using a number "#" to keep track of the amount of Objects used. Any special objects that are used in script are referred to using this allotted name.
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.
The maximum number of objects that can be present in the OL file at a time is 200 (anymore would exceed its memory pool, causing the level to crash).
While the allotted name of the object in the can be anything, it typically is in the format "Object#" using a number "#" to keep track of the amount of Objects used.
Any special objects that are used in script are referred to using this allotted name.


Typical Ol File Format:
Typical Ol File Format:
Line 19: Line 26:
Where <tt>ObjectName</tt> is an object as it is defined in the <tt>ObjectNames</tt> or <tt>MiscObjects</tt> lists in the Main LEGO Config file<!--, <tt>X/Y-Coordinate Location</tt> is its coordinates on the [[Map file]], and <tt>Facing Angle</tt> is its angle between 0 and 360 clockwise-->.
Where <tt>ObjectName</tt> is an object as it is defined in the <tt>ObjectNames</tt> or <tt>MiscObjects</tt> lists in the Main LEGO Config file<!--, <tt>X/Y-Coordinate Location</tt> is its coordinates on the [[Map file]], and <tt>Facing Angle</tt> is its angle between 0 and 360 clockwise-->.


If an object list is missing a camera, the game will crash on startup. If an object list has a camera but lacks any exposed units, the game will run up to Chief's briefing in that level, where it will softlock.
If an object list is missing a camera, the game will crash on startup.
If an object list has a camera but lacks any exposed units, the game will run up to Chief's briefing in that level, where it will softlock.


<br><br><br>[[Category:Modding|OL file]][[Category:Game Files]]
<br><br><br>[[Category:Modding|OL file]][[Category:Game Files]]
[[Category:LEGO Rock Raiders file formats]]

Revision as of 03:49, 15 September 2017

This article is an unfinished work in progress or contains transferred information that needs to be rewritten or reformatted to fit our standards. Please excuse the mess and do not mark for deletion.

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. Each level's Object List is linked to in that level's section in Lego.cfg using the line OListFile, and is by default located within that level's folder. They use the filename extension .ol, though any extension can be used as long as its internal formatting remains the same. The configuration data in them is unencrypted and can easily be edited with even Notepad.

Each entry in the OL File 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. The maximum number of objects that can be present in the OL file at a time is 200 (anymore would exceed its memory pool, causing the level to crash). While the allotted name of the object in the can be anything, it typically is in the format "Object#" using a number "#" to keep track of the amount of Objects used. Any special objects that are used in script are referred to using this allotted name.

Typical Ol File Format:

Lego* {

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

}

Where ObjectName is an object as it is defined in the ObjectNames or MiscObjects lists in the Main LEGO Config file.

If an object list is missing a camera, the game will crash on startup. If an object list has a camera but lacks any exposed units, the game will run up to Chief's briefing in that level, where it will softlock.