Map Generator breaks when making roads.

djones9916

Refugee
Version
2.0
Platform
Windows
Running 2.0 Experimental, on PC. No mods. Whenever I attempt to generate a new map, the game gets to Smoothing Street tiles, then this error pops up, and everything freezes. I've tried uninstalling and reinstalling to no effect. I've tried changing the map size, with no effect. I've made no other alteration to the settings.1750342839271.png
 
Reproduction Steps
Go to the Random Map Generator.

Hit Generate World.

Breaks when smoothing road tiles.
Link to Logs
https://pastebin.com/CwCWKfcy
Link to Screenshot/Video
https://imgur.com/a/pjWvZfk
ArgumentOutOfRangeException: ArgumentOutOfRange_MustBePositive
Parameter name: maxValue
at GameRandom.Next (System.Int32 maxValue) [0x00004] in <f178f105e046413fb968c6794a8df7e7>:0
at GameRandom.RandomRange (System.Int32 _min, System.Int32 _maxExclusive) [0x00000] in <f178f105e046413fb968c6794a8df7e7>:0
at WorldGenerationEngineFinal.StreetTile.spawnWildernessPrefab (PrefabData prefab, GameRandom rndm) [0x0007f] in <f178f105e046413fb968c6794a8df7e7>:0
at WorldGenerationEngineFinal.StreetTile.spawnWildernessPrefab () [0x00098] in <f178f105e046413fb968c6794a8df7e7>:0
at WorldGenerationEngineFinal.StreetTile.SpawnPrefabs () [0x0003c] in <f178f105e046413fb968c6794a8df7e7>:0
at WorldGenerationEngineFinal.WildernessPlanner+<Plan>d__4.MoveNext () [0x0020d] in <f178f105e046413fb968c6794a8df7e7>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <be2cce08ca774b9684099a81093ecac0>:0
 
Hello! This issue can happen due to certain custom POIs/Prefabs (You can find them in C:\Users\<user>\AppData\Roaming\7DaysToDie\LocalPrefabs), specifically really large POIs -- We have an internal ticket on this. Removing the LocalPrefabs folder (or any of the custom POIs larger than 136 in x/z size) should allow you to generate a RWG map for now
 
Hello! This issue can happen due to certain custom POIs/Prefabs (You can find them in C:\Users\<user>\AppData\Roaming\7DaysToDie\LocalPrefabs), specifically really large POIs -- We have an internal ticket on this. Removing the LocalPrefabs folder (or any of the custom POIs larger than 136 in x/z size) should allow you to generate a RWG map for now
What if there is no LocalPrefabs file/folder?

1750426248103.png
 
What if there is no LocalPrefabs file/folder?

Perhaps you have a modlet in your Mods folder that added some custom prefabs? Perhaps there's a modlet there from 1.0?

For instance, if you are still using my 1.4 prefabs modlet, there might be a POI in there that is triggering this bug.
 
What if there is no LocalPrefabs file/folder?

View attachment 34774
Check for a LocalPrefabs folder in your game directory as well. And if you ever changed your User Data Folder, check there also. As others said, also check for anything your Mods folders in those same locations that include custom POI.

The easiest option is to empty out your Mods folder in each location. Most mods probably need updated for 2.0 anyhow, so removing them is a good idea.
 
Back
Top