Difference between revisions of "NERPs parameters"

From RRU Knowledge Base
m (Redirected page to NERPs documentation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{WIP}}
#REDIRECT [[NERPs documentation]]
{{about|hexadecimal parameters for the NERPs language|command-line parameters|command-line parameters}}
 
'''Parameters''' are pieces of script that designate a very specific property.  These are essential to [[Programming Mission Objectives]]. When encrypted into [[NPL file|NPL Files]], they are given a simple 8 character hex-string.  Basic Parameter hex-strings end in <code>02 00</code> to indicate itself.  [[Special Parameters]], which are different than basic parameters in function, end in <code>04 00</code> and <code>08 00</code>.  Each parameter is given a number value, which is the first two pairs of the hex-string.
 
Here is a list of known basic parameters and the first character pair of their hex-strings:
 
[[NERP commands]]
 
Character Pairs that do not have a corresponding parameter are either unknown or unused.
 
==Special==
'''Special Parameters''' act much of the same way as [[Parameters|Basic Parameters]] do.  They help designate a property, a series of certain basic parameters, or help organize certain basic parameters.  The details of their function aren't entirely known.
 
There are two kinds of Special Parameters, ones that begin with a colon ":" and ones that end with a colon.  Each special function has a counterpart of the other kind (for most ones at least).  For example, there is both a “<code>:cestfini</code>” and a “<code>cestfini:</code>” because of the way they work in the [[NRN file]].  In the encoded [[NPL file]], they each have different hex-strings. Not only do they have different strings but they also have different suffixes.  Ones that begin with the colon have the encoded suffix “<code>08 00</code>” and ones that end with it have the suffix “<code>04 00</code>.”
 
Rather than trying to cover every single number, I will just deal with the special parameters that are common in normal game levels (there are some very specialized ones that only appear in some scripts), and give the encodings for both the one that begins with the colon and the one that ends with it.  Here they are (some may be missing one of the encodings simply because I either haven’t found them, or they are unused.  You’ll also notice there’s a lot of overlap with the encodings, and several functions do the same thing...which makes no sense):
 
(Parameter Name – encoding for that beginning with the colon – encoding for that ending with colon)
 
<code>Top – ? – 00 00</code>
<code>NoMessage – 12 00 – 00 00</code>
<code>Skippedskip – 0D 00 – 01 00</code>
<code>Skip – 1A 00 or 31 00 or 32 00 – 00 00 or 01 00 or 02 00</code>
<code>CanRebuildToolStore – 2B 00 – 01 00</code>
<code>NoneStored – 54 00 – 02 00</code>
<code>end – ? – 03 00</code>
<code>CloseDown – 65 00 or 72 00 – 03 00 or 02 00</code>
<code>Wbe – ? – 04 00</code>
<code>Next - ? – 05 00</code>
<code>Clear – ? – 06 00</code>
<code>finish – ? – 07 00</code>
<code>Complete – ? – 08 00</code>
<code>canrebuild – 93 00 – 09 00</code>
<code>endmessage – B0 00 – 09 00</code>
<code>Events – B8 00 – 0A 00</code>
<code>cestfini – 46 01 – 14 00</code>
 
These parameters have proven to be very confusing, and they are not very well understood.
 
==Symbols==
There are only five '''symbols''' that are known to be used in the game's [[Programming Mission Objectives|mission objective]] script.  Like other hex-strings, when encoded in [[NPL file|NPL files]], they consist of four character pairs.  Symbols end in <code>01 00</code>.
 
The five symbols and their strings are:
 
<code>? - 04 00 01 00</code>
<code>> - 05 00 01 00</code>
<code>< - 06 00 01 00</code>
<code>= - 07 00 01 00</code>
<code>!= - 0A 00 01 00</code>

Latest revision as of 07:19, 7 June 2018