Skip to content

AraHaanOrg/CrashEdit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrashEdit

This program is an application designed for modifying the game files of the original Crash Bandicoot video game trilogy.

Supported Games

Note that CrashEdit does not work directly with ISO's, but rather with the NSF files stored on the game discs.

  • SCUS-94900 Crash Bandicoot (read only) (experimental)
  • SCES-????? Crash Bandicoot (read only) (experimental) (untested)
  • ????-????? クラッシュバンディクー (read only) (experimental) (untested)
  • US BETA 96/03/08 Crash Bandicoot "Prototype" (no nsd patching) (experimental)
  • US BETA 96/05/11 Crash Bandicoot "E3 Demo" (no nsd patching) (experimental)
  • SCUS-94154 Crash Bandicoot 2: Cortex Strikes Back
  • SCES-00967 Crash Bandicoot 2: Cortex Strikes Back
  • SCPS-10047 クラッシュバンディクー 2: コルテックスのぎゃくしゅう! (incomplete support)
  • EU BETA 97/09/14 Crash Bandicoot 2: Cortex Strikes Back "Review Copy"
  • SCUS-94244 Crash Bandicoot: Warped
  • SCES-????? Crash Bandicoot 3: Warped (untested)
  • ????-????? クラッシュバンディクー 3: ブッとび! 世界一周 (untested)

Usage

For users acquainted with Microsoft Windows, "directories" are commonly referred to as "folders" on windows. When the term "directory" is used here, think "folder".

Some basic knowledge of how Crash Bandicoot game files are laid out is necessary to use this application. CrashEdit is not designed to work directly on disc images (aka ISO's), but instead on files with the "NSF" file format. This is a custom format created by Naughty Dog and used in the original Crash Bandicoot trilogy (not including CTR).

First, a Crash Bandicoot game CD will have a root directory with contents similar to the following:

  • S0 (directory)
  • S1 (directory)
  • S2 (directory)
  • S3 (directory)
  • SYSTEM.CNF (playstation game boot configuration file)
  • SCUS_949.00 (playstation game exe file)

Within the S0/S1/etc directories you will find files named similar to the following:

  • S0000013.NSD (nsd file)
  • S0000013.NSF (nsf file)
  • S0000014.NSD (nsd file)
  • S0000014.NSF (nsf file)
  • S0000015.NSD (nsd file)
  • S0000015.NSF (nsf file)
  • ...

Notice how each filename has an NSD/NSF pair. Each pair corresponds to a specific level in the game, and these files contain the game data for that level. The last two characters before the .NSD or .NSF extension are the "level ID" for that specific level. As an example, the level titled The Lost City has the level ID 20, and its file pair is the following, found in the S2 directory:

  • S0000020.NSD (nsd file)
  • S0000020.NSF (nsf file)

A complete list of level ID's and their associated levels can be found here:

https://sites.google.com/site/crashpsxsite/structure

The NSF file contains the actual game data for the level and is what CrashEdit is designed to read and manipulate. An NSF file consists of entries. Each entry has a 5-character name, and represents a game asset such as a sound effect or 3d model. The following entry types are recognized and supported by CrashEdit:

  • Animation Entry: One animation used by a game object. Each frame is a full set of vertices.
  • Model Entry: One model used by a game object. Polygon data is stored in a Model Entry, but vertex data is stored in an Animation Entry.
  • Scenery Entry: One section of the 3D model for a level's scenery.
  • Entity Entry: Describes one level "zone", including objects in that zone as well as the zone's camera configuration.
  • Sound Entry: A sound effect. This entry only contains the raw sound data without any metadata such as the sample rate.
  • Music Entry: A set of music tracks in SEQ format (very similar to MIDI format), and possibly the associated VH file (wavebank header file). Each level zone will refer to a single music entry which will be used for playback while the camera is in that zone.
  • Wavebank Entry: Part of the level's wavebank data (VB file). Crash music is in MIDI format, but does not use General MIDI (GM) instruments. Instead, a custom instrument set is used for each level theme. The audio data for this instrument set (wavebank) is very large, so it must be split into multiple entries (up to a maximum of 7).
  • Speech Entry: Similar to the sound entry, but localized (supporting multiple languages). Long dialogue is often split up into multiple of these entries due to size constraints.

Entries are organized into containers which are referred to as chunks. Each chunk is 64 KB in size, and so it cannot contain more than 64 KB of entry data. (If you attempt to save an NSF file which has a chunk containing more than 64 KB of entry data, a packing error will occur and the save operation will fail.) There are different types of chunks: the normal type and special audio types. (As a general rule, you should keep audio-related entries in their proper chunk types or else the playstation will be unhappy.) There is also a special chunk type, Texture Chunk, which contains raw texture data instead of entries.

The NSD file contains various data used to assist the game in properly accessing the NSF files. Included in the NSD file is a table mapping entries to chunks. If you add chunks, delete chunks, add entries, delete entries, move entries to other chunks, rename entries, or reorder chunks, you will need to update this table. CrashEdit can automatically patch this table with the Patch NSD button.

System Requirements

Aside from the obvious monitor, keyboard, and mouse. However, a mouse scroll wheel is not required.

  • .NET Framework 2.0 or Mono
  • OpenTK 1.0
  • Preferably at least 60 MB of physical memory available to the application or you may encounter thrashing while loading or saving large files

Known Issues

Incomplete Features

Significant Issues

  • All Games: The application does not report which chunk a packing error occured on when attempting to save an NSF file.
  • Crash 1 All: "Patch NSD" does not work.
  • Crash 1 Retail: Saving NSF files is not yet properly supported.
  • Crash 2 NTSC-J Retail: Most levels contain special not-yet-supported speech entries.

Insignificant Issues

These issues have no significant effect on the operation of the program, but are still technically issues with the program. This list can be safely ignored by most users.

  • All Games: Any data hidden within unused sections of NSF files may be ignored by the program without warning, and will not be preserved.
  • Crash 1 All: Music entries containing VH data may be saved out with different data in unused sections.
  • Crash 2 NTSC-J Retail: A music entry in S000003C.NSF containing VH data may be saved out with different data in unused sections.

Bugs

  • All Games: Zooming in completely on a 3d viewer will cause intense Z-fighting.
  • All Games: Exporting VABs in DLS format is currently broken. The workaround is to open and resave the DLS file with Awave Studio.
  • Crash 1 All: Exporting to COLLADA format is currently broken. However, these files can be opened without issue in Noesis.

Broken Game Files

  • Crash 1 All: S0000002.NSF, if present, is an older-format file which is not supported.
  • Crash 1 All: S0000010.NSF, if present, is an older-format file which is not supported.
  • Crash 1 Retail: S0000038.NSF contains a music entry with an incorrect SEP track count.
  • Crash 1 Retail: S0000004.NSF is actually a beta MAR08/MAY11-format file.
  • Crash 1 Retail: S000000B.NSF is actually a beta MAR08/MAY11-format file.
  • Crash 1 Retail: S000000D.NSF is actually a beta MAR08/MAY11-format file.
  • Crash 1 Beta MAY11: S000001C.NSF contains two demo entries with incorrect magic numbers.

Mono-specific Issues

These are issues you may encounter if you are using Mono instead of the .NET Framework to run this application.

  • Opening a texture chunk invokes an unimplemented feature in Mono which will crash the application. If you are building from source, you may work around this by commenting out the CreateEditor() method in CrashEdit/Controllers/TextureChunkController.cs. You may grep for // MONO USERS to find the specific method.

Installation

Just unzip into a directory and run the exe.

If you are working with the source code, it is a VC# 2005 Express Edition solution which consists of two projects, "Crash" and "CrashEdit". You will need to set "CrashEdit" as the startup project to run the application under the VS debugger.

Where To Get

Precompiled binary files (EXE files) can be acquired from a public dropbox directory here:
https://www.dropbox.com/sh/yv93g4wsdde32s3/NuCSJR37Oo

Source code is available as a git repository on github at:
https://github.com/ughman/CrashEdit

Author Contact Info

I can be contacted in various ways:

  • As chekwob@yahoo.com via email (If your email is not in english, please include "CrashEdit" in the email subject line so I know it's not spam)
  • As chekwob on the XeNTaX forum
  • As chekwob on the CM forum (hpzr.proboards.com)
  • As ughman on github (this is not checked very often)

Packages

No packages published

Languages

  • C# 100.0%