Jump to content

[Solved] Crash-resaon without any error in logfile ?!


Recommended Posts

The mods I'm currently working on sometimes crashes the game during world generation.
It is not 100% reproducable, it just sometimes happens and sometimes not, maybe som kind of "race condition" cause i'm using some TUNING variables set by mod1 and used in mod2  both in modworldgenmain).

The major problem is, that it is a instant crash to desktop, without an error screen and also without any error shown within the client log file (world without cave)...
The last lines of the logfile (during world generation) are:

Quote

[00:01:51]: Checking Tags    
[00:01:51]: Populating voronoi...    
[00:01:51]: Warning! Could not find a spot for Sculptures_1 in node START    
[00:01:51]: Warning! Could not find a spot for Maxwell5 in node START    
[00:01:51]: [ReplaceSingleNonLandTiles] Validating...
[00:01:51]: [ReplaceSingleNonLandTiles] Replaced 12 tiles.
[00:01:51]: Not checking for disconnected tiles.    
[00:01:51]: [Ocean] Placing ocean set pieces.    
[00:01:51]: [Ocean] Placed 0 of 0 ocean set pieces.    
[00:01:51]: [Ocean] Convert impassible to water...    
[00:01:51]: [Ocean]  Square fill...    
[00:01:51]: [Ocean]  Ground fill...    
[00:01:51]: [Ocean]  Noise...    
[00:01:52]: [Ocean]  Blend...    
[00:01:52]: [Ocean]  Adding shoreline...    
[00:01:52]: [Ocean] Void Outline...    
[00:01:52]: [Ocean] Populating the ocean with lots of fun things to do...    
[00:01:52]: [Ocean] Placing ocean set pieces.    
[00:01:52]: [Ocean] Placed 9 of 9 ocean set pieces.    
[00:01:52]: [ReplaceSingleNonLandTiles] Validating...
[00:01:52]: [ReplaceSingleNonLandTiles] Replaced 0 tiles.

The mods do generate their own world, so there could also be a problem in the tasksetdata of the world.. but without any error message, what can I do?
 

edit:
At least I found out that a specific world "MaxwellHome" is causing it, the other worlds of DS adventure work fine. Unfurtunately maxwellhome has rhousands of problems that could cause a crash :D

Edited by Serpens
Link to comment
Share on other sites

If the error happens during world generation, then the error should indeed show up in the client log, and you should not have any server error logs. Have you made sure that there aren't any, though? Could you attach the full client log and any server logs you might have?

Link to comment
Share on other sites

5 minutes ago, Ultroman said:

If the error happens during world generation, then the error should indeed show up in the client log, and you should not have any server error logs. Have you made sure that there aren't any, though? Could you attach the full client log and any server logs you might have?

thank you.
I have a world without cave and I'm host, so client==server and every log should be within client_log within Documents\Klei\DoNotStarveTogether right? Whjen other errors happen, the errors are always within this logfile, but not for this one.

Link to comment
Share on other sites

okay..  My current guess is, that something happens during Generate() within scripts/map/forest_map.lua , since "Done forest map gen!" is not printed. For debugging purpose I would like to add some print statements to this function, to find out at wich location exactly it is crashing, but if I put the file within my mod in scripts/map/forest_map.lua and add print statements, it is not used... For some files overwriting this way works and for some others it does not...
edit: overwriting worldgen_main.lua also does not work, so no clue how to add some debug prints...

Edited by Serpens
Link to comment
Share on other sites

By try and error I found out it may be indeed the maxwellhome.lua. file that is the problem.
At least when tasksetdata.tasks = {"MaxHome"} -> crash in 1 of 5 tries, while replacing MaxHome with any other task -> no crash within 30 tries.
The static layout of it add a camera_maxwell to the throne, which will cause a crash but with error message, I already removed this. But the crash without error still happening.  I will try to empty the static_layout file a bit and see if I can find the cause....

edit:
removing all objects from the layout does not help...

edit2:
The "opacity" value from the tilelayer was set to 0.9, while every other layout in the game has a value of 1 there.
After changing it to 1, I had no crash in 20 tries..., will try more, but it looks good.

edit3:
okay... not solved, still crashes...
(I hate bugs that are not reproducable in 100% of the cases...)

the complete client_log, playing without caves and as host: @Ultroman

 

[00:00:00]: 
System Memory:
	Memory Load: 20%
	Available Physical Memory: 25975m/32708m
	Available Page File: 27095m/37572m
	Available Virtual Memory: 3947m/4095m
	Available Extended Virtual Memory: 0m
[00:00:00]: 
Process Memory:
	Peak Working Set Size: 32m
	Working Set Size: 32m
	Quota Peak Page Pool Usage: 265k
	Quota Page Pool Usage: 264k
	Quota Peak Non Paged Pool Usage:20k
	Quota Non Paged Pool Usage: 20k
	Page File Usage: 6m
	Peak Page File Usage: 6m
[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/ 
[00:00:00]: Starting Up
[00:00:00]: Version: 361362
[00:00:00]: Current time: Thu Aug 22 16:14:20 2019

[00:00:00]: Don't Starve Together: 361362 WIN32_STEAM
[00:00:00]: Build Date: 4319
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: 
[00:00:00]: Initializing distribution platform
[00:00:00]: Initializing Minidump handler
[00:00:00]: ....Done
[00:00:00]: Steam AppBuildID: 4127113
[00:00:00]: ....Done
[00:00:00]: PersistUserStorage is now APP:Klei//DoNotStarveTogether/ 
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (10992)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: Mounting file system databundles/klump.zip successful.
[00:00:00]: Mounting file system databundles/shaders.zip successful.
[00:00:00]: Mounting file system databundles/fonts.zip successful.
[00:00:00]: Mounting file system databundles/anim_dynamic.zip successful.
[00:00:00]: Mounting file system databundles/bigportraits.zip successful.
[00:00:00]: Mounting file system databundles/images.zip successful.
[00:00:00]: Mounting file system databundles/scripts.zip successful.
[00:00:00]: ProfileIndex:2.61
[00:00:00]: [Connect] PendingConnection::Reset(true)
[00:00:00]: Platform: 1
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: THREAD - started 'Ping Job Thread' (12960)
[00:00:00]: Authorized application D:\ProgrammeD\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_steam.exe is enabled in the firewall.
[00:00:00]: WindowsFirewall - Application already authorized
[00:00:00]: THREAD - started 'StreamInput' (4772)
[00:00:00]: loaded ping_cache
[00:00:00]: Offline user ID: OU_76561198102311542
[00:00:00]: SteamID: 76561198102311542
[00:00:00]: HardwareStats:
  OS                        
    name                      Microsoft Windows 10 Pro
    version                   10.0.17763
    architecture              64-Bit
    platformSpecific          SP 0.0
  CPU                       
    numCores                  6
    features                  SSE,SSE2,SSE3,SSSE3,SSE41,SSE42,AVX
    name                      Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    manufacturer              GenuineIntel
    clockSpeed                3696
  RAM                       
    megsOfRam                 32768
  GPU                       
    name                      NVIDIA GeForce GTX 1080
    driverDate                20190409000000.000000-000
    megsOfRam                 4095
    refreshRate               60
    videoModeDescription      3840 x 2160 x 4294967296 Farben
    driverVersion             25.21.14.2531

[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: WindowManager::Initialize
[00:00:00]: CreateWindow: Requesting 3840,2160 - 5/6/5 - -1/-1/-1 - 0
[00:00:01]: CreateEGLContext: 12 configs found
[00:00:01]:      0: 8/8/8 -  0/ 0/ 0 - 0
[00:00:01]:      1: 8/8/8 -  0/16/ 0 - 0
[00:00:01]:      2: 8/8/8 -  0/24/ 0 - 0
[00:00:01]:      3: 8/8/8 -  0/24/ 8 - 0
[00:00:01]:      4: 5/5/5 -  0/ 0/ 0 - 0
[00:00:01]:      5: 5/5/5 -  0/16/ 0 - 0
[00:00:01]:      6: 5/5/5 -  0/24/ 0 - 0
[00:00:01]:      7: 5/5/5 -  0/24/ 8 - 0
[00:00:01]:      8: 8/8/8 -  8/ 0/ 0 - 0
[00:00:01]:      9: 8/8/8 -  8/16/ 0 - 0
[00:00:01]:     10: 8/8/8 -  8/24/ 0 - 0
[00:00:01]:     11: 8/8/8 -  8/24/ 8 - 0
[00:00:01]: WindowManager::SetFullscreen(0, 3840, 2160, 60)
[00:00:01]: GLInfo
[00:00:01]: ~~~~~~
[00:00:01]: GL_VENDOR: Google Inc.
[00:00:01]: GL_RENDERER: ANGLE (NVIDIA GeForce GTX 1080)
[00:00:01]: GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)
[00:00:01]: THREAD - started 'WindowsInputManager' (15024)
[00:00:01]: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)
[00:00:01]: OpenGL extensions (19, 19):
[00:00:01]: GL_ANGLE_depth_texture
[00:00:01]: GL_ANGLE_framebuffer_blit
[00:00:01]: GL_ANGLE_framebuffer_multisample
[00:00:01]: GL_ANGLE_instanced_arrays
[00:00:01]: GL_ANGLE_pack_reverse_row_order
[00:00:01]: GL_ANGLE_texture_compression_dxt3
[00:00:01]: GL_ANGLE_texture_compression_dxt5
[00:00:01]: GL_ANGLE_texture_usage
[00:00:01]: GL_ANGLE_translated_shader_source
[00:00:01]: GL_EXT_read_format_bgra
[00:00:01]: GL_EXT_robustness
[00:00:01]: GL_EXT_texture_compression_dxt1
[00:00:01]: GL_EXT_texture_format_BGRA8888
[00:00:01]: GL_EXT_texture_storage
[00:00:01]: GL_OES_get_program_binary
[00:00:01]: GL_OES_packed_depth_stencil
[00:00:01]: GL_OES_rgb8_rgba8
[00:00:01]: GL_OES_standard_derivatives
[00:00:01]: GL_OES_texture_npot
[00:00:01]: GL_MAX_TEXTURE_SIZE = 16384
[00:00:01]: GL_MAX_TEXTURE_IMAGE_UNITS = 16
[00:00:01]: GL_MAX_RENDERBUFFER_SIZE = 16384
[00:00:01]: GL_MAX_VIEWPORT_DIMS = 16384, 16384
[00:00:01]: GL_MAX_VARYING_VECTORS = 10
[00:00:01]: GL_MAX_VERTEX_ATTRIBS = 16
[00:00:01]: GL_MAX_VERTEX_UNIFORM_VECTORS = 254
[00:00:01]: GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4
[00:00:01]: GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221
[00:00:01]: 4 compressed texture formats
[00:00:01]: texture format 0x83f0
[00:00:01]: texture format 0x83f1
[00:00:01]: texture format 0x83f2
[00:00:01]: texture format 0x83f3
[00:00:01]: Renderer initialize: Okay
[00:00:01]: AnimManager initialize: Okay
[00:00:01]: Buffers initialize: Okay
[00:00:01]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:01]: GameSpecific initialize: Okay
[00:00:01]: cGame::StartPlaying
[00:00:01]: LOADING LUA
[00:00:01]: DoLuaFile scripts/main.lua
[00:00:01]: DoLuaFile loading buffer scripts/main.lua
[00:00:01]:   taskgrouplist:	default	Together	
[00:00:01]:   taskgrouplist:	classic	Classic	
[00:00:01]:   taskgrouplist:	cave_default	Underground	
[00:00:01]:   taskgrouplist:	lavaarena_taskset	The Forge	
[00:00:01]:   taskgrouplist:	quagmire_taskset	The Gorge	
[00:00:01]: running main.lua
	
[00:00:01]: loaded modindex	
[00:00:01]: WARNING: icon paths for mod workshop-1294206358 (Balanced Gears) are not valid. Got icon_atlas="modicon.xml" and icon="modicon.tex".
Please ensure that these point to valid files in your mod folder, or else comment out those lines from your modinfo.lua.	
[00:00:02]: ModIndex: Beginning normal load sequence.
	
[00:00:02]: ModIndex:GetModsToLoad inserting moddir, 	workshop-595825903	
[00:00:02]: ModIndex:GetModsToLoad inserting moddir, 	workshop-913108868	
[00:00:02]: Could not load mod_config_data/modconfiguration_workshop-595825903	
[00:00:02]: Loading mod: workshop-595825903 (No Mods Warning) Version:1.0.0	
[00:00:02]: Could not load mod_config_data/modconfiguration_workshop-913108868	
[00:00:02]: Loading mod: workshop-913108868 ( [DST]Aerial view) Version:1.1.2	
[00:00:02]: Mod: workshop-595825903 (No Mods Warning)	Loading modworldgenmain.lua	
[00:00:02]: Mod: workshop-595825903 (No Mods Warning)	  Mod had no modworldgenmain.lua. Skipping.	
[00:00:02]: Mod: workshop-595825903 (No Mods Warning)	Loading modmain.lua	
[00:00:02]: Mod: workshop-913108868 ( [DST]Aerial view)	Loading modworldgenmain.lua	
[00:00:02]: Mod: workshop-913108868 ( [DST]Aerial view)	  Mod had no modworldgenmain.lua. Skipping.	
[00:00:02]: Mod: workshop-913108868 ( [DST]Aerial view)	Loading modmain.lua	
[00:00:02]: Event data unavailable: lavaarena_event_server/lavaarena_achievement_quest_defs
[00:00:03]: LOADING LUA SUCCESS
[00:00:03]: PlayerDeaths loaded morgue	5561	
[00:00:03]: PlayerHistory loaded player_history (v2) len:419	
[00:00:03]: ServerPreferences loaded server_preferences	2	
[00:00:03]: bloom_enabled	false	
[00:00:03]: loaded saveindex	
[00:00:03]: OnFilesLoaded()	
[00:00:03]: Upgrading saved level data for 'CUSTOM_PRESET_2' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:03]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:03]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:03]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:03]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:03]: OnUpdatePurchaseStateComplete	
[00:00:03]: Klump load on boot started.	
[00:00:03]: Klump files loaded: 	0	
[00:00:04]: Mod: workshop-595825903 (No Mods Warning)	Registering prefabs	
[00:00:04]: Mod: workshop-595825903 (No Mods Warning)	  Registering default mod prefab	
[00:00:04]: Mod: workshop-913108868 ( [DST]Aerial view)	Registering prefabs	
[00:00:04]: Mod: workshop-913108868 ( [DST]Aerial view)	  Registering default mod prefab	
[00:00:04]: 	Load FE	
[00:00:04]: 	Load FE: done	
[00:00:04]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/blocklist.txt (Failure)
[00:00:04]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/adminlist.txt (Failure)
[00:00:04]: OnLoadUserIdList: APP:Klei//DoNotStarveTogether/client_save/whitelist.txt (Failure)
[00:00:04]: THREAD - started 'FilesExistAsyncThread' (11216)
[00:00:04]: FilesExistAsyncThread started (12660 files)...
[00:00:04]: [MOTD] Downloading info from	https://motd.klei.com/?game=dst&platform=STEAM&locale=DE&lang=german&user=76561198102311542	
[00:00:04]: SimLuaProxy::QueryServer()
[00:00:04]: ModIndex: Load sequence finished successfully.	
[00:00:04]: Reset() returning
[00:00:05]: [Steam] Auth Session Ticket requested...
[00:00:06]: [Steam] Got Auth Session Ticket
[00:00:06]: ... FilesExistAsyncThread complete
[00:00:07]: [MOTD] Downloading image for box1
[00:00:08]: [200] Account Communication Success (3)
[00:00:08]: Logging in as KU_Eqx7VQ_x
[00:00:09]: [MOTD] Done Loading.	
[00:00:09]: There is no active event to get the status of.
[00:00:09]: loaded inventory_cache_prod
[00:00:09]: loaded inventory_cache_prod
[00:00:12]: Upgrading saved level data for 'CUSTOM_PRESET_2' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:12]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:12]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:12]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:12]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:12]: Upgrading saved level data for 'CUSTOM_PRESET_2' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:12]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:12]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:12]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:12]: Upgrading saved level data for 'SURVIVAL_TOGETHER' from v3 to v4 (Return of Them: Turn of Tides).	
[00:00:12]: Getting top mod details...
[00:00:12]: Frontend-Unloading mod 'all'.	
[00:00:12]: loaded mod_config_data/modconfiguration_workshop-756229217 - adv	
[00:00:12]: loaded mod_config_data/modconfiguration_Adventure-Addon	
[00:00:12]: FrontendLoadMod	workshop-756229217 - adv	
[00:00:12]: loaded mod_config_data/modconfiguration_workshop-756229217 - adv	
[00:00:12]: Fontend-Loading mod: workshop-756229217 - adv (Teleportato) Version:1.124	
[00:00:12]: Mod: workshop-756229217 - adv (Teleportato)	Loading modworldgenmain.lua	
[00:00:12]: HIER modworldgenmain tele nil	
[00:00:12]: HIER modworldgenmain tele KEIN WORLDS	
[00:00:12]: FrontendLoadMod	Adventure-Addon	
[00:00:12]: loaded mod_config_data/modconfiguration_Adventure-Addon	
[00:00:12]: Fontend-Loading mod: Adventure-Addon (A DS Coop Adventure) Version:0.8.2	
[00:00:12]: Mod: Adventure-Addon (A DS Coop Adventure)	Loading modworldgenmain.lua	
[00:00:12]: HIER WORLDGEN adv	
[00:00:13]: ../mods/Adventure-Mod - moreorlessfiex/modicon.tex is 576x576 but compressed textures must have power of 2 dimensions.
[00:00:13]: ../mods/workshop-763290344/modicon.tex is 768x768 but compressed textures must have power of 2 dimensions.
[00:00:13]: ../mods/workshop-736398747/modicon.tex is 1920x1080 but compressed textures must have power of 2 dimensions.
[00:00:13]: ../mods/workshop-756229217 - adv/modicon.tex is 560x560 but compressed textures must have power of 2 dimensions.
[00:00:13]: ../mods/workshop-539957958/modicon.tex is 200x200 but compressed textures must have power of 2 dimensions.
[00:00:13]: ../mods/workshop-758921911/mod_icon.tex is 320x320 but compressed textures must have power of 2 dimensions.
[00:00:13]: ../mods/Adventure-Addon/modicon.tex is 576x576 but compressed textures must have power of 2 dimensions.
[00:00:13]: ../mods/workshop-767776640/modicon.tex is 640x640 but compressed textures must have power of 2 dimensions.
[00:00:13]: GOT top mod details...50
[00:00:15]: DelDirectory [APP:Klei//DoNotStarveTogether/client_save/session/52493D8C170276A0] 2: FAILED
[00:00:15]: Failed to delete session APP:Klei//DoNotStarveTogether/client_save/session/52493D8C170276A0
[00:00:15]: Frontend-Unloading mod 'all'.	
[00:00:19]: FrontendLoadMod	Adventure-Addon	
[00:00:19]: loaded mod_config_data/modconfiguration_Adventure-Addon	
[00:00:19]: Fontend-Loading mod: Adventure-Addon (A DS Coop Adventure) Version:0.8.2	
[00:00:19]: Mod: Adventure-Addon (A DS Coop Adventure)	Loading modworldgenmain.lua	
[00:00:19]: HIER WORLDGEN adv	
[00:00:23]: FrontendLoadMod	workshop-756229217 - adv	
[00:00:23]: loaded mod_config_data/modconfiguration_workshop-756229217 - adv	
[00:00:23]: Fontend-Loading mod: workshop-756229217 - adv (Teleportato) Version:1.124	
[00:00:23]: Mod: workshop-756229217 - adv (Teleportato)	Loading modworldgenmain.lua	
[00:00:23]: HIER modworldgenmain tele table: 3C9EAE30	
[00:00:23]: HIER modworldgenmain tele MIT WORLDS	
[00:00:23]: Level gen1 is 8 Chapter is 0	
[00:00:24]: loaded mod_config_data/modconfiguration_workshop-756229217 - adv	
[00:00:24]: loaded mod_config_data/modconfiguration_Adventure-Addon	
[00:00:24]: Not applying level data overrides.	
[00:00:24]: Not applying world gen overrides.	
[00:00:24]: Network tick rate: U=15(2), D=0
[00:00:24]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:00:24]: About to start a server with the following settings:
[00:00:24]:   Dedicated: false
[00:00:24]:   Online: true
[00:00:24]:   Passworded: false
[00:00:24]:   ServerPort: 10999
[00:00:24]:   SteamAuthPort: 8766
[00:00:24]:   SteamMasterServerPort: 27016
[00:00:24]:   ClanID: false
[00:00:24]:   ClanOnly: false
[00:00:24]:   ClanAdmin: false
[00:00:24]:   LanOnly: true
[00:00:24]:   FriendsOnly: false
[00:00:24]:   EnableAutosaver: true
[00:00:24]:   EncodeUserPath: true
[00:00:24]:   PVP: false
[00:00:24]:   MaxPlayers: 6
[00:00:24]:   GameMode: survival
[00:00:24]:   OverridenDNS: 
[00:00:24]:   PauseWhenEmpty: true
[00:00:24]:   IdleTimeout: 1800s
[00:00:24]:   VoteEnabled: false
[00:00:24]:   InternetBroadcasting: true
[00:00:24]:   Intent: competitive
[00:00:24]: [Warning] Could not confirm port 10999 is open in the firewall. 
[00:00:24]: loaded mod_config_data/modconfiguration_workshop-756229217 - adv	
[00:00:24]: loaded mod_config_data/modconfiguration_Adventure-Addon	
[00:00:24]: Online Server Started on port: 10999
[00:00:24]: Collecting garbage...
[00:00:24]: lua_gc took 0.02 seconds
[00:00:24]: ~ShardLuaProxy()
[00:00:24]: ~cEventLeaderboardProxy()
[00:00:24]: ~ItemServerLuaProxy()
[00:00:24]: ~InventoryLuaProxy()
[00:00:24]: ~NetworkLuaProxy()
[00:00:24]: ~SimLuaProxy()
[00:00:24]: Cancelling LuaQueryCallback handle [11]
[00:00:24]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:00:24]: lua_close took 0.04 seconds
[00:00:24]: ReleaseAll
[00:00:24]: ReleaseAll Finished
[00:00:24]: cGame::StartPlaying
[00:00:24]: LOADING LUA
[00:00:24]: DoLuaFile scripts/main.lua
[00:00:24]: DoLuaFile loading buffer scripts/main.lua
[00:00:25]:   taskgrouplist:	default	Together	
[00:00:25]:   taskgrouplist:	classic	Classic	
[00:00:25]:   taskgrouplist:	cave_default	Underground	
[00:00:25]:   taskgrouplist:	lavaarena_taskset	The Forge	
[00:00:25]:   taskgrouplist:	quagmire_taskset	The Gorge	
[00:00:25]: running main.lua
	
[00:00:25]: unloading prefabs for mod MOD_workshop-595825903	
[00:00:25]: unloading prefabs for mod MOD_workshop-913108868	
[00:00:25]: loaded modindex	
[00:00:25]: WARNING: icon paths for mod workshop-1294206358 (Balanced Gears) are not valid. Got icon_atlas="modicon.xml" and icon="modicon.tex".
Please ensure that these point to valid files in your mod folder, or else comment out those lines from your modinfo.lua.	
[00:00:25]: ModIndex: Beginning normal load sequence.
	
[00:00:25]: ModIndex:GetModsToLoad inserting moddir, 	Adventure-Addon	
[00:00:25]: ModIndex:GetModsToLoad inserting moddir, 	workshop-595825903	
[00:00:25]: ModIndex:GetModsToLoad inserting moddir, 	workshop-756229217 - adv	
[00:00:25]: ModIndex:GetModsToLoad inserting moddir, 	workshop-913108868	
[00:00:25]: loaded mod_config_data/modconfiguration_Adventure-Addon	
[00:00:25]: Loading mod: Adventure-Addon (A DS Coop Adventure) Version:0.8.2	
[00:00:25]: Could not load mod_config_data/modconfiguration_workshop-595825903	
[00:00:25]: Loading mod: workshop-595825903 (No Mods Warning) Version:1.0.0	
[00:00:25]: loaded mod_config_data/modconfiguration_workshop-756229217 - adv	
[00:00:25]: Loading mod: workshop-756229217 - adv (Teleportato) Version:1.124	
[00:00:25]: Could not load mod_config_data/modconfiguration_workshop-913108868	
[00:00:25]: Loading mod: workshop-913108868 ( [DST]Aerial view) Version:1.1.2	
[00:00:25]: Mod: Adventure-Addon (A DS Coop Adventure)	Loading modworldgenmain.lua	
[00:00:25]: HIER WORLDGEN adv	
[00:00:25]: Mod: Adventure-Addon (A DS Coop Adventure)	Loading modmain.lua	
[00:00:25]: HIER modmain adv	
[00:00:25]: Mod: workshop-756229217 - adv (Teleportato)	Loading modworldgenmain.lua	
[00:00:25]: HIER modworldgenmain tele table: 2B5FDF28	
[00:00:25]: HIER modworldgenmain tele MIT WORLDS	
[00:00:25]: Level gen1 is 8 Chapter is 0	
[00:00:25]: Mod: workshop-756229217 - adv (Teleportato)	Loading modmain.lua	
[00:00:25]: HIER ist modmain	
[00:00:25]: WORLDS tele modmain MIT WORLDS	
[00:00:25]: Mod: workshop-595825903 (No Mods Warning)	Loading modworldgenmain.lua	
[00:00:25]: Mod: workshop-595825903 (No Mods Warning)	  Mod had no modworldgenmain.lua. Skipping.	
[00:00:25]: Mod: workshop-595825903 (No Mods Warning)	Loading modmain.lua	
[00:00:25]: Mod: workshop-913108868 ( [DST]Aerial view)	Loading modworldgenmain.lua	
[00:00:25]: Mod: workshop-913108868 ( [DST]Aerial view)	  Mod had no modworldgenmain.lua. Skipping.	
[00:00:25]: Mod: workshop-913108868 ( [DST]Aerial view)	Loading modmain.lua	
[00:00:25]: Event data unavailable: lavaarena_event_server/lavaarena_achievement_quest_defs
[00:00:25]: LOADING LUA SUCCESS
[00:00:25]: Registering mod namespace "adventure"
[00:00:25]: PlayerDeaths loaded morgue	5561	
[00:00:25]: PlayerHistory loaded player_history (v2) len:419	
[00:00:25]: ServerPreferences loaded server_preferences	2	
[00:00:25]: bloom_enabled	false	
[00:00:25]: loaded saveindex	
[00:00:25]: OnFilesLoaded()	
[00:00:25]: OnUpdatePurchaseStateComplete	
[00:00:25]: Load Slot: ... generating new world	
[00:00:25]: WorldSim::SimThread::SimThread()
[00:00:25]: ABOUT TO INSTALL STACKTRACE
[00:00:25]: DoLuaFile scripts/stacktrace.lua
[00:00:25]: DoLuaFile loading buffer scripts/stacktrace.lua
[00:00:25]: INSTALLED STACKTRACE
[00:00:25]: WorldSim::SimThread::SimThread() complete
[00:00:25]: THREAD - started 'WorldSim' (1968)
[00:00:25]: WorldSim::SimThread::Main()
[00:00:25]: DoLuaFile scripts/worldgen_main.lua
[00:00:25]: DoLuaFile loading buffer scripts/worldgen_main.lua
[00:00:25]: ModIndex: Load sequence finished successfully.	
[00:00:25]: Reset() returning
[00:00:25]: DLC enabled : 	false	
[00:00:25]:   taskgrouplist:	default	Together	
[00:00:25]:   taskgrouplist:	classic	Classic	
[00:00:25]:   taskgrouplist:	cave_default	Underground	
[00:00:25]:   taskgrouplist:	lavaarena_taskset	The Forge	
[00:00:25]:   taskgrouplist:	quagmire_taskset	The Gorge	
[00:00:26]: ModIndex:GetModsToLoad inserting modname, 	workshop-595825903	
[00:00:26]: ModIndex:GetModsToLoad inserting modname, 	Adventure-Addon	
[00:00:26]: ModIndex:GetModsToLoad inserting modname, 	workshop-913108868	
[00:00:26]: ModIndex:GetModsToLoad inserting modname, 	workshop-756229217 - adv	
[00:00:26]: Loading mod: workshop-595825903 (No Mods Warning) Version:1.0.0	
[00:00:26]: Loading mod: Adventure-Addon (A DS Coop Adventure) Version:0.8.2	
[00:00:26]: Loading mod: workshop-913108868 ( [DST]Aerial view) Version:1.1.2	
[00:00:26]: Loading mod: workshop-756229217 - adv (Teleportato) Version:1.124	
[00:00:26]: Mod: Adventure-Addon (A DS Coop Adventure)	Loading modworldgenmain.lua	
[00:00:26]: HIER WORLDGEN adv	
[00:00:26]: Mod: workshop-756229217 - adv (Teleportato)	Loading modworldgenmain.lua	
[00:00:26]: HIER modworldgenmain tele table: 3BF27AC0	
[00:00:26]: HIER modworldgenmain tele MIT WORLDS	
[00:00:26]: Level gen1 is 8 Chapter is 0	
[00:00:26]: Mod: workshop-595825903 (No Mods Warning)	Loading modworldgenmain.lua	
[00:00:26]: Mod: workshop-595825903 (No Mods Warning)	  Mod had no modworldgenmain.lua. Skipping.	
[00:00:26]: Mod: workshop-913108868 ( [DST]Aerial view)	Loading modworldgenmain.lua	
[00:00:26]: Mod: workshop-913108868 ( [DST]Aerial view)	  Mod had no modworldgenmain.lua. Skipping.	
[00:00:26]: running worldgen_main.lua
	
[00:00:26]: SEED = 	1566483285	
[00:00:26]: Generating world with these parameters:	
[00:00:26]: level_type	SURVIVAL	
[00:00:26]: level_data:	
[00:00:26]: 	K: 	1	 V: 	table: 3BAA5788	
[00:00:26]: 		K: 	desc	 V: 	The standard Don't Starve experience.	
[00:00:26]: 		K: 	hideminimap	 V: 	false	
[00:00:26]: 		K: 	id	 V: 	SURVIVAL_TOGETHER	
[00:00:26]: 		K: 	location	 V: 	forest	
[00:00:26]: 		K: 	max_playlist_position	 V: 	999	
[00:00:26]: 		K: 	min_playlist_position	 V: 	0	
[00:00:26]: 		K: 	name	 V: 	Default	
[00:00:26]: 		K: 	numrandom_set_pieces	 V: 	4	
[00:00:26]: 		K: 	override_level_string	 V: 	false	
[00:00:26]: 		K: 	overrides	 V: 	table: 3BAA5698	
[00:00:26]: 			K: 	alternatehunt	 V: 	default	
[00:00:26]: 			K: 	angrybees	 V: 	default	
[00:00:26]: 			K: 	antliontribute	 V: 	default	
[00:00:26]: 			K: 	autumn	 V: 	default	
[00:00:26]: 			K: 	bearger	 V: 	default	
[00:00:26]: 			K: 	beefalo	 V: 	default	
[00:00:26]: 			K: 	beefaloheat	 V: 	default	
[00:00:26]: 			K: 	bees	 V: 	default	
[00:00:26]: 			K: 	berrybush	 V: 	default	
[00:00:26]: 			K: 	birds	 V: 	default	
[00:00:26]: 			K: 	boons	 V: 	default	
[00:00:26]: 			K: 	branching	 V: 	default	
[00:00:26]: 			K: 	butterfly	 V: 	default	
[00:00:26]: 			K: 	buzzard	 V: 	default	
[00:00:26]: 			K: 	cactus	 V: 	default	
[00:00:26]: 			K: 	carrot	 V: 	default	
[00:00:26]: 			K: 	catcoon	 V: 	default	
[00:00:26]: 			K: 	chess	 V: 	default	
[00:00:26]: 			K: 	day	 V: 	default	
[00:00:26]: 			K: 	deciduousmonster	 V: 	default	
[00:00:26]: 			K: 	deerclops	 V: 	default	
[00:00:26]: 			K: 	disease_delay	 V: 	default	
[00:00:26]: 			K: 	dragonfly	 V: 	default	
[00:00:26]: 			K: 	flint	 V: 	default	
[00:00:26]: 			K: 	flowers	 V: 	default	
[00:00:26]: 			K: 	frograin	 V: 	default	
[00:00:26]: 			K: 	goosemoose	 V: 	default	
[00:00:26]: 			K: 	grass	 V: 	default	
[00:00:26]: 			K: 	has_ocean	 V: 	true	
[00:00:26]: 			K: 	houndmound	 V: 	default	
[00:00:26]: 			K: 	hounds	 V: 	default	
[00:00:26]: 			K: 	hunt	 V: 	default	
[00:00:26]: 			K: 	keep_disconnected_tiles	 V: 	true	
[00:00:26]: 			K: 	krampus	 V: 	default	
[00:00:26]: 			K: 	layout_mode	 V: 	LinkNodesByKeys	
[00:00:26]: 			K: 	liefs	 V: 	default	
[00:00:26]: 			K: 	lightning	 V: 	default	
[00:00:26]: 			K: 	lightninggoat	 V: 	default	
[00:00:26]: 			K: 	loop	 V: 	default	
[00:00:26]: 			K: 	lureplants	 V: 	default	
[00:00:26]: 			K: 	marshbush	 V: 	default	
[00:00:26]: 			K: 	merm	 V: 	default	
[00:00:26]: 			K: 	meteorshowers	 V: 	default	
[00:00:26]: 			K: 	meteorspawner	 V: 	default	
[00:00:26]: 			K: 	moles	 V: 	default	
[00:00:26]: 			K: 	mushroom	 V: 	default	
[00:00:26]: 			K: 	no_joining_islands	 V: 	true	
[00:00:26]: 			K: 	no_wormholes_to_disconnected_tiles	 V: 	true	
[00:00:26]: 			K: 	penguins	 V: 	default	
[00:00:26]: 			K: 	perd	 V: 	default	
[00:00:26]: 			K: 	petrification	 V: 	default	
[00:00:26]: 			K: 	pigs	 V: 	default	
[00:00:26]: 			K: 	ponds	 V: 	default	
[00:00:26]: 			K: 	prefabswaps_start	 V: 	default	
[00:00:26]: 			K: 	rabbits	 V: 	default	
[00:00:26]: 			K: 	reeds	 V: 	default	
[00:00:26]: 			K: 	regrowth	 V: 	default	
[00:00:26]: 			K: 	roads	 V: 	default	
[00:00:26]: 			K: 	rock	 V: 	default	
[00:00:26]: 			K: 	rock_ice	 V: 	default	
[00:00:26]: 			K: 	sapling	 V: 	default	
[00:00:26]: 			K: 	season_start	 V: 	default	
[00:00:26]: 			K: 	specialevent	 V: 	default	
[00:00:26]: 			K: 	spiders	 V: 	default	
[00:00:26]: 			K: 	spring	 V: 	default	
[00:00:26]: 			K: 	start_location	 V: 	default	
[00:00:26]: 			K: 	summer	 V: 	default	
[00:00:26]: 			K: 	tallbirds	 V: 	default	
[00:00:26]: 			K: 	task_set	 V: 	default	
[00:00:26]: 			K: 	tentacles	 V: 	default	
[00:00:26]: 			K: 	touchstone	 V: 	default	
[00:00:26]: 			K: 	trees	 V: 	default	
[00:00:26]: 			K: 	tumbleweed	 V: 	default	
[00:00:26]: 			K: 	walrus	 V: 	default	
[00:00:26]: 			K: 	weather	 V: 	default	
[00:00:26]: 			K: 	wildfires	 V: 	default	
[00:00:26]: 			K: 	winter	 V: 	default	
[00:00:26]: 			K: 	world_size	 V: 	default	
[00:00:26]: 			K: 	wormhole_prefab	 V: 	wormhole	
[00:00:26]: 		K: 	random_set_pieces	 V: 	table: 3BAA7740	
[00:00:26]: 			K: 	1	 V: 	Sculptures_2	
[00:00:26]: 			K: 	2	 V: 	Sculptures_3	
[00:00:26]: 			K: 	3	 V: 	Sculptures_4	
[00:00:26]: 			K: 	4	 V: 	Sculptures_5	
[00:00:26]: 			K: 	5	 V: 	Chessy_1	
[00:00:26]: 			K: 	6	 V: 	Chessy_2	
[00:00:26]: 			K: 	7	 V: 	Chessy_3	
[00:00:26]: 			K: 	8	 V: 	Chessy_4	
[00:00:26]: 			K: 	9	 V: 	Chessy_5	
[00:00:26]: 			K: 	10	 V: 	Chessy_6	
[00:00:26]: 			K: 	11	 V: 	Maxwell1	
[00:00:26]: 			K: 	12	 V: 	Maxwell2	
[00:00:26]: 			K: 	13	 V: 	Maxwell3	
[00:00:26]: 			K: 	14	 V: 	Maxwell4	
[00:00:26]: 			K: 	15	 V: 	Maxwell6	
[00:00:26]: 			K: 	16	 V: 	Maxwell7	
[00:00:26]: 			K: 	17	 V: 	Warzone_1	
[00:00:26]: 			K: 	18	 V: 	Warzone_2	
[00:00:26]: 			K: 	19	 V: 	Warzone_3	
[00:00:26]: 		K: 	required_prefabs	 V: 	table: 3BAA5710	
[00:00:26]: 			K: 	1	 V: 	multiplayer_portal	
[00:00:26]: 		K: 	required_setpieces	 V: 	table: 3BAA7308	
[00:00:26]: 			K: 	1	 V: 	Sculptures_1	
[00:00:26]: 			K: 	2	 V: 	Maxwell5	
[00:00:26]: 		K: 	substitutes	 V: 	table: 3BAA71F0	
[00:00:26]: 		K: 	version	 V: 	4	
[00:00:26]: 
#######
#
# Generating SURVIVAL Mode Level
#
#######
	
[00:00:26]: Prefab Swap Selection: regular grass	
[00:00:26]: Prefab Swap Selection: regular twigs	
[00:00:26]: Prefab Swap Selection: regular berries	
[00:00:26]: Applying mod to current task set	
[00:00:26]: Applying mod to current level	
[00:00:26]: New size:	400	medium	
[00:00:26]: Creating story...	
[00:00:26]: [Story Gen] Generate nodes. Starting at: 'MaxHome'	
[00:00:26]: [Story Gen] LinkNodesByKeys	
[00:00:26]: Finding valid start task...	
[00:00:26]: No valid start node, using first task.	
[00:00:26]: Has start node	MaxHome	
[00:00:26]: Adding Background Nodes	
[00:00:26]: [Story Gen] Adding Cove Nodes	
[00:00:26]: Warning! Couldn't find a spot in MaxHome for Dev Graveyard	
[00:00:26]: [Ocean] Processing ocean fake room content.	
[00:00:26]: [WorldSimActual::WorldGen_InitializeNodePoints]
[00:00:26]: [WorldSimActual::WorldGen_VoronoiPass]
[00:00:26]: GenerateVoronoiMap [100]:
[00:00:26]: ...Done.
[00:00:26]: ... story created	
[00:00:26]: Baking map...	400	
[00:00:26]: [WorldSimActual::WorldGen_Commit] worldgen success.
[00:00:26]: [WorldSimActual::ConvertToTileMap]
[00:00:26]: [ConvertToTileMap]
[00:00:26]: [WorldSimActual::ConvertToTileMap] complete
[00:00:26]: [WorldSimActual::SeparateIslands]
[00:00:26]: [SeparateIslands]
[00:00:26]: [WorldSimActual::SeparateIslands] complete
[00:00:26]: Map Baked!	
[00:00:26]: [WorldSimActual::ForceConnectivity]
[00:00:26]: [GenerateLandmasses]
[00:00:26]: [GenerateLandmasses] islands: 2
[00:00:26]: [MergeConnectedLandmasses] false
[00:00:26]: [WorldSimActual::ForceConnectivity] complete
[00:00:26]: [WorldSimActual::DrawRoads]
[00:00:26]: [DrawRoads]
[00:00:26]: [WorldSimActual::DrawRoads] complete
[00:00:26]: Encoding...	
[00:00:26]: Encoding... DONE	
[00:00:26]: Checking Tags	
[00:00:26]: Populating voronoi...	
[00:00:26]: [ReplaceSingleNonLandTiles] Validating...
[00:00:26]: [ReplaceSingleNonLandTiles] Replaced 12 tiles.
[00:00:26]: Not checking for disconnected tiles.	
[00:00:26]: [Ocean] Placing ocean set pieces.	
[00:00:26]: [Ocean] Placed 0 of 0 ocean set pieces.	
[00:00:26]: [Ocean] Convert impassible to water...	
[00:00:26]: [Ocean]  Square fill...	
[00:00:26]: [Ocean]  Ground fill...	
[00:00:26]: [Ocean]  Noise...	
[00:00:26]: [Ocean]  Blend...	
[00:00:27]: [Ocean]  Adding shoreline...	
[00:00:27]: [Ocean] Void Outline...	
[00:00:27]: [Ocean] Populating the ocean with lots of fun things to do...	
[00:00:27]: [Ocean] Placing ocean set pieces.	
[00:00:27]: [Ocean] Placed 9 of 9 ocean set pieces.	
[00:00:27]: [ReplaceSingleNonLandTiles] Validating...
[00:00:27]: [ReplaceSingleNonLandTiles] Replaced 0 tiles


edit4:
Now trying to change the task/room MaxHome. I replaced the "impassable" ground with grass and for now (20 tries) it looks again good, but will run the loop (world generation loop) some minutes more to be sure...
edit5:
Guess it is indeed solved now :)

Edited by Serpens
Link to comment
Share on other sites

WTF ?! After ~100! tries, the game finally crashed again with the exact same problem of no error and same location within Generate of the world.... Why the hell took it so long now... I give up, without any error message and without debugging the Generate function, I can not solve this.
isnt there a dump file or sth like that for DST? there must be a way to find out the error...

Edited by Serpens
Link to comment
Share on other sites

Yeah, nothing fancy going on in there. Did you try disabling all the other mods? It looks like it's loading e.g. Teleportato, which I believe also does something in worldgen.

Anyway, the line that usually comes after your last line, is "Done forest map gen!", as seen here. I don't have any experience with world generation stuff, so I don't know what's happening there.


[00:02:18]: [Ocean] Populating the ocean with lots of fun things to do...	
[00:02:18]: [Ocean] Placing ocean set pieces.	
[00:02:18]: [Ocean] Placed 9 of 9 ocean set pieces.	
[00:02:18]: Checking Required Prefab moon_altar_rock_idol has at least 1 instances (1 found).	
[00:02:18]: Checking Required Prefab pigking has at least 1 instances (1 found).	
[00:02:18]: Checking Required Prefab multiplayer_portal has at least 1 instances (1 found).	
[00:02:18]: Checking Required Prefab moon_altar_rock_seed has at least 1 instances (1 found).	
[00:02:18]: Checking Required Prefab moon_altar_rock_glass has at least 1 instances (1 found).	
[00:02:18]: Checking Required Prefab moon_fissure has at least 1 instances (57 found).	
[00:02:18]: [ReplaceSingleNonLandTiles] Validating...
[00:02:18]: [ReplaceSingleNonLandTiles] Replaced 0 tiles.
[00:02:18]: Done forest map gen!	
[00:02:18]: Checking map...	
[00:02:18]: Generation complete	

 

worldgen_main seems to read some global variable called debug, and if that's set to true it does a lot of extra logging. I don't know if it'll work, but try throwing in:
debug = true
in your modmain.lua and see what it does :)

Link to comment
Share on other sites

32 minutes ago, Ultroman said:

Yeah, nothing fancy going on in there. Did you try disabling all the other mods? It looks like it's loading e.g. Teleportato, which I believe also does something in worldgen.

Anyway, the line that usually comes after your last line, is "Done forest map gen!", as seen here. I don't have any experience with world generation stuff, so I don't know what's happening there.

worldgen_main seems to read some global variable called debug, and if that's set to true it does a lot of extra logging. I don't know if it'll work, but try throwing in:
debug = true
in your modmain.lua and see what it does :)

Yes, we can see within within scripts/map/forest_map.lua in line 729 the "Done" print message. And we see e.g. the "Not checking for disconnected tiles" and the Ocean commands above. I was not able to find "ReplaceSingleNonLandTiles" more than once (before the "disconnected tiles") so all I know is that the error must happen within this lines (608 - 727):

for k,ents in pairs(entities) do
        for i=#ents, 1, -1 do
            local x = ents[i].x/TILE_SCALE + map_width/2.0 
            local y = ents[i].z/TILE_SCALE + map_height/2.0 

            local tiletype = WorldSim:GetVisualTileAtPosition(x,y) -- Warning: This does not quite work as expected. It thinks the ground type id is in rendering order, which it totally is not!
            if tiletype == GROUND.IMPASSABLE then
				print("Removing entity on IMPASSABLE", k, x, y, ""..ents[i].x..", 0, "..ents[i].z)
                table.remove(entities[k], i)
            end
        end
    end

    if translated_prefabs ~= nil then
        -- Filter out any etities over our overrides
        for prefab,mult in pairs(translated_prefabs) do
            if mult < 1 and entities[prefab] ~= nil and #entities[prefab] > 0 then
                local new_amt = math.floor(#entities[prefab]*mult)
                if new_amt == 0 then
                    entities[prefab] = nil
                else
                    entities[prefab] = shuffleArray(entities[prefab])
                    while #entities[prefab] > new_amt do
                        table.remove(entities[prefab], 1)
                    end
                end
            end
        end
    end


    local double_check = {}
    for i,prefab in ipairs(level.required_prefabs or {}) do
        if double_check[prefab] == nil then
            double_check[prefab] = 1
        else
            double_check[prefab] = double_check[prefab] + 1
        end
    end
    for prefab, count in pairs(topology_save.root:GetRequiredPrefabs()) do
        if double_check[prefab] == nil then
            double_check[prefab] = count
        else
            double_check[prefab] = double_check[prefab] + count
        end
    end

  	BunchSpawnerInit(entities, map_width, map_height)
	BunchSpawnerRun(WorldSim)

    for prefab,count in pairs(double_check) do
		print ("Checking Required Prefab " .. prefab .. " has at least " .. count .. " instances (" .. (entities[prefab] ~= nil and #entities[prefab] or 0) .. " found).")
		
        if entities[prefab] == nil or #entities[prefab] < count then
            print(string.format("PANIC: missing required prefab [%s]! Expected %d, got %d", prefab, count, entities[prefab] == nil and 0 or #entities[prefab]))
            if SKIP_GEN_CHECKS == false then
                return nil
            end
        end
    end

    save.ents = entities

    save.map.tiles, save.map.nav, save.map.adj = WorldSim:GetEncodedMap(join_islands)

    save.map.topology.overrides = runtime_overrides
    if save.map.topology.overrides == nil then
        save.map.topology.overrides = {}
    end
    save.map.topology.overrides.original = deepcopy(current_gen_params)

    save.map.width, save.map.height = map_width, map_height

    save.playerinfo = {}
	if (save.ents.spawnpoint_multiplayer == nil or #save.ents.spawnpoint_multiplayer == 0)
        and (save.ents.multiplayer_portal == nil or #save.ents.multiplayer_portal == 0)
        and (save.ents.quagmire_portal == nil or #save.ents.quagmire_portal == 0)
        and (save.ents.lavaarena_portal == nil or #save.ents.lavaarena_portal == 0) then
    	print("PANIC: No start location!")
    	if SKIP_GEN_CHECKS == false then
    		return nil
    	else
    		save.ents.spawnpoint={{x=0,y=0,z=0}}
    	end
    end

    save.map.roads = {}

    if current_gen_params.roads == nil or current_gen_params.roads ~= "never" then
        local num_roads, road_weight, points_x, points_y = WorldSim:GetRoad(0, join_islands)
        local current_road = 1
        local min_road_length = math.random(3,5)
        --print("Building roads... Min Length:"..min_road_length, current_gen_params.roads)

        if #points_x>=min_road_length then
            save.map.roads[current_road] = {3}
            for current_pos_idx = 1, #points_x  do
                local x = math.floor((points_x[current_pos_idx] - map_width/2.0)*TILE_SCALE*10)/10.0
                local y = math.floor((points_y[current_pos_idx] - map_height/2.0)*TILE_SCALE*10)/10.0

                table.insert(save.map.roads[current_road], {x, y})
            end
            current_road = current_road + 1
        end

        for current_road = current_road, num_roads  do

            num_roads, road_weight, points_x, points_y = WorldSim:GetRoad(current_road-1, join_islands)

            if #points_x>=min_road_length then
                save.map.roads[current_road] = {road_weight}
                for current_pos_idx = 1, #points_x  do
                    local x = math.floor((points_x[current_pos_idx] - map_width/2.0)*TILE_SCALE*10)/10.0
                    local y = math.floor((points_y[current_pos_idx] - map_height/2.0)*TILE_SCALE*10)/10.0

                    table.insert(save.map.roads[current_road], {x, y})
                end
            end
        end
    end


in forest_map.lua.

Debug in modworld_main won't help, at least if I read the code properly, cause it has no effect on the forest_map.lua, right? In addition to this, worldgen_main is calling (returning) the function LoadParametersAndGenerate with "false" so there is no way to set it to true.
I would like to add more print statements to the forst_map.lua Generate function, don't you know how?

edit:
I'm the author of the teleportato mod and currently working on it to be combined with another mod (adventure) so the players can play the DS adventure. Or other modders can create their own worlds and combine it with the teleportato mod, to allow players to hop from one challanging world to another.
Everything is working so far, but I have tons of problems with the last MaxHome world. I already spent hundreds of hours on it, but it is still a big mess (mostly because of all the maxwell interaction was writtin for DS and I have no clue how to poperly port it to DST).

Edited by Serpens
Link to comment
Share on other sites

24 minutes ago, Zarklord said:

if your having a crash, with no error logs, spam your code with print statements, to help narrow down the location, after having narrowed the location, spam the narrowed location with print statements, rinse repeat.

yes, but this location is within scripts/map/forest_map.lua between line 608 - 727 .. and I can't figure out how to add prints within this file. Copy pasting the file into my mod does not overwrite it (don't know for what files this work and for which not).  How else could I add print statements?

Edited by Serpens
Link to comment
Share on other sites

  • Developer
28 minutes ago, Serpens said:

yes, but this location is within scripts/map/forest_map.lua between line 608 - 727 .. and I can't figure out how to add prints within this file. Copy pasting the file into my mod does not overwrite it (don't know for what files this work and for which not).  How else could I add print statements?

edit the file the game loads(obviously temporarily) then.

Link to comment
Share on other sites

2 hours ago, Zarklord said:

edit the file the game loads(obviously temporarily) then.

ah, wasn't aware that this is still possbile with the zip files, zipping an old script folder causes a crash, never tried it with the newest one.

So the line causing the crash is:
local num_roads, road_weight, points_x, points_y = WorldSim:GetRoad(0, join_islands)
Can't look into that function, but it isnot called when I set the level overrides "roads" to "never". So it should be solved now :)

Edited by Serpens
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...