Skip to content

Using LevelImporter

MissingTextureMan101 edited this page Sep 1, 2025 · 3 revisions

LevelImporter is a class from the Level Loader mod that lets you load in bpl and rbpl files.

You can read a BPL file through calling the static method BaldiLevel.Read(BinaryReader reader). Make sure when creating the BinaryReader you remember to close it to avoid issues.

You can read an RBPL file through calling the static method BaldiRoomAsset.Read(BinaryReader).

CreateSceneObject(BaldiLevel level)

Creates a SceneObject from the specified BaldiLevel.

The manager has to be assigned manually, and it is advised to rename the created objects from their auto generated names.

CreateRoomAsset(BaldiRoomAsset info, bool addPadding = false)

Creates an ExtendedRoomAsset from the specified BaldiRoomAsset.

If addPadding is true, padding will be added in the form of secret and blocked cells, commonly used for non-square special rooms.

It is heavily advised to manually set properties here, such as the name, max item weight, window object, etc. As even though some of these are supported in the format, they are not currently changable in the editor.

CreateVanillaRoomAsset(BaldiRoomAsset info, bool addPadding = false)

Same as CreateRoomAsset but returns a RoomAsset instead of an ExtendedRoomAsset

Clone this wiki locally