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
attempted index: item of non-table: null
function: loadItemContainer -- file: CharacterSave_SaveLoad.lua line # 295 | MOD: CharacterSave
function: loadChar -- file: CharacterSave_SaveLoad.lua line # 247 | MOD: CharacterSave
function: onMouseUp -- file: ISButton.lua line # 56 | Vanilla
java.lang.RuntimeException: attempted index: item of non-table: null
When using this mod, my Strength and Fitness stats don't stick after loading a save; they revert.
I found that character:applyTraits seems to set Strength and Fitness to certain values, though I'm unsure why.
Here's a workaround that worked for me (only basic tests conducted):
\2673317083\mods\CharacterSave\media\lua\client\CharacterSave_SaveLoad.lua
line:around 222
before:
character:applyTraits(updatedTraits)--is lua ArrayList same as Java ArrayList<String> ? seems to be
after:
local beforeStrength = character:getPerkLevel(Perks.Strength);
local beforeFitness = character:getPerkLevel(Perks.Fitness);
character:applyTraits(updatedTraits)--is lua ArrayList same as Java ArrayList<String> ? seems to be
if beforeStrength <= 0 then character:setPerkLevelDebug(Perks.Strength, 0); end
if beforeFitness <= 0 then character:setPerkLevelDebug(Perks.Fitness, 0); end
I'm new to modding and Zomboid mods, so please take this as a suggestion."
transration by gemini
you need to have the same name
it works like a charm in build 42
11/10 mod
It's good I backed up at least, but that should be noted in the footnote above
When I go to my current save and try to load that fresh character, nothing happens too
- Some containers will fill to full when loaded. Even if they were empty when saved, they will load to 100% completely filled. These include but are not limited to, Gas Cans, Propane Torches, Water Dispensers. This being said, a cologne bottle I filled with whiskey did maintain its 79/100 mL, and another flask kept its volume as well. So not all liquid containers behave this way.
- All Skill VHS are loaded as a useless 'VHS - Retail' which does not do anything. RIP Skill VHS.
- Many character values are not saved (only ones listed in mod description are saved). For example, health tab was reset, calories were reset to 50% of the max value, and etc:.
- Bags may change skins (Eg: Hiking Bag)
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2914075159
Also I have transferred a character and it works as expected, only that I have one more strength point as I should and the XP is in minus, probably that amount that it actually missed to the next level. All other skills seem to be correct.
I saved a character in build42 that was at 2 fitness, 4 strength, then loaded in a new save. The traits are fine, other skills are fine, but fitness and strength are flat 5 points.
Changing mods in an existing world
Before adding mods to an old save, it is highly recommended to make a backup save!
Click the "Load" button
Select the save
Click the "More..." button in the lower right corner
Press the button "Choose mods..."
Enable / disable mods according to the instructions above
Click the "Back" button
Ready! The list of mods has now been changed in your save.
https://pzwiki.net/wiki/Using_mods
This means: Describe me all you did relative to this mod in your B41 save and in your B42 save, as if I was 4 year old.
So you can continue in B42 a character started in a B41 world.
I wonder if by setting Explorer trait before this mod in the load order you'll also NOT get any problem.
else you can ask them to not override a whole render function just to add a field.
And yes, with trait explorer mod active you wont see the Save/Load options in character panel.
I'm not saying you lying because I believe you, I know how weird conflicts can get.
Could you just elaborate a bit?
If you didn't know your old characters name (like me), here's what you can do on PC:
- Go to: C:\Users\<you>\Zomboid\Lua
- Look for a "CharacterSave_<fname>_<lname>.ini file.
- you'll see yours.
- create your new character that name, then click load.
Thank you, mod author!
Now i still backup sometimes, but less, because you can respawn in the same world with your original character.
Very good work