Improve directory structure of maps
- 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`
This commit is contained in:
parent
739eac1d10
commit
cbee83a2ac
5 changed files with 73 additions and 79 deletions
17
setup_maps.sh
Executable file
17
setup_maps.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue