Add scripting to set up maps/content #2

Open
opened 2026-05-11 00:50:30 +00:00 by AmbientImpact · 0 comments
AmbientImpact commented 2026-05-11 00:50:30 +00:00 (Migrated from codeberg.org)

Half-Life

Since valve is the default base mod, this is fairly minimal as anything we don't copy will be loaded from there:

Opposing Force

  • Copy content:
    • gearbox/events
    • gearbox/gfx/env
    • gearbox/maps (only of0a0.bsp, of1a5b.bsp, etc. campaign & ofboot{0-4}.bsp; see https://www.baeldung.com/linux/find-command-regex)
    • gearbox/maps/graphs
    • gearbox/media
    • gearbox/models
    • gearbox/resource
    • gearbox/sound
    • gearbox/sprites
    • gearbox/DECALS.WAD (also rename lowercase pls)
    • gearbox/OPFOR.WAD (also rename lowercase pls)
    • gearbox/skillopfor.cfg
    • gearbox/titles.txt
    • gearbox_hd to of_featureful_hd
    • Copy Gearbox startup video from bshift/media (if present; none in gearbox) On hold for now as it's only in AVI format which doesn't work, so it needs to be converted to WebM first.

Blue Shift

  • Copy content:
    • bshift/gfx
    • bshift/maps
    • bshift/maps/graphs
    • bshift/media
    • bshift/models (no deduplication from valve yet)
    • bshift/resource (except GameMenu.res)
    • bshift/sound (no deduplication from valve yet)
    • bshift/sprites; only the following (rest are duplicates from valve):
      • ba_gun2.spr
      • interlace.spr
      • rain01.spr
      • rain02.spr
      • red.spr
    • barney.wad
    • credits.txt
    • titles.txt
    • bshift_hd to bs_featureful_hd
    • Copy Gearbox startup video from bshift/media On hold; see Opposing Force above.
  • Convert maps using Sven Co-op's BShiftBSPConverter

Other

Should we also copy *_addon to our own campaigns' addon folders? If users add or remove from their valve_addon after this, their changes won't make it to hl_featureful_addon, so I'm on the fence about this being very useful.

Windows support

Since most people are still sadly on Windows, having them run a batch file is probably the way to go. Testing this might be annoying on Linux, but could be done via Wine/Bottles.

# Half-Life Since `valve` is the default base mod, this is fairly minimal as anything we don't copy will be loaded from there: - [x] Copy content: - [x] `valve/media/StartupVids.txt` - [x] `valve/media/valve.webm` - [x] Copy `valve_hd` to `hl_featureful_hd` - [x] Run map upgrades; see #3. - [ ] Add user-friendly error and warning messages; examples: - https://gitlab.com/playthroughline/playthroughline/-/blob/main/.ddev/commands/web/do-app - https://gitlab.com/Ambient.Impact/path-of-exile-2-item-filter/-/blob/main/makefile # Opposing Force - [ ] Copy content: - [x] `gearbox/events` - [x] `gearbox/gfx/env` - [x] `gearbox/maps` (only `of0a0.bsp`, `of1a5b.bsp`, etc. campaign & `ofboot{0-4}.bsp`; see https://www.baeldung.com/linux/find-command-regex) - [x] `gearbox/maps/graphs` - [x] `gearbox/media` - [x] `gearbox/models` - [x] `gearbox/resource` - [x] `gearbox/sound` - [x] `gearbox/sprites` - [x] `gearbox/DECALS.WAD` (also rename lowercase pls) - [x] `gearbox/OPFOR.WAD` (also rename lowercase pls) - [x] `gearbox/skillopfor.cfg` - [x] `gearbox/titles.txt` - [x] `gearbox_hd` to `of_featureful_hd` - [ ] ~~Copy Gearbox startup video from `bshift/media` (if present; none in `gearbox`)~~ On hold for now as it's only in AVI format which doesn't work, so it needs to be converted to WebM first. # Blue Shift - [ ] Copy content: - [x] `bshift/gfx` - [x] `bshift/maps` - [x] `bshift/maps/graphs` - [x] `bshift/media` - [x] `bshift/models` (no deduplication from `valve` yet) - [x] `bshift/resource` (except `GameMenu.res`) - [x] `bshift/sound` (no deduplication from `valve` yet) - [x] `bshift/sprites`; only the following (rest are duplicates from `valve`): - [x] `ba_gun2.spr` - [x] `interlace.spr` - [x] `rain01.spr` - [x] `rain02.spr` - [x] `red.spr` - [x] `barney.wad` - [x] `credits.txt` - [x] `titles.txt` - [x] `bshift_hd` to `bs_featureful_hd` - [ ] ~~Copy Gearbox startup video from `bshift/media`~~ On hold; see Opposing Force above. - [x] Convert maps using Sven Co-op's `BShiftBSPConverter` # Other Should we also copy `*_addon` to our own campaigns' addon folders? If users add or remove from their `valve_addon` after this, their changes won't make it to `hl_featureful_addon`, so I'm on the fence about this being very useful. # Windows support Since most people are still sadly on Windows, having them run a batch file is probably the way to go. Testing this might be annoying on Linux, but could be done [via Wine/Bottles](https://www.reddit.com/r/linux4noobs/comments/9m7mpb/how_do_i_run_a_bat_file_in_wine/).
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
unforeseen-consequences/featureful-campaigns#2
No description provided.