Skip to content

Expanding MRL3 Reference List

AsteriskAmpersand edited this page Dec 19, 2018 · 2 revisions

Thanks to RyuNStage and Jodo from the DMQW Modding group and TheCrazyT for their research and documentation without which this wouldn't be possible.

Pre-Requisites:

Expand Counts, Update Reference:

Open the mrl3 in 010, run the mrl3 template on it

In the Header section locate the texture count

Increase count by 1

Locate the material offset

And increase it by 0x110

For each Material entry on the mrl3 go to the startAddr

and increase it by 0x110

You must do this for each material in the mrl3 (in this case there are only 2 some mrl3 can go far higher like 5 or even more

Insert a new entry into the array

Go to the last texture on the texture list

Place your cursor in the edge between blocks (blue and cyan here) and use the edit>insert>insert bytes option

Insert 0x110 bytes (110 hex)

Copy the entire previous texture entry (including and SPECIALLY the weird symbols at the start)

Paste them on the newly created space

Give it the route of the new map you are introducing (in this case an EM)

Re-run the template so things update

Reference the new map as an argument

Each UnknS2A is a material, in this particular example I know only the first material matters. You might need to do this in only one of the materials or in multiple of them depending on what you are adding and what model it's tied to.

On the sub list of unknS find the index of the map you wish to change, for weapons entry number 3 is the Emissions Map. Change it's texid to the index of our added map in this case 11 (there were 10 texture ids before and we added 1 so our new map is in 11)

And we are done.