2024-09-07 18:15:36 +02:00
|
|
|
---
|
|
|
|
title: Mod loading order
|
|
|
|
---
|
|
|
|
|
2024-09-07 18:48:32 +02:00
|
|
|
# Mod loading order
|
2024-09-06 19:36:08 +02:00
|
|
|
|
2024-09-07 18:48:32 +02:00
|
|
|
## Startup
|
2024-09-06 19:36:08 +02:00
|
|
|
|
|
|
|
1. Search for mods
|
|
|
|
2. For each mod (sorted alphabetically by mod file name):
|
|
|
|
- _.js_ mods
|
|
|
|
1. Initialize mod, and add mod along with mod info to list
|
|
|
|
- _.tar.gz_ mods
|
|
|
|
1. Prepare temporary directory for extracted mod contents
|
|
|
|
2. Extract mod contents
|
|
|
|
3. Initialize mod, and add mod along with mod info to list
|
|
|
|
3. Load server-side JavaScript:
|
|
|
|
1. Create mod file from server-side JavaScript
|
|
|
|
2. Initialize "mod", and add "mod" to list
|
|
|
|
|
2024-09-07 18:48:32 +02:00
|
|
|
## Execution (on each server request)
|
2024-09-06 19:36:08 +02:00
|
|
|
|
|
|
|
1. Initialize SVR.JS variables
|
|
|
|
2. Invoke mods and server-side JavaScript (mods sorted alphabetically by mod file name)
|
|
|
|
3. Load SVR.JS main callback (if it's not affected by mods and server-side JavaScript)
|