# Installation

1. Copy `lastresort_loading` into the `resources` directory. Do not rename it.
2. Stop or remove the old loading-screen resource; only one can run at a time.
3. Add this near the top of `server.cfg`:

```cfg
ensure lastresort_loading
```

4. Set the text, colors, images, video, and music in `config.js`, then restart the server.

## Configure

- Put videos in `assets/video`, images and logos in `assets/img`, and music in `assets/audio`.
- List every file in `config.js`; the first compatible media source will be used.
- Configure branding, server links, staff, news, tips, rules, and locale in the same file.
- Optional live news and tips can be loaded from local JSON files or server convars.

## Verify

1. Connect with a clean client and confirm the screen opens before other resources load.
2. Check video or slideshow playback, music controls, links, and responsive layout.
3. Confirm the loading screen closes after the player finishes connecting.
4. Check the console for deferral, remote content, or malformed configuration warnings.

## Important

- Put media files in the matching `assets` subdirectory.
- Disable video in the config when using images only.
- The rules gate is disabled by default; enable it only after writing your rules.
- Back up `config.js`, custom assets, and `data` before updating.
