Skip to content

metatablecat/MS000Reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MS000Reader

Reads the .000 files from MetroSimulator 3 available at sim.bemined.nl.

Currently the package does not save due to some limitations about the format.

These are:

  1. The occurrence of a nul byte under some unknown condition after the file headers.
  • This byte is very much needed, as removing it causes the file to be corrupted.
  1. The occurrence of repeated file hashes just after the headers.

Besides these limitations, the library is able to extract all files stored in the package. Extracted files will use the hash value since the file names are not saved with the package, though you can make educated guesses which each file is. Additionally, the library can load a hashtable to map known hashes to their file names.

Usage

To open a file, use MS000.Open, this will give you a MS000File, this object is IDisposable, so make sure to dispose it when you are done with it.

using (MS000File file = new("path/to/file.000"))
{
	// Do something with the file
})

To pass a hashtable, you can do it in both the constructor, or HashGuess.GuessDictionary to pass a dictionary or hashtable file.

GuessDictionary will only assign hashes that are correct, hashes that cannot be asserted will be skipped.

The hashes should be stored in the format HASH=NAME where hash is a hex formatted hash, and name is the file name you try to assign

9C962D47=Locomotor

If you want to set the file name of one file or pack, use HashGuess.Guess with the file or pack.

Licence

This project is licensed under the MIT License. 000 file reverse engineered using cleanroom methods.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages