Project Zomboid

Project Zomboid

Simplify
15 Comments
« Zero »  [author] 7 Sep, 2022 @ 5:57pm 
Attention:
Please get the latest update ASAP. There's a security issue introduced with recent overhaul update.

I have restricted cache/lua folder to server sided script.
« Zero »  [author] 4 Sep, 2022 @ 5:50pm 
Extensions will be updated to affect only modules that is requesting for the feature. There will be no changes to the api.

This way, it will not interfere with functionality of unrelated mods.

The update will take some time.
« Zero »  [author] 3 Sep, 2022 @ 10:30pm 
I've updated this mod ahead of the schedule since Evelynn encountered errors involving the previous version's mod loader.

Now that it's confirmed, if you see any errors related to require.lua #77 Simplify, it means that other mods is having compilation error caused by vanilla require.

The reason why my mod listed in the stacktrace is because it calls the default require when there's no such file inside cache/lua and root enabled mods directories.

Feel free to look at 'simplify/core/extension/require,lua'
« Zero »  [author] 22 Aug, 2022 @ 10:46pm 
Heya, I'm currently rewriting this mod which has become a very big mess due to MP mod loader requirements. I can't give the ETA but the upcoming update contains a lot of new stuffs such as hashmap, switch syntax, better sandbox settings value access, event manager for registering custom events, and streamlined server / client command processing which will channel specific module command's data into mod's command channel.

To be honest, it's getting difficult for me to maintain this mod alone since the scale became much bigger than I expected. Once the next update is released, I'll upload it to github so that anyone can contribute with validations / improvements / bug fixes / design changes and etc.

Please forgive me for not releasing update for my other mod. It's being heavily affected by the current state of this mod.
UdderlyEvelyn 19 Aug, 2022 @ 12:32pm 
Sorry for the lack of responses on my end I'm extremely busy making content and fixing things for my server's public debut in the coming weeks. Will re-test today and report in.
« Zero »  [author] 15 Aug, 2022 @ 10:41am 
I've uploaded a new patch. This time I removed the split function from extension list since it already exists by default. And also updated another extended function for compatibility. Please give me a bug report if the errors still occur. If there is one, then I'll need to rewrite my const module.
« Zero »  [author] 15 Aug, 2022 @ 9:22am 
yeah sure, i'll update it in 1 hour or something since this stuff already happened.
UdderlyEvelyn 15 Aug, 2022 @ 9:14am 
There might be other things breaking still - I highly recommend naming your methods something that people cannot accidentally call, like that split function could be simplifySplit or something, for example, to avoid unintentional use. This sort of thing is a minefield if you use names that others might define functions for that behave differently.
UdderlyEvelyn 15 Aug, 2022 @ 9:14am 
Does not fix the issue with Buffy's, also breaks Bikinitools. The error is not relevant-seeming (probably a result of the output of your tools being unexpected rather than them not working). Possible something wrong with something else but this occured at the same time and it would make sense.

function: restrictCheats -- file: 05_BT_Config.lua line # 5 | MOD: bikinitools
function: applyCheatRestrictions -- file: 05_BT_Config.lua line # 186 | MOD: bikinitools
function: initialize -- file: 99_BT_Event.lua line # 62 | MOD: bikinitools

ERROR: General , 1660579526429> 0> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: log of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1660579526429> 0> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: log of non-table: null
UdderlyEvelyn 15 Aug, 2022 @ 8:12am 
It also happens with Buffy's Roleplay Chat, though not errors, it breaks text coloring/formatting parsing. Hopefully your patch fixes that, I'll test it out soon.
« Zero »  [author] 15 Aug, 2022 @ 6:53am 
okay, i found out why. it's caused by passing a number as parameter. string.gmatch couldn't convert number to string so you'll get a nil error. uploading patch. i would appreciate if you could tell me the result later.
« Zero »  [author] 15 Aug, 2022 @ 6:32am 
hey evelynn, did you encounter this errors after this mod got updated? because the errors looks like caused by passing a null source string for splitting. I'll just add some null check and see how it goes. that extrasauce sac mod is quite problematic due to missing important code to check. the string extension certainly is not defined inside that mod or mod options mod.
« Zero »  [author] 15 Aug, 2022 @ 5:17am 
thanks for the heads up. and yeah, it's a name collision and I'll need to take a look at 'extrasauce sac' mod before making any changes. it'll take at least an hour before i update this mod.
UdderlyEvelyn 14 Aug, 2022 @ 9:16pm 
function: @stdlib.lua -- file: null line # 95
function: split -- file: string.lua line # 28 | MOD: Simplify v0.5.0
function: padding -- file: ess.common.sac.lua line # 166 | MOD: ExtraSauce Sac
function: addCapacityInfo -- file: ess.sac.events.lua line # 44 | MOD: ExtraSauce Sac
function: attachEvent -- file: ess.sac.events.lua line # 19 | MOD: ExtraSauce Sac
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@963e1c85
function: refreshBackpacks -- file: ISInventoryPage.lua line # 1479 | Vanilla
function: refreshBackpacks -- file: BackpacksBorders.lua line # 15 | MOD: Backpack Borders
function: dirtyUI -- file: ISInventoryPage.lua line # 1109 | Vanilla
function: prerender -- file: ISInventoryPage.lua line # 547 | Vanilla

Hundreds of errors all the time, slows client FPS greatly.
UdderlyEvelyn 14 Aug, 2022 @ 9:03pm 
Your string extensions are causing error spam for me because of name collisions, I think.