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
This has been something that's been annoying me since this error permanently locks the game to the debug menu whenever I boot it up in debugging mode. Makes trying to debug stuff for other mods impossible.
The console log below should help describe what's going on, but in essence whenever it tries to do Category Display tweak called from CC's Better Sorting mod, it thinks the mod's category names don't exist at all. I've checked CC's other mods and any other mod that uses a copy of the ItemTweaker API (that is to say, only OGSN's stuff) and they function just fine. It seems that the error is specific to Better Sorting's Item_Categories.lua file since the mod's other lua that tweaks the name hasn't puked up any errors.
I also made sure the game loads the API last, moved Better Sorting's local ItemTweaker_Copy_CC.lua file so it doesn't end up overwriting your version, and even had changed the lua's dependency to ItemTweaker_Core.lua.
So far, nothing. Its really bizarre. I'm hoping you have something to say about this and apologies if this ends up wasting your time in the end.
Dude, you're welcome. Its good to know that the details I left in is helpful and from my heart, THANK YOU!
Good lord that error was driving me nuts especially since it kept crashing debug at start, so I couldn't debug ♥♥♥♥ at all.
But yeah, you're welcome and thank you for putting your time into this!
-----------------------------------------
Callframe at: DoParam
function: tweakItems -- file: ItemTweaker.lua line # 16
ERROR: General , 1630016282638> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor44.invoke.
ERROR: General , 1630016282638> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:198)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:188)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:38)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:61)
at zombie.core.Core.ResetLua(Core.java:3970)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:198)
at se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:60)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1924)
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1215)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1173)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1173)
at zombie.ui.UIManager.update(UIManager.java:782)
at zombie.GameWindow.logic(GameWindow.java:249)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:726)
at zombie.GameWindow.run_ez(GameWindow.java:628)
at zombie.GameWindow.mainThread(GameWindow.java:471)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.security.InvalidParameterException: Error: Type = Drainable, is not a valid parameter in item: Sugar
at zombie.scripting.objects.Item.DoParam(Item.java:2942)
... 39 more
last PZ version. and... 136 mods xd but no other issues
Nonetheless one of your other mods probably calls TweakItem(.."Drainable,"..)
and should instead call: TweakItem(.."Drainable"..)
i.e. without the ",". but I may be wrong on this, so refer to the other mod you use for tweaking item.
TweakItem("Base.BookMetalWelding5","DisplayName", "Metal Working - Master");
It shows it applies
LOG : General , 1634710752810> Base.BookMetalWelding5: displayname, Master Metalwork => Metal Working - Master
In game it doesn't show, and i added a line to your script to check paramater right after and i'm getting
LOG : General , 1634710752811> Base.BookMetalWelding5: displayname now equals Master Metalwork
PS Line added =
ItemTweaker_Core.lua
Line Num: 86
Lines:
local itemValue = getItemPropertyValue(item,property);
print(itemName .. ": " .. property .. " now equals " .. itemValue);
Any help would be amazing
The code i'm running is:
TweakItem("Base.Bag_Satchel", "ClothingItemExtra", "Bag_Satchel")
TweakItem("Base.Bag_Satchel", "ClothingItemExtraOption", "FannyPack_WearBack")
TweakItem("Base.Bag_Satchel", "BodyLocation", "Back2")
TweakItem("Base.Bag_Satchel", "CanBeEquipped", "FannyPackBack")
Which is working with the original ItemTweakAPI as seen in game and in the log:
LOG : General , 1638385898784> Base.Bag_Satchel: ClothingItemExtra, ? => Bag_Satchel.
LOG : General , 1638385898784> Base.Bag_Satchel: ClothingItemExtraOption, ? => FannyPack_WearBack.
LOG : General , 1638385898784> Base.Bag_Satchel: BodyLocation, ? => Back2.
LOG : General , 1638385898784> Base.Bag_Satchel: CanBeEquipped, ? => FannyPackBack.
However, this is not working in your version- with no tweaks whatsoever in the log.
I see 2 potential explanations but there may be others:
- you do not yet know that items are modified by mods only if the mod is active BEFORE the item is generated. It should not change an item that you already have.
- you do not have activated the mod when you think you have.
The best test is to activate the mod, then stop and start the game, then create a new game with the mod active, then find the item, then ensure it has the properties you want it to have.
If with this procedure it works on vanilla version and not on mine please insist here.
But I think both behave the same on that point with that procedure.
And then again I got some more errors once I was in game:
Again, both my mod and ItemTweaker are loaded, and are the only mods loaded.
Second thing - Satchel Weight Reduction mod also stopped working, altough is loaded just fine.
for the second thing, try with a new game. Modified item definition (includes the weight reduction) is set at item discovery time. This is specified in this mod's description and most modders specify it.
I've run new game, so it's not the issue - altought i'll try to make some more tests, with just the Satchel mods (both mods form Arpy, to wear satchel with bags and to give satchel more reduction) plus item tweaker, everything works just fine, so i guess one of other mods received some "stealth update" i just need to figure out which one of those 100+ mods does this...
Thank you for reply and sorry for trouble, next time i will check more things before reporting something that might not be related to the mod.