Jump to content

Crash when trying to learn from a SW recipe in vanilla/RoG and vice versa


alainmcd
  • Version: PC/MAC/Linux Pending

See title. Error message and traceback:

Spoiler

scripts/mainfunctions.lua(862,1) ...s/common/dont_starve/data/scripts/components/builder.lua:326: attempt to index local 'recipe' (a nil value)
LUA ERROR stack traceback:
    C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/components/teacher.lua:25 in (field) fn (Lua) <22-36>
    C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/bufferedaction.lua:20 in (method) Do (Lua) <17-33>
    C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/entityscript.lua:1084 in (method) PerformBufferedAction (Lua) <1074-1097>
    C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraphs/SGwilson.lua:2034 in (field) ontimeout (Lua) <2031-2035>
    C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:474 in (method) UpdateState (Lua) <460-504>
    C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:531 in (method) Update (Lua) <523-551>
    C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua:124 in (method) Update (Lua) <107-148>
    C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/scripts/update.lua:178 in () ? (Lua) <90-191>

 

Suggested fix: change line 326 of builder.lua to

if recipe ~= nil and not recipe.nounlock and not self.brainjellyhat then

Would be great if vanilla and Rog's builder.lua also got updated to avoid possible issues with mods. Compare to DST's builder.lua (l. 254).


Steps to Reproduce
Create a SW world, c_give"blueprint" until you get a SW-exclusive recipe, c_spawn"shipwrecked_exit", travel to a vanilla/RoG world, try to learn the recipe.



User Feedback


There are no comments to display.


×
  • Create New...