Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Ill look into this now and should have something out soon since Im on break from uni atm.
I probably just forgot to refresh the player object.
Are you having the same issue, or whats wrong?
I've uploaded an update that should address this issue. As far as I could tell from testing, it was being caused because the dead player object loses track of it's position in the world. findNearbyPillow() would then fire because the code want's to know if a pillow is nearby, and since the player doesn't know where they are, the function fails and throws that error.
Please let me know if there are any other issues!
STACK TRACE
-----------------------------------------
function: findNearbyPillow -- file: ComfySleeping_Client.lua line # 355 | MOD: ComfySleeping
function: mainFunc -- file: ComfySleeping_Client.lua line # 287 | MOD: ComfySleeping
ERROR: General , 1699931446867> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getWorldObjects of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1699931446867> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getWorldObjects of non-table: null
and this errors appear not only when you hide under the bed, but anywhere
Unsub from the mod on the workshop, and resub. I double checked, and I can hide underneath a bed and wardrobe and both result in no errors being thrown. Sometimes Steam has issues seeing and downloading the proper workshop mod version.
Once you do the above, errors should go away.
Much appreciated!
Valid response lol. I did experience the problem Ortus posted when I went to test and killed a character, haven't noticed it in my current MP save as nobody had died up until that point, or at least nobody did with debug on so nobody would've noticed the errors.
After investigation: comfortmodmap and clothing list were not being populated in init
changing inputs of comfortmodmap to include ComfySleeping precursor, eg:
ComfySleeping.options.hatcomfymod instead of options.hatcomfymod
caused comfortmodmap be populated again
clothinglist required this change:
local itemType = tostring(item:getType())
working again
Well... ♥♥♥♥, lol. I know I wasn't going crazy one day when I had my bag on and my comfort status wasn't changing at all haha.
Massive thanks for bringing this to my attention, I implemented the fixes you mentioned (huge help, thank you). item:getType() returns something different now from what I can tell, but changing this to item:getTypeString() fixes that issue.
Bags also didn't count at all because they don't have a body location, and the ifelse for handling Container type items wasn't getting an itemName declared locally, and the comfortModMap needs a body location. Fixed these two by adding in a local variable for the name, and setting the comfort modifier for bags to the bagComfyMod option, instead of checking the comfortModMap.
ComfySleeping should be working properly now!
(Update will be out in a moment)
Update 2.9.0 should be live and contain fixed code for both B41 and B42!