Difference between revisions of "NRN file"

From RRU Knowledge Base
m
(none of this is "encrypted")
Line 1: Line 1:
{{WIP}}
{{WIP}}
One of several [[Level Files]] located in a Mission's level folder, the '''NRN file''' is a modified C++ script called [[NERPs]] that contains the Level's [[Programming Mission Objectives|mission objectives]].  This file is unencrypted and is editable in notepad.  The NRN file is not processed by the game, and changes made to it will not affect the game.  The game will only process the [[NPL file]], which is an encrypted version of the NRN script.  Changes made to the NRN file will also not affect the NPL script.  It is merely used for organizing the script before encrypting it into the NPL file.  Currently, this is done manually by editing the NPL file with a [[Hex-Editing Program]].
One of several [[Level Files]] located in a Mission's level folder, the '''NRN file''' is a human-readable version of a [[NERPs]] script that contains the Level's [[Programming Mission Objectives|mission objectives]].  This file is not compiled and is editable in notepad.  The NRN file is not processed by the game, and changes made to it will not affect the game.  The game will only process the [[NPL file]], which is a compiled version of the NRN script.  Changes made to the NRN file will also not affect the NPL script.  It is merely used for organizing the script before encrypting it into the NPL file.  Currently, this is done manually by editing the NPL file with a [[Hex-Editing Program]].


Although editing this file does not affect the game, it is '''essential''' to modifying level goals.  While the encrypted NPL file is in Hex-Language, which is hard to read, especially for those unfamiliar with computer languages, the NRN file is in simple C++, which is much easier to read.  It is important to make sure that whatever changes you make in the NRN file you make to the NPL file, so that you know they match.  Before you edit the NRN file, make sure you know how to edit the NPL file.
Although editing this file does not affect the game, it is '''essential''' to modifying level goals.  While the compiled NPL file is not easily human-readable, the NRN file is much easier to read.  It is important to make sure that whatever changes you make in the NRN file you make to the NPL file, so that you know they match.  Before you edit the NRN file, make sure you know how to edit the NPL file.


Note that the NRN File is not an exact unencrypted version of the NPL file, but a shortened version, which excludes any common information contained in the [[nerpnrn.h]] file.  The [[nrM file]], on the other hand, is an exact unencrypted version, which includes this common information.
Note that the NRN File is not an exact disassembled version of the NPL file, but a shortened version, which excludes any common information contained in the [[nerpnrn.h]] file, and can use various macros from that header file.  The [[nrM file]], on the other hand, is an exact version, which includes this common information.


[[Category:File formats in LEGO Rock Raiders]]
[[Category:File formats in LEGO Rock Raiders]]
[[Category:NERPs]]
[[Category:NERPs]]

Revision as of 09:41, 8 December 2018

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.

One of several Level Files located in a Mission's level folder, the NRN file is a human-readable version of a NERPs script that contains the Level's mission objectives. This file is not compiled and is editable in notepad. The NRN file is not processed by the game, and changes made to it will not affect the game. The game will only process the NPL file, which is a compiled version of the NRN script. Changes made to the NRN file will also not affect the NPL script. It is merely used for organizing the script before encrypting it into the NPL file. Currently, this is done manually by editing the NPL file with a Hex-Editing Program.

Although editing this file does not affect the game, it is essential to modifying level goals. While the compiled NPL file is not easily human-readable, the NRN file is much easier to read. It is important to make sure that whatever changes you make in the NRN file you make to the NPL file, so that you know they match. Before you edit the NRN file, make sure you know how to edit the NPL file.

Note that the NRN File is not an exact disassembled version of the NPL file, but a shortened version, which excludes any common information contained in the nerpnrn.h file, and can use various macros from that header file. The nrM file, on the other hand, is an exact version, which includes this common information.