Baldi's Basics Wiki
Baldi's Basics Wiki
Advertisement
Baldi's Basics Wiki
World development
AudioLevel editor
Level generatorLighting
MasksModelsPlaceholders
SeedsSpritesTextures
TilesVersion history
For the level generating system for pre-made levels, see Level editor.

The level generator is the system that generates levels randomly in Baldi's Basics Plus.

Steps[]

The level generator goes through multiple steps to set up the level and prepare the map.

  1. The level generator chooses a seed to start working with, if it's not already set by the player.
  2. It sets up the NPC cells, level details, events, field trips, and materials.
  3. It creates an imaginary border made of cells and sets up the Dijkstra map.
  4. It spawns a random special room and sets up the hallways.
  5. It spawns special hallways.
  6. It creates the cell plots and expands them.
  7. It fills in the other hallways.
  8. It deletes the plots and adds more special hall areas, and builds additional hallways.
  9. It adds the exit cells and updates the cells.
  10. It builds the field trip and rooms and sets up the doors.
  11. It spawns in all of the tiles and builds the room functions and doors.
  12. It sets up the NavMesh.
  13. It builds the hall objects and posters.
  14. It spawns the lights, and items.
  15. It adds the events and NPC spawn points.
  16. It sets up the culling system, and spawns in the player.

Trivia[]

  • V0

    Level generator error screen.

    LevelGenError

    Ditto, but from V0.4.1 to V0.5.2.

    The level generator very rarely crashes when generating the level. Keep in mind that mods that alter how level generation works can occasionally cause crashes on seeds that normally would not crash.
  • Prior to V0.4, the level generator would take around 5–30 seconds to generate a level before the "Play!" button shows up.
    • Since this version, however, it only takes roughly around 5-10 seconds.
  • LevelGenerator script in Classic Remastered
    In Baldi's Basics Classic Remastered, there is a script for the level generator, named LevelGenerator. However, it does not work no matter what as the script reads:
The random level generator has been removed from this version of the game. Please check out Baldi's Basics Plus for randomly generated chaos!

  • Starting from V0.8, the level generator will generate dead-ends and bottlenecks less frequently.
  • In Baldi's Basics Kickstarter Exclusive Demo, the player could see the level being generated with placeholder textures when winning or losing a floor. These textures did not appear when completing floor 3 since it is the last floor.

Glitches[]

Audio[]

Sound Description
When the level generator error screen appears after the level generator crashes. It also plays when the fake error screen appears in Baldi's Basics Classic Remastered.
Advertisement