-
Notifications
You must be signed in to change notification settings - Fork 4
Using LevelImporter
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).
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.
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.
Same as CreateRoomAsset but returns a RoomAsset instead of an ExtendedRoomAsset