KeeganW / ti4

TI4 Map Generator - Generate a custom, unique, and balanced Twilight Imperium 4 galaxy map to use in your next game!
https://keeganw.github.io/ti4/
28 stars 23 forks source link

Add Prebuilt Maps With Specific Tile Placement #27

Open KeeganW opened 3 years ago

KeeganW commented 3 years ago

Many maps are pre-built and specific. Allow those as a starting point that a user can edit/modify for their custom maps. May be tied to #16.

KeeganW commented 3 years ago

https://developers.google.com/sheets/api/quickstart/js and https://itnext.io/using-google-sheets-as-a-database-for-react-apps-6c15b4481680

pvince commented 3 years ago

Just adding onto this, it would be nice if we could use the TTS string a starting point. As an example, the Space Cats Peace Turtles 2021 tournament map, I wanted to use this as a starting point.

SCPT_2021

SCPT also published the TTS map string: 26 61 64 59 62 63 71 45 69 41 65 68 72 79 66 80 36 67 0 73 47 0 74 46 0 37 49 0 30 50 0 76 40 0 70 48

I would like to be able to open up the map generator, paste in the TTS string and have the map get updated to that list of planets.

I tried using the tiles query parameter: tiles=26,61,64,59,62,63,71,45,69,41,65,68,72,79,66,80,36,67,0,73,47,0,74,46,0,37,49,0,30,50,0,76,40,0,70,48

However, it looks like the format is a little different between the TTS string & the tiles parameter leading to a slightly different map getting generated.