# Read file form external file and generate a map

**URL:** <https://forums.unrealengine.com/t/read-file-form-external-file-and-generate-a-map/40177>\
**Category:** Asset Creation\
**Tags:** unreal-engine\
**Created:** [August 30, 2015, 9:00am UTC](https://forums.unrealengine.com/t/read-file-form-external-file-and-generate-a-map/40177 "2015-08-30T09:00:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4202017](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4202017](https://forums.unrealengine.com/u/anonymous_user_d4202017)\
**Post date:** [August 30, 2015, 9:00am UTC](https://forums.unrealengine.com/t/read-file-form-external-file-and-generate-a-map/40177/1 "2015-08-30T09:00:10Z")

</div>

Is there a way to read file from an external source and generate a map according to it ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcf66e2c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcf66e2c](https://forums.unrealengine.com/u/anonymous_user_bcf66e2c)\
**Post date:** [August 30, 2015, 9:40am UTC](https://forums.unrealengine.com/t/read-file-form-external-file-and-generate-a-map/40177/2 "2015-08-30T09:40:54Z")

</div>

Yes, this is exactly how im doing it for one of my projects. Basically you just need to have a blank world. (I modified the source to make the world first created transient, so it never gets marked as dirty). Then you load in your map file, I am using the Game Instance to do that, and then spawn your actors based on your map file into the blank world. Bare in mind you will have to generate your own physics meshes for them (or use complex as simple, but if your loading big worlds, this will get very expensive), and you will have to generate a runtime navmesh.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4202017](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4202017](https://forums.unrealengine.com/u/anonymous_user_d4202017)\
**Post date:** [September 2, 2015, 2:39pm UTC](https://forums.unrealengine.com/t/read-file-form-external-file-and-generate-a-map/40177/3 "2015-09-02T14:39:21Z")

</div>

thanks for the replay, but I am getting started on a 2D game, emm and its a strategy game… its there a way to get it done with tile maps (assume that I have all the tile sets ready just need the input file to indicate where to put them)? and can it easily be done ?

---

<div class="post-metadata">

**Author:** ![magnificus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@magnificus](https://forums.unrealengine.com/u/magnificus)\
**Post date:** [September 2, 2015, 11:07pm UTC](https://forums.unrealengine.com/t/read-file-form-external-file-and-generate-a-map/40177/4 "2015-09-02T23:07:24Z")

</div>

You should look into [instanced static meshes](https://docs.unrealengine.com/latest/INT/BlueprintAPI/Components/InstancedStaticMesh/index.html), I’m currently using these bad boys for my own project and they work out really well, great performance. They can be created from a blueprint where you specify the location.
