Adding a non-portable Light to the inventory should cause the player to glow
Was selling Nalcarya some stuff, when I'd finished I noticed a blank spot in the player inventory. Clicked around on that spot, and a key (I was carrying) appeared there. Then the lighting for the entire cell (still in the shop) turned a weird shade of yellow. Outside seems normal enough and no other interior cell appears to have been affected, either.
https://dl.dropboxusercontent.com/u/67740160/_BUG__Nalcarya_s_shop_is_yellow_tinged_ is a savegame with the issue.
#2 Updated by Jannik Heller over 2 years ago
Light is caused by a reference "yellow light" that has been dropped there. I presume you got this into your inventory somehow, since it's not meant to be there it has no icon and shows up blank. Then you dropped it into the cell without noticing.
So, the real question is, how did it get into your inventory? I checked the default 3 ESMs for occurrences of this reference and there are none, not even in scripts. I think it might a mod that you're using.
#3 Updated by Thomas Staudinger over 2 years ago
Oh yeah, we already had that problem, can happen with vanilla assets too, but you have to use the console to give yourself some unusual (normally not usable) object, e.g. some static lanterns, then there will be a blank spot in your inventory which corresponds to that object, when I reported that a while back someone (scrawl?) said they want to keep that as it is (to allow for certain kinds of mods if I remember correctly).
You can try it by writing "player->additem light_de_paper_lantern_01_200 1" in the console, this will give you such a blank spot, if you put that invisible item on the ground it will be visible as a lantern that is not able to be picked up.
#8 Updated by Jannik Heller almost 2 years ago
- Tracker changed from Bug to Feature
- Target version set to openmw-0.41
As it turns out, this is used in the vanilla game files, in particular the "Hopesfire" blade which should emit light but does not in OpenMW.
if ( bladeOut == 0 ) if ( Player->GetItemCount "Blade Light" > 0 ) Player->RemoveItem "Blade Light" 1 set addOnce to 0 endif endif if ( bladeOut == 1 ) if ( addOnce == 0 ) Player->AddItem "Blade Light" 1 set addOnce to 1 endif endif