capturetheflag/mods/ctf_map
2018-11-26 19:16:40 +00:00
..
maps@1c32d6ec06 Add maps as submodule in mods/ctf_maps/maps 2018-11-26 19:16:40 +00:00
textures Add cavern map 2017-12-28 12:22:19 +00:00
barrier.lua Replace middle barrier with water if surrounded by water 2018-11-12 04:06:52 +00:00
depends.txt Announce map name and author to IRC 2018-01-27 19:44:25 +00:00
emerge.lua Fix attempt for loading issues 2018-01-22 03:52:51 +00:00
give_initial_stuff.lua Fix ability to use builtin inventory lists to store items between matches or craft 2018-05-04 19:01:53 +01:00
init.lua Add per-map initial stuff 2018-01-21 22:10:37 +00:00
map_maker.lua Fix accidental inclusion of 5.0-only methods 2018-11-20 13:22:44 +00:00
nodes.lua Add ind_dirt and ind_dirt_with_grass 2018-06-08 23:35:28 +01:00
README.md Add documentation to ctf_map 2017-12-27 17:38:00 +00:00
schem_map.lua Add validation to map detection, to fix some issues 2018-11-16 19:52:02 +00:00

CTF Map

This mod handles multiple maps.

Creating a new map

1. Dependencies

  • Minetest 0.4.16 or later.
  • Mods
    • ctf_map (by copying the folder from this game to minetest/mods)
    • worldedit and worldedit_commands.

2. Find an area

  • Can use Minetest Game and any mapgen.
  • It must be a cube, and the barrier will be in the exact center.
  • It should be around 230x230 in surface area, but this can vary.
  • Feel free to modify the area to your needs.

3. Select the area

There are multiple ways do this, this is the simplist in most cases.

  • If you haven't modified the map at all, do the following to speed up barrier placement:
    • Stop Minetest.
    • Open up the world's world.mt
    • Set backend to "dummy".
    • Save.
  • Using worldedit, select the area.
  • Type /gui, and click "From WE" then "To WE".
  • Check that the center location is the right place for the barrier to go.
  • Check that the bounds extend far enough.

4. Place barriers

  • Set the middle barrier direction. The barrier is a plane defined by a co-ordinate = 0. If the barrier is X=0, then it will placed with every node of the barrier having X=0. If the barrier is Z=0, then it will placed with every node of the barrier having Z=0.
  • Click "place barrier". Note that this command does not have an undo.

5. Meta data

  • Set the meta data

6. Export

  • Click export, and wait until completion.
  • Copy the two files from worlddir/schemes/ to ctf_map/maps/.
  • Rename the files so the two prefixed numbers are consistent to existing maps.
  • Profit!