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
We need dem 50k lumen lights
You do not need this one to use "fixed."
Tested with Build 41.78 + MP.
Using a red bulb in winter to stop giving myself snow blindness would be great
Use the fixed version linked below instead.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3050927523
Change the function "local function Adjust(Name, Property, Value)" in BetterFlashLights_Adjust.lua to:
local function Adjust(Name, Property, Value)
Item = ScriptManager.instance:getItem(Name)
if Item then
Item:DoParam(Property.." = "..Value)
else
print("Error: No item found with name " .. Name)
end
end
GitHub translation Files in French [github.com]
Very important: it is imperative to save files in ANSI format so that special characters, such as 'é', are correctly displayed in-game.
Thank you.
`attempted index: DoParam of non-table: null
function: Adjust -- file: BetterFlashlights_Adjust.lua line # 17 | MOD: Better Flashlights
function: BetterFlashlights_Adjust.lua -- file: BetterFlashlights_Adjust.lua line # 22 | MOD: Better Flashlights
java.lang.RuntimeException: attempted index: DoParam of non-table: null
`attempted index: DoParam of non-table: null
function: Adjust -- file: BetterFlashlights_Adjust.lua line # 17 | MOD: Better Flashlights
function: BetterFlashlights_Adjust.lua -- file: BetterFlashlights_Adjust.lua line # 22 | MOD: Better Flashlights
java.lang.RuntimeException: attempted index: DoParam of non-table: null
BetterFlashlights_Adjust.lua line 16 redefines Item global lua symbol. replace with :
[code]local Item = ScriptManager.instance:getItem(Name)[/code]
And do the same everywhere (in all your mods) you redefined "Item" global symbol.
Item is the global symbol used as key for all Item java class meta data for lua uses.
As a general rule of thumbs, do not use global variables when you can avoid it.
Have fun out there