cbee83a2ac
- Each map will have its own sub-dir, containing - `map.conf` (used to be `<map_name>.conf`) - `map.mts` (used to be `<map_name>.mts`) - `screenshot.png` (used to be `<map_name>.png`) - `skybox_<n>.png` (used to be `<map_name>_skybox_<n>.png`) - The `ctf_map` post-processing actions for maps has been moved into a dedicated shell script `setup_maps.sh`. This script appropriately renames all the textures to while copying them over to the mod's textures/ sub-dir. e.g. - `cool_map/screenshot.png` ---> `cool_map.png` - `awesome_map/skybox_2.png` ---> `awesome_map_skybox_2.png`
17 lines
527 B
Bash
Executable file
17 lines
527 B
Bash
Executable file
cd mods/ctf/ctf_map/maps/
|
|
|
|
# Copy textures from map sub-dirs to ctf_map/textures
|
|
for f in *; do
|
|
if [ -d ${f} ]; then
|
|
# Screenshot
|
|
cp ${f}/screenshot.png ../textures/${f}.png
|
|
|
|
# Skybox textures
|
|
cp ${f}/skybox_1.png ../textures/${f}_skybox_1.png
|
|
cp ${f}/skybox_2.png ../textures/${f}_skybox_2.png
|
|
cp ${f}/skybox_3.png ../textures/${f}_skybox_3.png
|
|
cp ${f}/skybox_4.png ../textures/${f}_skybox_4.png
|
|
cp ${f}/skybox_5.png ../textures/${f}_skybox_5.png
|
|
cp ${f}/skybox_6.png ../textures/${f}_skybox_6.png
|
|
fi
|
|
done
|