Maps are hosted in github triplea-maps and found by the game engine through a property file, triplea_maps.yaml, that is read live every time the game starts.
Maps can be hosted at any time, before they are complete. Map repositories provide a download link that will zip a map up for you, this can be an easy way to share maps that are still being worked on.
-
Perhaps the biggest trick is to get get the folder structure right.
-
You can develop your map directly from the "downloadedFolders" map and the game engine will pick it up. Simply create your map folder there wth a 'map' folder, and then place the various map files underneath. For example, your "downloadedFolders" might look like this:
-
In the above picture, "big_world_2" is the folder we are working on, after creating a similar folder, the next level should contain a "map" folder. Any files located at this level are support. A typical config will look like this: or like this:
-
The last level contains the standard map folders and files, should look something like this:
- Create a github account
- Create a repository
- Upload your map folder to it If the upload size is too large, do it a few files/folders at a time or use 'Github Desktop' or 'Git for Windows' or 'SourceTree' to do it in bulk. Note, the files and folders uploaded should be unzipped. Zips are for download only convenience. When working with a map, you can and should have it unzipped, and same for upload.
- Map description and download links are pulled from: https://github.com/triplea-game/triplea/blob/master/triplea_maps.yaml
- Please submit a PR to that file to include/update maps.
The version field indicates to the game engine when a map should be marked as out of date for download purposes:
- To indicate in game that your map should be redownloaded, update the version number in the triplea_maps.yaml file.
Create a repository in github. Use the same general layout as the other map repositories. Stage your map repo from the 'downloadedMaps' folder, here the game engine will pick it up and you can test it out and update it. Check it all in, and push it to your repository. Then in the github repository settings, look for the 'change ownership' option, and you can request for the 'triplea-maps' org to take ownership. After ownership has been transferred we would add in a ".travis" file to enable automated zipping, and we would update: https://github.com/triplea-maps/Project/blob/master/production_config/triplea_maps.yaml, to make the map live