Author Message

trvpstvr

bg
Posts: 14

Location: Bulgaria
Occupation: Sleeping
Age: 27
V$:
#1   2014-03-11 13:32          
I hope I posted in the right thread, if not, sorry for that.

Now as the title says I am looking for a tutorial on rescripting parts form LE. I know it's easier using LE2MWM but I found it crashes my game way too often. If anyone knows a good tut on this or can show me how it's done it'll be nice. Thanks in advance! :)

Remco

nl
Posts: 641

Location: Netherlands , Dordrecht
Occupation: IT
Age: 25
V$: 666
#2   2014-03-11 13:54          
You don't have to convert/rescript parts to make them work on MWM.

RedCarDriver

us
Posts: 1211

Location: United States Arizona
Occupation: it's complicated... more complicated than my relationships
Age: 30
V$: 86310
#3   2014-03-11 16:37          
Rescript? No. You might have to convert the RPK for most engines, though.

2.3.0LE catalog SuperIDs
2.2.1 MWM catalog SuperIDs

Open up the RPK with Resdecode. You can edit the RDB files that Resdecode produces (with Notepad or something), but you cannot open RPK files directly. Look for every SuperID on the LE list (in "class" or "cfg" entries). Replace them with the appropriate MWM SuperIDs. Then use Resconvert to change the RDB file back to an RPK.

For example: (This is from my Fiero.)
<FILE 00000023.res >
typeof 8
superid 0x0002AD5C
typeid 0x00000001
alias GM_L44_2_8_engine_block
isparentcompatible 1.00
</FILE>
<FILE 00000023.rsd >
script parts\engines\General_Motors_L44\scripts\GM_L44_2_8_engine_block.class
native part parts\engines\General_Motors_L44\scripts\GM_L44_2_8_engine_block.cfg
lod_amp 4.000
</FILE>
This ID is 0x0002AD5C, or just AD5C. In LE, this corresponds to "V6 Engine Blocks". You will want to replace it with the MWM "Engine Blocks" ID. If you look at the charts I linked to, the correct one is 0x0002025C.

<FILE 00000023.res >
typeof 8
superid 0x0002025C
typeid 0x00000001
alias GM_L44_2_8_engine_block
isparentcompatible 1.00
</FILE>
<FILE 00000023.rsd >
script parts\engines\General_Motors_L44\scripts\GM_L44_2_8_engine_block.class
native part parts\engines\General_Motors_L44\scripts\GM_L44_2_8_engine_block.cfg
lod_amp 4.000
</FILE>
Once you have done this for every part, you can re-convert the RPK and paste it back into your game installation.

Note: The first four digits of the SuperIDs will be 0x0004 for cars and 0x0002 for engines!

I hope this is helpful. If not, please reply again.

This post was edited by Harrison15 (2014-03-11 17:00, ago)

trvpstvr

bg
Posts: 14

Location: Bulgaria
Occupation: Sleeping
Age: 27
V$:
#4   2014-03-11 20:41          
I see, so I see the mistake I did the last time I tried to convert the SuperIDs of an engine. The first four digits I used were 0x0004 which as you said were for cars. I tried it on a 4A-GE engine and it worked.

Thanks for the quick tutorial on .rpk editing, eaven better that I needed it exactly for an engine :D.