Crusader_Decomp/docs/SOTE/level-modules.md
2026-10-11 18:49:46 +02:00

67 lines
5.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Shadows of the Empire PC Level Modules
## Scope and Method
- Target: the installed PC v1.1 build in `C:\RE\Star Wars - Shadows of the Empire\Sdata`; `Shadows.exe` SHA-256 `bb63e515b39467947adad5e7c94fce1b0d00f0a815ca5f8cd24d67b373b46175`.
- The installation contains `DATA00.DLL` through `DATA31.DLL`. They are PE32 modules, not loose `.map` files.
- Static inspection of each export found `GetLevelStub` returning the module's numeric suffix (0 through 31; module 00 returns zero). Each module also has an embedded `EEEENNNNDDDD` title marker. No DLL was loaded or executed during this inspection.
- In `Shadows.exe`, `FUN_00441540` builds `sdata\data%02d` and bounds the requested module ID to 0–31 (out-of-range values fall back to 2). `FUN_00441660` loads the DLL and resolves `GetTheDataStub` and `GetLevelStub`.
## Finding
No dedicated debug/test map was identified in the shipped 32-module set. Every module has a title identifying it as a menu, a campaign segment, or a cutscene. A static scan of printable strings found no explicit `debug`, `test level`, `unused level`, `prototype map`, `development map`, `training level`, or `sandbox` label.
This is a bounded negative finding, not proof that every module is played on every route. `FUN_0044f270` uses a next-level override, while `FUN_0044f570` remaps some requested IDs (`9 -> 10`, `11/13 -> 14`, `18/19 -> 20`, `23 -> 24`, `28 -> 29`). The remapper is used by gameplay and debug-menu paths, so those remaps alone do not establish reachability. Follow-up tracing found a separate state-4 path to module 12; its trigger and ordinary-campaign reachability remain unresolved. Chapter-number gaps in the titles are likewise not enough to call a map cut.
**Conclusion:** no clearly labeled leftover debug map is present among `DATA00.DLL`–`DATA31.DLL`. The installation does contain cutscene and special-flow modules in addition to playable mission segments; whether any particular one is unreachable in every normal route remains unresolved.
## DATA12: End Game (Cut 02)
`DATA12.DLL` is a 55,296-byte PE32 module. Its `GetLevelStub` returns 12, `GetTheDataStub` returns the module data table at `0x1000B768`, and its embedded title marker is `EEEENNNNDDDDEnd Game (Cut 02)` (file offset `0x9b0c`). The payload also contains the string `Where am I?` at file offset `0x9978`; its use is not established by this static inspection.
The executable has an explicit special-flow route to this module:
- `FUN_0041088c` calls `FUN_00411660(-2)` when the game-state value at `DAT_004caf34` is 4.
- `FUN_00411660` translates `-2` to level ID 12 and passes it through `FUN_0044f570` as the next-level override.
- `FUN_0044f570` does not remap 12, and the normal transition routine then loads module 12 through the common level loader.
This establishes that DATA12 is not merely a numbered DLL with an interesting title or a debug-selector option: the executable contains a distinct runtime path that requests it. The code examined here does not identify what sets state 4, so it does not prove which ending condition reaches the path or whether it is exercised in an ordinary campaign run. The debug `Select Level` option provides a separate direct way to request ID 12.
## Module Index
| Module ID | File | Embedded title | Classification |
| ---: | --- | --- | --- |
| 0 | `DATA00.DLL` | Cut 00 (Intro) | Cutscene |
| 1 | `DATA01.DLL` | Cut 01 (Hoth) | Cutscene |
| 2 | `DATA02.DLL` | Main Menu | Menu |
| 3 | `DATA03.DLL` | 1. Battle on Hoth | Campaign segment |
| 4 | `DATA04.DLL` | 2a. Hoth Base | Campaign segment |
| 5 | `DATA05.DLL` | 2b. Hoth Base | Campaign segment |
| 6 | `DATA06.DLL` | 3. Asteroid Chase | Campaign segment |
| 7 | `DATA07.DLL` | Cut 03 (Train) | Cutscene |
| 8 | `DATA08.DLL` | 4a. Train | Campaign segment |
| 9 | `DATA09.DLL` | Cut 04 (IG 88) | Cutscene |
| 10 | `DATA10.DLL` | 4b. Junk Heap | Campaign segment |
| 11 | `DATA11.DLL` | Cut 05 (Gorge) | Cutscene |
| 12 | `DATA12.DLL` | End Game (Cut 02) | Special end-game cutscene; state-4 route exists, trigger unresolved |
| 13 | `DATA13.DLL` | Cut 06 (Gorge Trans) | Cutscene |
| 14 | `DATA14.DLL` | 6a. Gall Cliff Base | Campaign segment |
| 15 | `DATA15.DLL` | 6b. Gall Cliff Base | Campaign segment |
| 16 | `DATA16.DLL` | Cut 07 (Bike Intro) | Cutscene |
| 17 | `DATA17.DLL` | 7. Speeder Bike Chase | Campaign segment |
| 18 | `DATA18.DLL` | Cut 08 (Bike End) | Cutscene |
| 19 | `DATA19.DLL` | Cut 09 (Freighter) | Cutscene |
| 20 | `DATA20.DLL` | 9a. Space Freighter | Campaign segment |
| 21 | `DATA21.DLL` | 9b. Space Freighter | Campaign segment |
| 22 | `DATA22.DLL` | 9c. Space Freighter | Campaign segment |
| 23 | `DATA23.DLL` | Cut 10 (Throne) | Cutscene |
| 24 | `DATA24.DLL` | Cut 11 (Sewer) | Cutscene |
| 25 | `DATA25.DLL` | 10. Sewer | Campaign segment |
| 26 | `DATA26.DLL` | 11a. Xizor Palace | Campaign segment |
| 27 | `DATA27.DLL` | 11b. Xizor Palace | Campaign segment |
| 28 | `DATA28.DLL` | Cut 12 (Battle) | Cutscene |
| 29 | `DATA29.DLL` | 12. Station Chase | Campaign segment |
| 30 | `DATA30.DLL` | 13. Skyhook Battle | Campaign segment |
| 31 | `DATA31.DLL` | Cut 13 (Finale) | Cutscene |
Titles are extracted from the installed module files. “Campaign segment,” “cutscene,” and “menu” are classifications based on those titles, not independent runtime observations. The PC executable also contains a separate debug-menu level navigation path; its existence does not make the corresponding module a debug map.