Jump to content

Crash with lua error near pigs


aepaen

Recommended Posts

I had problem with lua error crashes at table coerced to string, near pigs in one of attempts, following fixed issue;

--- widgets/hoverer.lua~    2017-03-14 19:27:37.465661044 +0100
+++ widgets/hoverer.lua    2017-03-14 19:28:15.901851638 +0100
@@ -54,7 +54,7 @@
                 local name = lmb.target:GetDisplayName() or (lmb.target.components.named and lb.target.components.named.name)
                 
                 
-                if name then
+                if name and type(name) == "string" then
                     local adjective = lmb.target:GetAdjective()
                     
                     if adjective then

 

Moderator, please drop this if above shouldn't ever hit forum, just pass that to people who might like to patch game itself, type(name) was returning table if I remember correctly.

 

 

Link to comment
Share on other sites

If you are able to reproduce the crash on your save file, could you please provide us with the full log.txt file - you will find this in your documents folder at Documents\Klei\DoNotStarve\log.txt

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
×
  • Create New...