LSRutil.NET is a library for reading and manipulating various types of file from the game LEGO Stunt Rally. It allows you to read and write track files, AI data, RFH/RFD resource files, and much more.
using LSRutil;
using LSRutil.TRK;
...
var reader = new TrkReader();
var track = reader.ReadTrack(@"C:\LSR\SavedTracks\dune.trk");
Console.WriteLine("This track is using the {0} theme!", track.theme);
Check out all of the examples!
Format | Read | Write |
---|---|---|
Track File (.trk)1 | ✔️ | ✔️ |
AI Data (.bin, .txt) | ✔️ | ✔️ |
AI Cornering Data (.dat, .txt) | ✔️ | ✔️ |
Moto Video (.mvd) | ✔️ | ✔️ |
Resource Archive Files (.rfh/.rfd) | ✔️ | ✔️ |
Resource Table (.rtb) | ✔️ | ✔️ |
Metadata File (.mdf) | ❌ | ❌ |
??? (.mfd) | ❌ | ❌ |
??? (.mdd) | ❌ | ❌ |
Xanadu Binary Format (.xbf) | ⚠ | ❌ |
1 Format is available in LSRutil.NET.Lite
Well, the Lite version only contains code to read and write track files (.trk), so it can be as portable as possible, without having to carry heavy dependencies like DotNetZip alongside it. Functionally, the code for reading tracks is the same in both versions, but the full version supports more formats.
I like to think I write useful code, so here are some projects that use LSRutil.NET. Know of any I missed? Create a pull request!
There might be a version for it.
- Coming soon...
Pull requests are always welcome, but major changes will not be accepted if they do not have a corresponding issue. Please open an issue first before working on a major feature.