Cannot read property 'level_requirement'

Summary:
On load of a savegame, right after the patching.
Reloading on F5 does NOT remove the error.

Actual Results:

release-698 (x64)[M]Uncaught TypeError: Cannot read property 'level_requirement' of undefinedTypeError: Cannot read property 'level_requirement' of undefined
    at http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/place_floor_deco_tool.js:138:35
    at Object.<anonymous> (http://radiant/radiant/js/radiant/object.js:295:19)
    at Function.each (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.min.js:4:5401)
    at Object.radiant.each (http://radiant/radiant/js/radiant/object.js:293:15)
    at http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/place_floor_deco_tool.js:136:30
    at Object.<anonymous> (http://radiant/radiant/js/radiant/object.js:295:19)
    at Function.each (http://radiant/stonehearth/ui/root/js/libs/jquery-1.10.2.min.js:4:5401)
    at Object.radiant.each (http://radiant/radiant/js/radiant/object.js:293:15)
    at http://radiant/stonehearth/ui/game/modes/build_mode/building_designer_2/place_floor_deco_tool.js:135:27
    at n.<anonymous> (http://radiant/radiant/js/radiant/object.js:295:19)

Version Number and mods:
A20r698

  • HOMF
  • LOMC
  • LOMH
  • Jomaxro’s doorway mod
  • Endpieces
  • Better stockpiles
  • unitframeactivitymod
  • unitframehealthmod
  • Lodewall lights (currently testing)

Hold on. My own mod may be the culprit. Testing.
Edit: Can’t replicate on a new game. Will upload a save after a while.
Edit2: here it is.
1484993418794.7z (8.1 MB)

Disregard that, thankfully @BarbeQ has found the cause - a typo in blacksmith_recipes.
Perhaps the report stack can be improved to indicate error source and location correctly instead of “undefined”. That would greatly help when tracking similar errors in the future.

3 Likes