# Cashgen - (kinda) Infinite Procedural World Generator

**URL:** <https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [May 6, 2016, 4:37pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131 "2016-05-06T16:37:03Z")\
**Posts on this page:** 20\
**Page:** 10

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 8, 2017, 11:47am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/184 "2017-05-08T11:47:01Z")

</div>

> [@mdhananjay;705957](#):
>
> Just a quick question: while compiling the plugin(s) I am getting the following error in the RuntimeMeshGeneration plugin
> 
> TStructOpsTypeTraitsBase2 is not a template TerrainGenTest d:\Unreal\Projects\TerrainGenTest\Plugins\UE4RuntimeMeshComponent\Source\RuntimeMeshComponent\Public\RuntimeMeshComponent.h 72
> 
> Any idea what this is about??

Ah yeah I was testing a script for a video tutorial and noticed the branch of the RuntimeMeshComponent is updated for 4.16 but broken for 4.15 at the moment. ( Pinging @Koderz )

I’m not in front of UE at the moment to check, but if I remember right you just need to change line 72 in RuntimeMeshComponent.h to :

```auto

struct TStructOpsTypeTraits<FRuntimeMeshComponentPrePhysicsTickFunction> : public TStructOpsTypeTraitsBase

```

---

<div class="post-metadata">

**Author:** ![mdhananjay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdhananjay](https://forums.unrealengine.com/u/mdhananjay)\
**Post date:** [May 8, 2017, 12:52pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/185 "2017-05-08T12:52:40Z")

</div>

> [@mid\_gen;705965](#):
>
> Ah yeah I was testing a script for a video tutorial and noticed the branch of the RuntimeMeshComponent is updated for 4.16 but broken for 4.15 at the moment. ( Pinging @Koderz )
> 
> I’m not in front of UE at the moment to check, but if I remember right you just need to change line 72 in RuntimeMeshComponent.h to :
> 
> ```auto
> 
> struct TStructOpsTypeTraits<FRuntimeMeshComponentPrePhysicsTickFunction> : public TStructOpsTypeTraitsBase
> 
> ```

Aahhh…that worked! Thanks @mid_gen

I spoke too soon ☹

 ![Error.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/5/456027b9d9ba4a02d27cf58785609ff54d21eeeb.png)

---

<div class="post-metadata">

**Author:** ![mdhananjay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdhananjay](https://forums.unrealengine.com/u/mdhananjay)\
**Post date:** [May 8, 2017, 1:03pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/186 "2017-05-08T13:03:06Z")

</div>

Nevermind…bonehead me forgot to load the Noise module 😛

---

<div class="post-metadata">

**Author:** ![xBULL3TxSP0NGEx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xBULL3TxSP0NGEx](https://forums.unrealengine.com/u/xBULL3TxSP0NGEx)\
**Post date:** [May 14, 2017, 9:34pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/187 "2017-05-14T21:34:19Z")

</div>

> [@Dealman;704333](#):
>
> Sorry for the late response! That’s pretty awesome that it’s deterministic, very eager to play around with it - just gotta work out how to it works. I’m a bit confused as to what the “Outer” node is when creating a noise generator - so not sure if that’s what’s causing the.
> 
> I just tried to make a new empty project and install it all over, but still get the crashing. Error;
> 
> ```auto
> 
> Fatal error: [File:D:\Build\++UE4+Release-4.15+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 2253] 
> Object is not packaged: FastNoise None
> 
> ```
> 
> And this is how I’ve set it up.
> 
> [http://i.imgur.com/vYhaVmx.png](http://i.imgur.com/vYhaVmx.png)
> 
> Apologies if I’m completely misusing your wonderful plugin 😉

Mid\_Gen, I’m having a similar problem as this guy. I keep crashing when i go to simulate game. I’ve followed your advice given both to and from him regarding referencing Self for the noise generator and his LOD settings solution. Im including my logs, any help would be appreciated greatly. Thanks.

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 15, 2017, 7:34am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/188 "2017-05-15T07:34:17Z")

</div>

> [@xBULL3TxSP0NGEx;709034](#):
>
> Mid\_Gen, I’m having a similar problem as this guy. I keep crashing when i go to simulate game. I’ve followed your advice given both to and from him regarding referencing Self for the noise generator and his LOD settings solution. Im including my logs, any help would be appreciated greatly. Thanks.

Sorry I can’t see anything relevant in those log files.

To package the game you must add the UnrealFastNoise and CashGen modules to your build.cs but it shouldn’t be necessary just for simulate.

---

<div class="post-metadata">

**Author:** ![Micha\_Ill](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Micha\_Ill](https://forums.unrealengine.com/u/Micha_Ill)\
**Post date:** [May 15, 2017, 8:33pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/189 "2017-05-15T20:33:56Z")

</div>

One Thing:  
Is it possible to Spawn / load Maps by this ?

I Would like to use it on a kinda MMORPG, where server generates a new Land each time People get close to the end of the world.

If yes, then i would really love you for this :o

---

<div class="post-metadata">

**Author:** ![Dealman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dealman](https://forums.unrealengine.com/u/Dealman)\
**Post date:** [May 15, 2017, 10:30pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/190 "2017-05-15T22:30:08Z")

</div>

> [@xBULL3TxSP0NGEx;709034](#):
>
> Mid\_Gen, I’m having a similar problem as this guy. I keep crashing when i go to simulate game. I’ve followed your advice given both to and from him regarding referencing Self for the noise generator and his LOD settings solution. Im including my logs, any help would be appreciated greatly. Thanks.

What’s your number of threads set to? You might wanna try and set it to 1 if you used my settings. :rolleyes:

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 16, 2017, 7:05am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/191 "2017-05-16T07:05:01Z")

</div>

> [@xCPx;709502](#):
>
> One Thing:  
> Is it possible to Spawn / load Maps by this ?
> 
> I Would like to use it on a kinda MMORPG, where server generates a new Land each time People get close to the end of the world.
> 
> If yes, then i would really love you for this :o

The terrain will keep generating up until you hit the killbox at the edge of the level. You’d need to look into World Origin Rebasing to keep it going indefinitely.

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 16, 2017, 7:05am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/192 "2017-05-16T07:05:37Z")

</div>

> [@Dealman;709550](#):
>
> What’s your number of threads set to? You might wanna try and set it to 1 if you used my settings. :rolleyes:

Yes if you’re having problems just set threads to 1. That hasn’t been properly tested and debugged yet!

---

<div class="post-metadata">

**Author:** ![Flascher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flascher](https://forums.unrealengine.com/u/Flascher)\
**Post date:** [May 17, 2017, 10:55pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/193 "2017-05-17T22:55:17Z")

</div>

Hey there mid\_gen, you’re doing some awesome work here!

I’m still learning UE4, so I probably messed up the plugin installation, or maybe I’m misunderstanding the readme on the github page… But I’m unable to find the CGTerrainManager actor in the editor. Everything builds fine with all the plugins but it just fails to show up for me to place it in the world.

I’m running on 4.15.2, and I added all the plugins to both the Public and PrivateDependencyModuleNames in the .Build.cs

Thanks in advance for the help, and keep it up with this plugin! I’m looking forward to seeing where it can go!

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 18, 2017, 7:07am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/194 "2017-05-18T07:07:44Z")

</div>

> [@Flascher;710528](#):
>
> Hey there mid\_gen, you’re doing some awesome work here!
> 
> I’m still learning UE4, so I probably messed up the plugin installation, or maybe I’m misunderstanding the readme on the github page… But I’m unable to find the CGTerrainManager actor in the editor. Everything builds fine with all the plugins but it just fails to show up for me to place it in the world.
> 
> I’m running on 4.15.2, and I added all the plugins to both the Public and PrivateDependencyModuleNames in the .Build.cs
> 
> Thanks in advance for the help, and keep it up with this plugin! I’m looking forward to seeing where it can go!

Create a new Blueprint, inherit from CGTerrainManager. In the beginplay for the blueprint, call the setup method.

---

<div class="post-metadata">

**Author:** ![Flascher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flascher](https://forums.unrealengine.com/u/Flascher)\
**Post date:** [May 18, 2017, 8:49pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/195 "2017-05-18T20:49:04Z")

</div>

> [@mid\_gen;710620](#):
>
> Create a new Blueprint, inherit from CGTerrainManager. In the beginplay for the blueprint, call the setup method.

I tried to set it up using a BP, but either got no terrain generation when calling the SetupTerrain method on BeginPlay, or a crash if I tried to hook up a noise generator into the SetupTerrain method.

Is there any way to set up the CGTerrainManager through C++? I’m trying to inherit from ACGTerrainManager, but I’m getting an error saying that ACGTerrainManager is not a struct or a class. If possible I would rather do terrain generation through C++.

Thanks again!

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [May 19, 2017, 6:58am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/196 "2017-05-19T06:58:04Z")

</div>

> [@Flascher;710906](#):
>
> I tried to set it up using a BP, but either got no terrain generation when calling the SetupTerrain method on BeginPlay, or a crash if I tried to hook up a noise generator into the SetupTerrain method.
> 
> Is there any way to set up the CGTerrainManager through C++? I’m trying to inherit from ACGTerrainManager, but I’m getting an error saying that ACGTerrainManager is not a struct or a class. If possible I would rather do terrain generation through C++.
> 
> Thanks again!

You need to have a noise generator connected, and the noise generator needs an Outer specified.

All the code is C++. You can inherit from ACGTerrainManager in C++ set it up in code if you want to.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ef6e31be](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ef6e31be](https://forums.unrealengine.com/u/anonymous_user_ef6e31be)\
**Post date:** [May 25, 2017, 9:56am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/197 "2017-05-25T09:56:31Z")

</div>

Hello everybody,

Following the installation of the plugins necessary to use CashGen, I miss the functions to realize the blueprint Spawn World here screenshots

Thanks @mid_gen for helping me

**Version : 4.15**

 ![baab7c754eb0ada0dfae4bb10bb12173f16572ab.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/a/baab7c754eb0ada0dfae4bb10bb12173f16572ab.jpeg)  
 ![screen_2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/b/6bc8547c8cb9269e4622817dea78c71f10160c34.jpeg)  
 ![881f37781563e27a0547448e0c66f67e828e5b9f.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/1/881f37781563e27a0547448e0c66f67e828e5b9f.jpeg)

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [June 5, 2017, 1:52pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/200 "2017-06-05T13:52:42Z")

</div>

Starting to put together a video tutorial series. Excuse potato audio :

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/c/12caa326591cba608fd20c7221c2d983aff20a8e.jpeg "CashGen Tutorial - Part 1 - Project Setup") ](https://www.youtube.com/watch?v=gv2lpnUm4xE)

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [June 5, 2017, 2:42pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/201 "2017-06-05T14:42:33Z")

</div>

Part 2 :

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/8/478765d3120a3d1fb20a8ea2dde91091c5404aae.jpeg "CashGen Tutorial - Part 2 - Making a simple terrain scene") ](https://www.youtube.com/watch?v=4kPxUCptLpU)

---

<div class="post-metadata">

**Author:** ![Lionard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lionard](https://forums.unrealengine.com/u/Lionard)\
**Post date:** [June 10, 2017, 2:49am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/202 "2017-06-10T02:49:11Z")

</div>

Thank you very much for the tutorial, they help me greatly. I notice you mention in part 2 that you will be covering Biome Blend Gen. If its not a problem may ask an ETA on that.

Btw, if you still need some textures for your terrain i would gladly send you my own textures created for the project currently in development.

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [June 13, 2017, 9:20am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/203 "2017-06-13T09:20:16Z")

</div>

Next up I’m covering blending different noise types together.

Then I’ll cover the materials which is when the Biome bit will become useful.

Hopefully get at least one done this evening…

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [June 13, 2017, 5:17pm UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/204 "2017-06-13T17:17:17Z")

</div>

Part 3, show making a slight more realistic terrain and the biome blending bits.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/f/fbfd54997626cf4b006423dadd3df9764438012a.jpeg "CashGen Tutorial - Part 3 - Mixing up terrain, materials") ](https://www.youtube.com/watch?v=Z9qdjkfey2Y)

---

<div class="post-metadata">

**Author:** ![mid\_gen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mid\_gen](https://forums.unrealengine.com/u/mid_gen)\
**Post date:** [June 20, 2017, 11:38am UTC](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131/206 "2017-06-20T11:38:37Z")

</div>

Hmm what could this be?

 ![2OGama7YQaWWWkmTtmTKgA.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/b/cb7c863f74c4bd54046ea6500624771cfc512c86.png)

[Previous page](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131.md?page=9)

[Next page](https://forums.unrealengine.com/t/cashgen-kinda-infinite-procedural-world-generator/63131.md?page=11)
