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
The information "bBarbMajorAllyExists" is not existing in my save, when you ask for it.
So dataobj.getValue(datastring) returns nil.
Could you expand that funtion by asking for the value to be non-empty?
If it is not,
- fill the SaveData with a default value and continue
If it is,
- continue
smt like that?
BarbariansEvolvedSharedFunctions.lua - Line 95:
function BEReportRead(dataobj, datastring)
retval = dataobj.GetValue(datastring)
if (retval == nil) then
retval = "-nil-"
end
print("READ: " .. datastring .. " [" .. retval .. "]")
(...)
end
This still produces a nil value, but it prints it now, isntead of crashing:
[3721.528] BarbariansEvolved: READ: bBarbMajorAllyExists [-nil-]
So there is still some issue with "bBarbMajorAllyExists" to be fixed...
Workaround ftw :D
Sorry about the slow reply - it's harder to see new discussion threads at a glance.
I can fix beReportRead to account for nils; I just never expected it to fail. Sloppy coding I guess.
The value wasnt nil the first 300 turns (or it should have crashed), so i think you actually delete the value somehow.
I also experienced a problem with loading saves while currently playing. I havent looked into it, but maybe there is something up with your value-saving.
Sloppy coding Happens to the best. :)