EverSoNitro Posted August 30, 2015 Share Posted August 30, 2015 I have a custom character that has special sleep properties, and they work fine when played as the host of a server. However, when I join a server running the mod as a client, and I try to craft one of the sleep items (in this case, the bed roll), I get the following error:modmain line 38: attempt to index field 'sleepingbag' (a nil value)The code in modmain is as follows (it's functionally identical for each item) Does anyone know where I might be able to fix it? My friend thinks that adding a global tag to the "inst.components.sleepingbag.onsleep" might fix it, but we both think asking here would be a good idea before doing anything. Link to comment Share on other sites More sharing options...
DarkXero Posted August 30, 2015 Share Posted August 30, 2015 @EverSoNitro,http://forums.kleientertainment.com/topic/56723-attempt-to-index-field-sleepingbag-a-nil-value/ Link to comment Share on other sites More sharing options...
EverSoNitro Posted August 30, 2015 Author Share Posted August 30, 2015 Thanks for the help! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now