Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

[PC] Street Legal .scx

Featured Replies

  • Localization

Does anyone have an idea to start a new plugin that imports Street Legal .scx files and convert map models from RPKs into Wavefront OBJs? Here is InvictusExportV3.dle which is used to export custom car models SCXs using 3ds Max. And here is the resource manager that allows authors to compile RPKs.

streetlegal_scx.rar streetlegal_scx_exporter_3dsmax.rar streetlegalresourcemanager.rar

Solved by marco1990

  • Supporter

Did you manage to load any rpk file into the resource manager? (It doesn't recognize them.)

slresman_FjyIwXudjE.png.1d1699ccbd2f0aec529679fffcf48e76.png

As I wrote I don't write plugins but the scx mesh looks simple enough to be ..., well, no.

-------------------------------------------------------

Hex2obj0.25bW7_JDIc4xDLWo.png

 

Edited by shak-otay

  • Supporter

Thanks. It's a structure viewer for rpk (where you can make edits):

Quote

    <RES>
        TypeID=0x00000184
        SuperID=0x00000183
        AdditionalType=4
        Alias=left
        IsParentCompatible=1
        TypeOfEntry=5
        <RSD>
            <STR>
                sourcefile cars\racers\Stallion_V7\before use\extra_meshes\left_brake_light_glow.scx
            </STR>
        </RSD>
    </RES>

test_track.rpk causes an exception when you try to scroll:

Quote

System.InvalidOperationException: A highlighting rule matched 0 characters, which would cause an endless loop.
Change the highlighting definition so that the rule matches at least one character.

So first lines here only:

Quote

    <EXTERNAL_REFS>
        system.rpk
        obstacles\common.rpk
        obstacles\test_track.rpk
        maps.rpk
        obstacles.rpk
    </EXTERNAL_REFS>
    <RES>
        TypeID=0x00000001
        SuperID=0x00010004
        AdditionalType=17
        Alias=Test
        IsParentCompatible=1
        TypeOfEntry=1
        <FLOAT_BOUNDS>
            29,37963867
            25,00000000
            -151,50634766
            825,19305420
            45,00000000
            910,51647949
            0,00000000
            0,00000000
            0,00000000
            0,00000000
            0,00000000
            0,00000000
        </FLOAT_BOUNDS>
        <RSD>

edit: btw, there's a "resource converter" here which can convert from "rdb to rpk" and reverse. (resdecode: rpk to rdb converter, fails on test_track.rpk with "RPAK header error")

When resdecode is excuted by "resource decoder" there's some output but unfinished:

Quote

<FILE external_links >
system\
obstacles\common\
obstacles\test_track\
maps\
obstacles\
</FILE>
<FILE 00000001.res >
typeof    1
superid    0x00010004
typeid    0x00000001
alias    Test
isparentcompatible    1.00
</FILE>
<FILE 00000001.rsd >
          r        –    €    ëA  ÈA¢Ã[LND  4B¡cD                           ¢  !  €?«”e Q   sun              PÃG PÃG PÃG                           •  !  €?ü”e Q   skydome              PÃG PÃG PÃG                        RSD |   gametype 0x00010035
params 0x00000002,0,0,0,0,0,0,maps\test_track\meshes\test_track.scm,maps\test_track\ai\test_track.trc
</FILE>
<FILE 00000002.res >
typeof    14
superid    0x00040003
typeid    0x00000002
alias    Test
isparentcompatible    1.00
</FILE>

A correct rdb looks like so (ASCII only contents):

Quote

<FILE external_links >
system\
</FILE>
<FILE 00000001.res >
typeof    5
superid    0x00010007
typeid    0x00000001
alias    cars
isparentcompatible    1.00
</FILE>

...

The SLRR editor allows to edit Pos and rot of slots (example Duhen):

wbBZhScVdC.thumb.png.bd3b674c1251f002e70b7fdc2fcb2d7c.png

edit2: finally, "Stallion furrano" rpk to rdb conversion (with resdecode "Stallion furrano") :

stallion furrano.zip

 

Edited by shak-otay

  • Author
  • Localization
On 4/19/2026 at 9:12 AM, shak-otay said:

Thanks. It's a structure viewer for rpk (where you can make edits):

test_track.rpk causes an exception when you try to scroll:

So first lines here only:

edit: btw, there's a "resource converter" here which can convert from "rdb to rpk" and reverse. (resdecode: rpk to rdb converter, fails on test_track.rpk with "RPAK header error")

When resdecode is excuted by "resource decoder" there's some output but unfinished:

A correct rdb looks like so (ASCII only contents):

The SLRR editor allows to edit Pos and rot of slots (example Duhen):

wbBZhScVdC.thumb.png.bd3b674c1251f002e70b7fdc2fcb2d7c.png

edit2: finally, "Stallion furrano" rpk to rdb conversion (with resdecode "Stallion furrano") :

stallion furrano.zip 5.74 kB · 0 downloads

 

Is there any fixed alternative to resdecode and SLStudio for RPK-embedded map models with POLY and PHYS chunks that work for test_track.rpk? You got an error for test_track.rpk because resdecode and SLStudio doesn't support RPKs with embedded map models.

  • Supporter

I tried patching la_street_racing.bms from, Aluigi, which usually works perfectly with some RPK files, Fantasy_Quaddro for example, but failes with test_track.rpk, like other tools, too.

It's probably very easy to patch, there's no compression, but I got tired with it and finally extracted the meshes directly (combined POLY and the following mesh in one part each, 620 meshes in sum), not to interesting, imho:

 

 

track2 - Copy.png

track3 RPK - Copy.png

  • 5 weeks later...
  • Author
  • Localization
On 4/27/2026 at 3:55 PM, shak-otay said:

I tried patching la_street_racing.bms from, Aluigi, which usually works perfectly with some RPK files, Fantasy_Quaddro for example, but failes with test_track.rpk, like other tools, too.

It's probably very easy to patch, there's no compression, but I got tired with it and finally extracted the meshes directly (combined POLY and the following mesh in one part each, 620 meshes in sum), not to interesting, imho:

 

 

track2 - Copy.png

track3 RPK - Copy.png

Here is the file format binary template for Street Legal RPKs. 

streetlegal_rpk.bt

 

streetlegal_rpk_mapmodels.bt

Edited by mrmaller1905

1 hour ago, mrmaller1905 said:

In addition to resdecode, I've made a Python scripts that imports map models from Street Legal/Street Legal Racing: Redline into Blender or converts into Wavefront OBJ.

bandicam 2026-05-28 12-16-09-097.jpg

rpk2obj.py 4.26 kB · 2 downloads importstreetlegalmapsblender.py 3.67 kB · 2 downloads test_track_slrr.rar 2.16 MB · 1 download

Check the rules: #17 - Scripts appear to be AI-generated

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.