Bug- water level

Title:Water level Error

Summary:I am not sure what happened or why honestly.

Steps to reproduce:
1)dug ditch
2)saved game
3)reloded game

Expected Results:
everything to be fine

Actual Results:
constant error showing up

Notes:
Game Mode:Normal

Attachments:
Image:
http://s6.postimg.org/lu560gjkx/253250_2015_10_01_00006.png
Save File:Free File Hosting - Online Storage; Upload Mp3, Videos, Music. Backup Files
Log:http://www.filedropper.com/bugreport
error:
develop-2620 (x64)
radiant/modules/entities.luac:100: attempt to index local ‘entity’ (a nil value)
stack traceback:
[C]: ?
radiant/modules/entities.luac:100: in function 'get_world_grid_location’
stonehearth/components/water/water_component.luac:32: in function ‘get_water_level’
…hearth/components/waterfall/waterfall_component.luac:63: in function ‘_update’
…hearth/components/waterfall/waterfall_component.luac:54: in function <…hearth/components/waterfall/waterfall_component.luac:54>

Versions and Mods:
Mods: N/A
Version:StoneHearth 0.12.0
Develop:2620 x64 build

System Information:
System: Windows 10 Home 64-bit
Processor:Intel Core i7-4790k CPU @ 4.00GHz
Ram:16.0 GB

1 Like

upon trying to fix water, I removed the building in front of it. and dug a ditch.

not only did I get the same error I got this one ontop of it

develop-2620 (x64)stonehearth/components/water/water_component.luac:281: assertion failed!stack traceback:
radiant/modules/common.luac:46: in function <radiant/modules/common.luac:46>
[C]: in function 'assert’
stonehearth/components/water/water_component.luac:281: in function '_remove_height’
stonehearth/components/water/water_component.luac:105: in function '_remove_water’
stonehearth/components/water/water_component.luac:180: in function ‘fill_channel_from_water_region’
…earth/services/server/hydrology/channel_manager.luac:180: in function ‘callback_fn’
…earth/services/server/hydrology/channel_manager.luac:58: in function ‘each_channel_ascending’
…earth/services/server/hydrology/channel_manager.luac:180: in function ‘fill_channels_to_capacity’
…rth/services/server/hydrology/hydrology_service.luac:257: in function ‘_on_tick’
…rth/services/server/hydrology/hydrology_service.luac:14: in function '_fn’
radiant/controllers/timer_controller.luac:33: in function 'fire’
radiant/controllers/time_tracker_controller.luac:9: in function <radiant/controllers/time_tracker_controller.luac:9>
[C]: in function 'xpcall’
radiant/controllers/time_tracker_controller.luac:9: in function ‘set_now’
…earth/services/server/calendar/calendar_service.luac:133: in function 'fn’
radiant/modules/events.luac:53: in function <radiant/modules/events.luac:52>
[C]: in function 'xpcall’
radiant/modules/events.luac:52: in function 'trigger’
radiant/modules/events.luac:70: in function '_trigger_gameloop’
radiant/modules/events.luac:78: in function '_update’
radiant/server.luac:19: in function <radiant/server.luac:17>

develop-2630 (x64)
stonehearth/components/water/water_component.luac:281: assertion failed!
stack traceback:
radiant/modules/common.luac:46: in function <radiant/modules/common.luac:46>
[C]: in function 'assert’
stonehearth/components/water/water_component.luac:281: in function '_remove_height’
stonehearth/components/water/water_component.luac:105: in function '_remove_water’
stonehearth/components/water/water_component.luac:180: in function ‘fill_channel_from_water_region’
…earth/services/server/hydrology/channel_manager.luac:180: in function ‘callback_fn’
…earth/services/server/hydrology/channel_manager.luac:58: in function ‘each_channel_ascending’
…earth/services/server/hydrology/channel_manager.luac:180: in function ‘fill_channels_to_capacity’
…rth/services/server/hydrology/hydrology_service.luac:257: in function ‘_on_tick’
…rth/services/server/hydrology/hydrology_service.luac:15: in function '_fn’
radiant/controllers/timer_controller.luac:33: in function 'fire’
radiant/controllers/time_tracker_controller.luac:9: in function <radiant/controllers/time_tracker_controller.luac:9>
[C]: in function 'xpcall’
radiant/controllers/time_tracker_controller.luac:9: in function ‘set_now’
…earth/services/server/calendar/calendar_service.luac:133: in function 'fn’
radiant/modules/events.luac:58: in function <radiant/modules/events.luac:57>
[C]: in function 'xpcall’
radiant/modules/events.luac:57: in function 'trigger’
radiant/modules/events.luac:78: in function '_trigger_gameloop’
radiant/modules/events.luac:87: in function '_update’
radiant/server.luac:19: in function <radiant/server.luac:17>

I don’t know what the problem is.

Here is how I got to it:

  1. Zone some stockpiles in a sunken piece of land.

  2. Pause game

  3. Designate a canal connecting the sunken land to a body of water on the same level (despite it being sunken land, I hope you understand what I mean by the same level)

  4. Unpause game.

  5. Redesignate zones outside of the sunken piece of land and remove zones inside the sunken land.

I forget which came first, 4 or 5.

Hey @athenalras, thanks for the reproduction steps, are you able to upload the save file or the full stonehearth.log file?

From your description and the log this does seem to be related to water in some way, but I do not remember seeing this type of error before.

As @Simica_Na pointed out, this error has been seen before…

I am going to page @8BitCrab and @SteveAdamo for this to be merged.
Also, this needs a bug report category…

2 Likes

its the same one as this one

its been around for awhile

I didn’t get the savefile. But I had no problem with digging holes.

It was my embark area. I moved the furniture and dezoned the stockpiles after designating where to dig the canal. That seemed to trigger the error because I never reached the water and also because the error popped up after I decided to remove the zones within the sunken land.

thanks! :+1:

thanks again… merged and [tagged]…

1 Like