# Load large section of map without revealing it

**URL:** <https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408>\
**Category:** The Bunker\
**Created:** [October 29, 2017, 8:25am UTC](https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408 "2017-10-29T08:25:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pandromidal](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/pandromidal/32/430_2.png) [@Pandromidal](https://discourse.cataclysmdda.org/u/Pandromidal)\
**Post date:** [October 29, 2017, 8:25am UTC](https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408/1 "2017-10-29T08:25:12Z")

</div>

I’m sharing a new save with a friend so we can play parallel universe characters. Is it possible to force the map to generate so that more of the world will have the same items, etc.?

The only thing I can think of is to start a second character and use debug to load in the area around the first character, then get rid of that character.

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [October 29, 2017, 8:46am UTC](https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408/2 "2017-10-29T08:46:07Z")

</div>

Currently no good way, but it might be possible to do it with a lua script. The script would need to create a tinymap (not sure if lua can do it), place it where it is needed, try to load a location, change position, load new segment and so on until entire area is covered.

I think there was a request to allow mapgen seed mechanics, but it’s nowhere near doable yet due to how tightly coupled mapgen mechanics are with map mechanics.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [October 29, 2017, 2:41pm UTC](https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408/3 "2017-10-29T14:41:16Z")

</div>

Map seeds roughly require reimplimenting all of mapgen, I don’t expect it to ever happen.

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [October 29, 2017, 3:24pm UTC](https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408/4 "2017-10-29T15:24:23Z")

</div>

> [@Coolthulhu](#):
>
> Currently no good way, but it might be possible to do it with a lua script. The script would need to create a tinymap (not sure if lua can do it), place it where it is needed, try to load a location, change position, load new segment and so on until entire area is covered.

Jumping overmap to generate it, then saving - something like this:

```auto
for x=0,200,1 do

	y = 0
	z = 0
	player:setpos(tripoint(x,y,z))

end

g:save()
```

---

<div class="post-metadata">

**Author:** ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)\
**Post date:** [October 29, 2017, 4:50pm UTC](https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408/5 "2017-10-29T16:50:08Z")

</div>

> [@Kevin Granade](#):
>
> Map seeds roughly require reimplimenting all of mapgen, I don’t expect it to ever happen.

There is a simpler way.  
By giving each overmap tile its own sub-seed and setting that before mapgen of this specific overmap coordinate, there would be no need to ensure identical order of generation.  
Then it’s just a search+replace over a large number of rng calls.

---

<div class="post-metadata">

**Author:** ![Mantar](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mantar/32/42_2.png) [@Mantar](https://discourse.cataclysmdda.org/u/Mantar)\
**Post date:** [October 29, 2017, 7:55pm UTC](https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408/6 "2017-10-29T19:55:59Z")

</div>

> [@Pandromidal](#):
>
> I’m sharing a new save with a friend so we can play parallel universe characters. Is it possible to force the map to generate so that more of the world will have the same items, etc.?

Put the save folder on a shared drive, mount it locally, and coordinate to ensure you aren’t playing at the same time? Alternately, keep it stored remotely and download a local copy before play, then upload afterwards. More of a hassle that way, though.  
Another option would be to have one of you set up a server and the other play remotely.

---

<div class="post-metadata">

**Author:** ![Pandromidal](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/pandromidal/32/430_2.png) [@Pandromidal](https://discourse.cataclysmdda.org/u/Pandromidal)\
**Post date:** [October 29, 2017, 8:41pm UTC](https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408/7 "2017-10-29T20:41:29Z")

</div>

Does anyone know how many tiles worth of data are loaded in each direction? I’m just teleporting a debug character around.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [October 30, 2017, 3:20am UTC](https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408/8 "2017-10-30T03:20:23Z")

</div>

Each teleport is going to load at least a 5x5 square of overmap squares centered on your teleport target.  
So teleport 5 overmap tiles in a particular direction and you’ll have no gap.

---

<div class="post-metadata">

**Author:** ![jacob.exe](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jacob.exe/32/7356_2.png) [@jacob.exe](https://discourse.cataclysmdda.org/u/jacob.exe)\
**Post date:** [November 1, 2017, 12:23am UTC](https://discourse.cataclysmdda.org/t/load-large-section-of-map-without-revealing-it/14408/9 "2017-11-01T00:23:11Z")

</div>

> [@Mantar](#):
>
> [quote=“Pandromidal, post:1, topic:14408”]I’m sharing a new save with a friend so we can play parallel universe characters. Is it possible to force the map to generate so that more of the world will have the same items, etc.?

Put the save folder on a shared drive, mount it locally, and coordinate to ensure you aren’t playing at the same time? Alternately, keep it stored remotely and download a local copy before play, then upload afterwards. More of a hassle that way, though.  
Another option would be to have one of you set up a server and the other play remotely.[/quote]

I did this with my friend: we had the map saved to the local drop box folder in each of our machines, which would then update any changes made on an identical map stored on a drop box server. Any changes I made to my local map (when saved) would be reflected on the one hosted by drop box and then subsequently to my friend’s locally saved map, effectively allowing us to play on the same world at the same time.

For visual aid, a change would look like this, starting with a change to my map:  
Game(me) \> LocalMap(me) \> SharedMap(dropbox) \> LocalMap(friend) \> Game(friend)

All we had to do was not cross reality bubbles and auto-save semi-frequently to insure an identical map. This allowed us to visit places where the previous person was not too long ago, including player bases.
