Difference between revisions of "NPL file"

From RRU Knowledge Base
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{WIP}}
#REDIRECT [[NERPs#NPL files]]
One of several [[Level Files]] located in a Mission's level folder, the '''NPL file''' the encrypted version of the [[NRN file]] (more specifically the [[NRM file]]), which controls all the [[Programming Mission Objectives|mission objectives]] for a level.  The NPL file is encrypted in Hexadecimal Computer Language and can only be read using a [[Hex-Editing Program]].  The game processes a level's mission objectives from this file, rather than the NRN file, and must be edited in order to make changes to the level. 


==Description of Script Format==
[[Category:File formats in LEGO Rock Raiders for Windows]]
 
[[Category:NERPs]]
All script from the NRN file is encrytped into four pairs of characters for each scripted number, parameter/function, and symbol.  Since the computer language is Hexidecimal, the characters range from 00 to FF.
 
So counting up from 00 00 to FF FF:
 
00 00 - 01 00 - 02 00 - 03 00 - 04 00 - 05 00 - 06 00 - 07 00 - 08 00 - 09 00 - 0A 00 - 0B 00 - 0C 00 - 0D 00 - 0E 00 - 0F 00 - 10 00 - 11 00 ... FE 00 - FF 00 - 00 01 - 01 01 - 02 01 ... FF FF
 
Numbers end in <code>00 00</code>, [[Symbols]] end in <code>01 00</code>, and [[Parameters]] end in <code>02 00</code>.  Certain [[Special Parameters]] also end in <code>04 00</code> and <code>08 00</code>.  The first two pairs of characters for each encrypted hex-string indicate the number, or the number that a symbol or parameter has been given.  For example, the number 4 is <code>04 00 00 00</code>.  Parameter #13, which is <code>GetCrystalsCurrentlyStored</code>, is <code>0D 00 02 00</code>.  Symbol #5, which is the ">" symbol, is <code>05 00 01 00</code>. 
 
Putting them altogether <code>GetCrystalsCurrentlyStored > 4</code> becomes <code>0D 00 02 00 05 00 01 00 04 00 00 00</code>.
 
This encrypted code can be rather confusing at first, but once you figure out the patterns, it's as easy as searching for a string and changing it.
 
==Also See==
 
*[[Programming Mission Objectives]]
*[[Scripting Tutorials]]
 
[[Category:FIle formats in LEGO Rock Raiders]]

Latest revision as of 13:53, 20 December 2018

Redirect to: