Sign in to follow this  
Followers 0
aepaen

Crash with lua error near pigs

2 posts in this topic

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.

 

 

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0