#mod_development

1 messages ยท Page 474 of 1

sour island
#

Got a screenshot?

plucky nova
plucky nova
sour island
#

Nothing stands out but you never know

lean rain
#

Is there any mod to play multiplayer?

rare vortex
#

Any good modder who accept commission?

stoic tree
#

Is anybody using the Land Rover defender vehicle mod And if so how was your game been crashing out to the main menu

viral spire
#

The only mod I know that allows all zombies to never die is the Trioxin-245 mod. There's also Undying Zombies, but that's about half the zombies instead.

radiant ginkgo
#

@craggy furnace

craggy furnace
radiant ginkgo
latent orchid
#

the logo on the side increases the driver's penisham by a further 2 inches

#

love it!

low yarrow
tulip valve
#

Now it just needs proper porsche sounds

radiant ginkgo
tulip valve
#

The other black car: Aww they never take me for a ride, they always take that damned Porsche!

balmy prism
#

Spiffo Porsche??

flint seal
#

i hope that porsche isn't the same as in the Fast and Furious franchise

narrow hamlet
#

Hello. Im trying to refactor a mod to make it compatible with 41.51+, but ive hit a snag. Ive managed to make the mod work with the now built in custom perks system, but when i need to award xp on successful use of the skill, i cant find any examples that does'nt still use the extraskills XP system. Has anyone got any ideas how i award XP without the extraskills dependancy?

sour island
#

Returns the XP object of the guy

#

Which then you have a bunch of functions for it like AddXP()

#

You can also try to find AddXP used in the Lua if you have a program able to search the contents of multiple files at once.

radiant ginkgo
analog saffron
#

GG it's great!

carmine brook
#

Do any of y'all have any tips for learning how to mod zomboid, like a good place to start?

#

I mean make mods

undone crag
#

This and looking at mods.

crisp token
#

Anyway to figure out what item the character is holding? I'm trying to identify what skillbook someone is holding and allocating XP according to that. I thought it would be item:getLvlSkillTrained but it just returns a number of 1 and 0

undone crag
#

Yes

crisp token
#

Actually just found it. self.item:getName()

viral spire
#

Is there a mod that forces zombies indoors during the day? I'm thinking maybe 6AM until 8PM. Zombies would retreat indoors and proceed to go docile. Stand motionless or sit down and fall asleep. Going up to them wouldn't provoke them at all unless you were too loud or you struck them. If active outdoors (as in a chase), they'd immediately retreat back inside and then be active for a few moments before returning to a docile state. At night, they'd be vicious, tearing through the streets to find meat before sunrise.

I know there's a mod literally called Zombies Fear The Sun that's supposed to do this, but it seems that it doesn't work anymore. Zombies no longer retreat indoors during the day or sleep.

rotund walrus
#

Hey, is there a mod that lets us customize what we shout by hitting Q? I'd love to type some custom phrases in, rather than just "HEY!" "OVER HERE!"

abstract raptor
#

IG_UI_EN.txt found in media/lua/shared/Translate/EN

#

I did it with Irate User Interface

#
    IGUI_PlayerText_Callout1 = "Yo bitch!",
    IGUI_PlayerText_Callout2 = "Over here, dipshit!",
    IGUI_PlayerText_Callout3 = "Hey fuck you!",
    IGUI_PlayerText_Callout1New = "HEY ASSHOLE!",
    IGUI_PlayerText_Callout2New = "YO DUMBASS! OVER HERE!",
    IGUI_PlayerText_Callout3New = "FUCK YOU!",
    IGUI_PlayerText_Callout1Sneak = "pssst! over here shit for brains",
    IGUI_PlayerText_Callout2Sneak = "psst hey bitch",
    IGUI_PlayerText_Callout3Sneak = "hey motherfucker, but not all you motherfuckers, over here!",
    IGUI_PlayerText_CalloutTutorial = "Hey! I'm over here!",```
rotund walrus
harsh prairie
#

I canโ€™t remember if thereโ€™s an option to set how active they are during the day or not.

viral spire
analog jacinth
#

Guys here me out! Mod Suggestion: More Tactical Weapon Animation. Instead of holding the Rifle from bottom to top, just hold it the other way around? Or hold the Pistol with both hands instead of onehanded when walking. Would be Awesome. Any thoughts?

fast girder
#

yeah but mostly no one knows how to make and implement that into the game

analog jacinth
#

thats actually sad ๐Ÿ˜ฆ ๐Ÿ™‚ but thanks for response

analog moat
#

Does anyone know what lua to java lib pz uses?

gaunt pendant
analog moat
#

yeah i also found that out when i was looking at the java classes

#

tho have no idea how to init a ItemContainer

#

nevermind found it

gaunt pendant
#

There's a java class that exposes objects to lua - if it's not in there you're probably out of luck

analog moat
#

ItemContainer:new()

gaunt pendant
#

ItemContainer likely is though ๐Ÿค”

analog moat
#

yeah i had no idea how kahlua exposed the classes

gaunt pendant
#

Voodoo ๐Ÿคฃ

narrow hamlet
devout shadow
#

Hi! Is it possible to add new types of items? (I mean something like "Normal", "Drainable", "Food",...)

analog moat
#

yes

#

and no

#

if you mean item categories those are baked into the game

devout shadow
#

So I can't add a new one, can I?

analog moat
#

Actualy nevermind yes you can add a new main category for items

analog moat
devout shadow
analog moat
#

Would this be a nice feature to have?

sour island
#

Is the vanilla throw function not exposed to use outright?

lyric pike
#

hey, I wanted to ask if kitsune's crossbow mod still worked with build 41.53? anyone know?

analog moat
sour island
#

It's only used for explosives as far as I know

#

It will hopefully get updated once there's 3D models for all items to work with

#

Rn it is visually p weird, very slow and high arc - and it uses the sprite in moving

analog moat
#

I didnโ€™t even know there were throwable explosives

sour island
#

Just craft a Molotov and have a lighter in your secondary

#

Actually I'm not even sure if the lighter is needed tbh

#

But Ctrl+click at that point will fire off the item

analog moat
#

looking at the item script. It just implemented as an weapon My mod makes everything throwable

#

I will add the throwing animation to my mod

sour island
#

I haven't checked my self- if the game requires it to be a weapon type you can just convert the java to Lua and call it a day lol

#

That's been my go-to whenever anything is hardcoded

#

Copy-paste and rewrite it

#

Change as needed

analog moat
#

Ugh pz isnโ€™t documented well

#

you know how long it took to add the "throw item" menu to the drop down

sour island
#

UI is something Ive tried to stay away from

#

It's 100% in Lua, but if you're not just changing or adding more of the same options it requires you to do alot of copypasting derives()

#

And if what you're doing is radically different you have to start from the barebone UI object

#

Also just a suggestion- you could just make it a keyed action

#

Maybe Alt+click?

#

I imagine you couldn't normally be clicking while sprinting anyway

analog moat
#

Yeah I'll at shortcuts for throw prim/sec for sure!

#

I'm currently doing some balancing since heavier object should take longer to throw

sour island
#

You should look into timed actions if you haven not

#

As much as that's its own rabbit hole of copypasting

analog moat
sour island
#

Nice

analog moat
#

just 60 lines of code

tulip valve
#

Throwing knives at zombies would fun

grizzled grove
#

i'm messing with intelij idea for the first time. Is there a way i can force it to decompile all .class files to some folder? The search function doesn't look like it works on those since it only decompiles when directly asked

#

just to be clear, i'm not interested in setting up for full-on java modding right now. I'm just wanting to look into the code to see how a few things work

sour island
#

You should be able to force that with something like fernflower

#

IntelliJ also has plugins - I'm sure there's one for it

grizzled grove
#

saw mentions of fernflower in searches, thanks

sour island
#

Np, I've been using pzmod/pzdoc but those aren't things I can explain from my phone- honestly let me know if you find something cause I've been meaning to look for eaiser to use alternatives

grizzled grove
#

will do. i'll probably put this off for now, since it's not going to be a one-click deal. i need to eat and then get to working on some sprites

plucky nova
#

remember this? its still happening, so i am doing some tests, and i got a picture of the console right after they reanimate

#

anything stick out?

#

it seemingly just started happening last week out of the blue

narrow hamlet
#

Is there a way to merge a custom dribution with the base distribution, without needing to include all the references to procedural list from the base distribution? Somthing like this

#

This code in the custom distribution on this screenshot doesnt merge with the existing distribution, but simply overwrites it

viral spire
# plucky nova oh, also this is my mod list

I can't seem to find anything out of the ordinary. Have you installed or followed the Undying Zombies or 245-Trioxin mod at any point? If so, check to see if they're enabled anywhere.

Also verify your game files, see if it might help the issue.

Worst case scenario, you'll have to disable all your mods and reenable them one by one.

plucky nova
viral spire
#

No worries. Did you change anything since you found the issue? Try to replicate it, see if it isn't a potential bug.

sour island
#

If you post that excerpt as text I can modify it to show you

#

you don't need your own entire table defined

#

unless you're trying to overwrite it

#
distributionTable.pharmacystorage.metal_shelves.procList = {value, value, value}
``` would overwrite it

```lua
table.insert(distributionTable.pharmacystorage.metal_shelves.procList,value)
```to add another value
#

you can place these anywhere

#

as long as they load after the original list

narrow hamlet
#

@sour island You're awesome, thank you ๐Ÿคฉ

sour island
#

๐Ÿ‘

#

Just trying to give people the help I could have used lol

narrow hamlet
#

@sour island This keeps getting a nullpointer on the element "metal_shelves":

#

Distributions = Distributions or {};

table.insert(Distributions.pharmacystorage.metal_shelves.procList,'{name="CustomList", min=1, max=6}');

#

From the Distributions.lua file:

sour island
#

if evrything is named correctly it sohuldn't break

narrow hamlet
#

From the Distributions.lua file:

#

pharmacystorage = {
isShop = true,
metal_shelves = {
procedural = true,
procList = {
{name="MedicalStorageDrugs", min=1, max=6},
{name="MedicalStorageTools", min=1, max=4},
{name="MedicalStorageOutfit", min=1, max=2},
}
},

sour island
#

also remember it has to load after distributions is a thing

#

the simpler/reliable way to do this is make sure the file is 1 folder deeper than the original file

#

someone people got require to work but I have not

narrow hamlet
#

Alright, ill try putting the files one folder deeper

undone crag
plucky nova
undone crag
#

It's like saying ''bruh you didn't even make a physics engine'' but maybe it's actually a she so it's also like saying ''sis you didn't even make a physics engine'.

dry scroll
#

hello everyone im just having some issues with the mods section
like i've installed the mods and that but unfortunatly it won't show up in the mod's section when i launch the game

narrow hamlet
#

@dry scroll Can you provide the path where you placed the mods?

tulip valve
#

He fixed it, turns out he put the files on a different drive, had the same issue with gzdoom before lol

#

No wait it was counter strike

abstract thorn
#

anyone know why cars are spawning with no seats a little to often

drifting ore
#

What do you need to learn to write zombie mods?

solemn pebble
#

@sour island @craggy furnace I think something is wrong here

ivory flower
#

I'm only here to complain so ignore me pls โค๏ธ
I made a small joke retexture mod that 3.6 k people use currently, all degenerates like me.
Even so, I still get messages to this day that it "dosen't work" even though it does.
Please send mental help.

craggy furnace
#

oh god no

#

@solemn pebble reverting now

#

should be fixed now

solemn pebble
#

Never seen a tsunami of helicopters before ๐Ÿคฃ

tulip valve
#

It's a new heli event, Tsunami of helicopters

solemn pebble
#

The final boss

boreal grove
#

Hi all. Just wondering, is there any possibility of a bullet piercing more than 2 zombies?

sour island
#

Weird...

sour island
solemn pebble
sour island
craggy furnace
#

@solemn pebble push is live

sour island
#

The bug would only occur for crashing helicopters so hopefully not many people were impacted lol.

tulip valve
#

So the ReloadTime in weapons seems to do nothing, put it at ReloadTime = 150, or 0 even, still same reload speed, and not faster at all :/

devout flint
undone crag
indigo rune
#

is there a way to prevent mods from updating so you dont get game breaking bugs etc

#

im trying to play on my 41.50 save but all the mod updates are breaking the game

shadow dust
#

how does m_HatCategory work in clothing xml files?

plucky nova
#

@sour island sorry for the ping, but i wanted to answer that question that you asked me on steam

#

yeah, i play in debug mode. i find it better than using a cheat menu for when something goes wrong

sour island
#

Ah, I hadn't considered that

plucky nova
#

thanks for fixing it, though!

sour island
#

Np

ocean wave
#

hey there, tryna make a radio mod but when i look at another mod's LUA file for inspiration, I realize i have no clue what im doing. What should I do?

#

specifically, im not sure if i should touch anything in RootInfo or not, also there are a ton of Voice Entries and Broadcast entries and line entries and I dont know what the IDs mean

#

is there a resource i can read for help with LUA?

ocean wave
zealous glade
#

mod idea: when entering a RV, it actually teleports you to a room in the void, in that room, you have all you dream about in a RV, is it possible?

#

only problem I guess is, if you get out, you might be surprised by some zeds wandering at the door. So it's crucial to make sure you are in a safe place when you enter RV

abstract raptor
zealous glade
#

@abstract raptor excactly, I know that mod, very impressive!!

sour island
#

@solemn pebble Let me know if you get any errors popping up at all! I'll be willing to double check the console.txt for you to make sure it's not Heli Events misbehaving.

drifting ore
#

does anyone know if the singleplayer player death function is hard coded directly into the engine or handled by lua scripts?

#

and if its done by lua which scripts are resonpsible?

sour island
#

I know getting hit has a hook so you can technically rewrite the whole thing if you wanted.

#

Also setting something's health to 0 effectively kills them next tick/update loop

drifting ore
#

hmm, its just as far as i can tell the game immediately wipes all player stats from the save file upon the players death. the only reason i could think they would want to do this would to be to prevent players from being able to resurrect. but thats exactly what i want a mod to be able to do.

the problem with the wiping of player data is that it seems like "intentionally restrictive game design" like they specifically never want you to be able to know the stats of someone who died, to make it difficult to resurrect them. it also means that once a character dies there irrecoverably lost. ie you cant do things like show a stats screen to the player about how well they did in this life, or make a history of characters in thew world.

assuming this is intentional, the only reason i can think of is to prevent "cheating in singleplayer" or "clear files when not needed". but with workshop mod support all single player cheating goes out the window, it is trivial so why be so restrictive. and clearing files when not needed is good. but to do so when the player itself dies instead of when a new player is made cause the exact issue im trying to fix.

#

this makes saves irrecoverable in the event of a glitch killing the player, which is either intentionally restrictive, or just bad game design in my opinion.

although i will admit that i don't know a crazy amount about the game itself, it could just be a feature that was not thought about to much and never got changed. and doing so now would require a large about of work due to how the engine is built or something.

i do respect the game and the amount of work that has been put into it, but in this specific case it seems almost engneared to restrict the game to a "hardcore only game" which is kind of at odds with the whole idea of having the ability to mod the game and change it in general.

#

so i was hoping i could possibly change that functionality, and if not maybe find a way to implement a history function where it saves all the stats of your char upon your hp hitting below or equal to 0.

sour island
#

Are the save files deleted tho? The world sticks around for you to reuse it

#

And you can have multiple characters loaded to the same world - you can select which character to load at any time

drifting ore
#

yes maybe, but as far as i have been able to tell the file is map_p.bin, which comparing regular worlds and the one with a dead char, the regular one has it, while the one with a dead person does not. it seems to be deleted upon the death of a char. (im not in any beta)

sour island
#

I can ask a guy that might be more familiar with player saves- he wrote a back up tool for the game

#

He says loading into a dead save continues you off as a zombie?

drifting ore
#

I know that. You can make a new char. Its just the stats of the old char that im looking for.

sour island
#

If the conversion to zombie process doesn't lose the description object you should be able to transfer the skills over

#

Iirc when either subtype of IsoGameCharacter dies it spawns an IsoDeadBody

drifting ore
#

Thats good to know

sour island
#

When that gets revived into a zombie I'm not sure if they bother keeping description

#

Also, I wrote a lore friendly(ish) continue with the same skills mod. Skill Recovery Journal? Idk if you'd be interested in that.

drifting ore
#

Its probs to late for that now tho. I made double sure to escape my game to pause it. Unfornitly my pet bird like to hang around the warm computer and i think they may have unpaused the game by walking across the keyboard. Assuming time continues on after the death of a char, a realitvly long time may have passed.

sour island
#

For my mod or the autosave function to work yes it is too late

#

Just for the future - depending on how you wanted to write your mod these two could be solutions that already exsist?

bold cobalt
#

Howdy people, any idea what mod might be causing the below? Thank you

plucky nova
#

do any of you guys know what mod armor plates are from and how to use them?

#

nvm i found it out

ebon thicket
#

is there an MP mod out since MP for IWBUMS isnt out yet?

plucky nova
plucky nova
#

is there any way to disable the stunlock when a zombie scratches me? im not talking about drag down, thats different.
im talking about when two or more zombies grab me and then i just get put into a back and forth of my character pushes a zombie off one side while the other zombie bites me

#

or whatever

#

its hard to explain

sour island
#

do you play with multi hit on?

plucky nova
winter bolt
#

i know what you mean but i dont think theres a way to turn it off

viral spire
drifting ore
# bold cobalt

Looks like an error cause when trying to load a vehichle, look for mods that add vehicles.

#

Also what did you do when the error piped up? Load a game? Try to get in a car? Walk around on the map?

quick moth
#

Oof. I just discovered I'm too stupid to figure out loot distribution in 41.51+

winged phoenix
#

so i'm sick of sugar being such a rare and hard to find resource... is there any mods out there that can do one of these things:

  • make sugar renewable (sugar cane etc)
  • increase the amount of sugar in the world (without affecting other loot)
  • decrease the amount of sugar that recipes like hot cuppa use (because it's way too much)
    -something similar to the above that could solve this in a way i haven't yet considered
#

how hard is it to mod in new sowable plants anyway

#

or, like, a simple crafting recipe that uses nothing but existing items

quick moth
winged phoenix
#

figured, given how simple recipes seem to look

#

i can probably wing something that takes a ton of something sweet and extracts the sugar from it
given that the base balancing for sugar bags is that a whole bag is 6.25 cups of coffee... these sugar bags must be tiny.

winged phoenix
#

So i did the math. Taking average values from online and cross referencing some of the packaged cake mixes i have available which all fell within very close tolerances, an average cake has about 150g of sugar in it. Sliced 5 ways as is the cake ingame, each serve of 1 slice has 30g of sugar.

That means that each cup of coffee has 50g of sugar in it. That's ten teaspoons of sugar, or just shy of 1/4 of a cup of sugar.

This would make the bag of sugar when full a bit more than 300g of sugar or just over half a pound for the imperial folk out there, which while not much is a believable size for a small bag like you might see at a gas station for a huge ripoff price, though only just barely believable. Most commonly available sizes of sugar bag are 500g, 1kg, 2kg. (approximately 1 , 2, & 4 pound bags)

Even lowering it to 100g to start which would make the sugar bag pitifully small,, that's more than 6tsp of sugar per cup of coffee.

Or, let's look at this the other way around. Your average person puts between 1 and 4 teaspoons of sugar in coffee. The most common i've seen is 2tsp, or 10g of sugar, so we'll start there.

If that were so, then the cake ingame would have 30g of sugar in it, or 6tsp. Which would be fine if we were making a cake that is about 100g in weight. For reference, a typical regular sized cake made at home using a cake mix kit would be around 500g give or take based on additional ingredients.

That would also make the sugar bag have a capacity of... 62.5g of sugar. Which is ludicrous. Even with a sweet tooth, 4tsp (20g) per cuppa means the bag would be 125g.

tl;dr the sugar bags are a bit too small and the unit size of sugar is inconsistent between the recipes that use it, to the point where you will more often than not end up with a whole lot of coffee and tea bags laying around unable to be used because they use far too much sugar per cup.

#

so imma now look into how i can modify the base sugar item to match reality lmao

#

god, i have so much math to do here.

viral spire
winged phoenix
#

So when making a recipe, how can i make it so it can accept, say, multiple kinds of fruit, but use differing amounts of them?

Say it's a recipe that will use one and only one of the following in the process:
1 watermelon
2 grapes or pineapples
5 apples/Banana/Cherry/orange/peaches
20 berries (all kinds, strawberry or wild)

how would i tell the game these were "use exclusively ONE of these options" and how many each option consumes

sour island
#

evolved recipes do fruit salads don't they

#

each line of a recipe can be an ingredient, / allow for options

#
    recipe NAME_OF_RECIPE
    {
       ITEM_TYPE_A_TO_USE=1,
       ITEM_TYPE_B_TO_USE=2,
       ITEM_TYPE_C_TO_USE/ITEM_TYPE_D_TO_USE=2,
       keep ITEM_TYPE_E_TO_KEEP,
       Result:ITEM_TYPE_RESULT=1,
       OnCreate:OPTIONAL_FUNCTION,
       Time:TIME,
       Sound:SOUND,
    }
#

there's also other parameters: "RemoveResultItem:true/false", "AnimNode", "Prop1/2"

#

you can also do keep A/B/C etc too

winged phoenix
#

anyone able to look at this and tell me how utterly, horriffically wrong i've made it? i'm sort of going blind since i can't find any references on syntax or what certain values translate to ingame (such as time). hell, i don't even know if i have the right escape character setup for inline comments lmao

note that i've made sugar have a UseDelta of 0.02 for 50 units of sugar per bag, and increased the amount of sugar cakes use in turn, as well as slightly increasing the weight of a full bag as it has more sugar in it etc to match.

{
    keep KitchenKnife/HuntingKnife/MeatCleaver/FlintKnife/Machete,
    keep EmptyJar=2, 
    keep DishCloth,    
    WaterSaucepan=5, /*should take 5 units of water???*/
    destroy farming.Strewberrie=20/BerryBlack=20/berryBlue=20,
    
    Result:Sugar=10, /*should give 10 UNITS of sugar*/
    Sound:AddItemInRecipe,
    Time:500.0,
    Heat:-0.22, /*saucepan must have hot / boiling water in it???*/
    Category:Cooking,
    OnGiveXP:Recipe.OnGiveXP.Cooking10,
}```

so am i right in assuming the following?
1- you must declare non-drainable reagents that you don't want destroyed with "keep"
2- drainable reagents like full saucepans of water won't be destroyed, just emptied the amount specified
3- not including a quantity after a item (=n,) assumes one entire instance of that item, even if it is a container
4- destroy presumably makes sure that reagents are destroyed in the process, but i've seen some recipes that don't use "destroy" but still destroy the reagent, and this confuses me - is it for if there's items that wouldn't be destroyed (such as drainables) which you WANT destroyed by a reaction? my brain hurts
5- drainable products like sugar - in a Result, does the quantity give you x UNITS of sugar, or x full *bags* of sugar? 
6. what the heck is the reference for time scale, how does it translate to ingame hours?
7. did i do requiring heated water correctly or am i being dumb
#

oop, discord hadn't scrolled yet lmao

sour island
#

Water works differently iirc

winged phoenix
#

water is spooky

sour island
#
    recipe Make Jar of Broccoli
    {
        EmptyJar,
        JarLid,
        Broccoli=5,
        Water=10,
        Vinegar=2,
        Sugar=1,

        Result:CannedBroccoli,
        Time:100.0,
        OnCreate:Recipe.OnCreate.CannedFood,
        Category:Cooking,
        OnGiveXP:Recipe.OnGiveXP.Cooking10,
    }
#

I guess the ingredients are their own items in secret

#

Unless this takes an entire bag of sugar lol

winged phoenix
#

sugar states it is drainable

sour island
#

ah then that's what it does

winged phoenix
#

it has 6.25 units of sugar per full bag

sour island
#

if the item is drainable it uses the amount from it

winged phoenix
#

(vanilla at least)

#

so does that work in reverse, when creating sugar? cos i can't find any other recipes that create a few units of drainable resource

sour island
#

I'm not sure honestly

winged phoenix
#

oh boy oh boy oh boy i'm gonna try it and see what gets bricked

sour island
#

you could try seeing what result:Sugar=1 does

#

but it would probably break

winged phoenix
#

imma do it, wish me luck lmao

sour island
#

Also you can use OnCreate to do this

winged phoenix
#

oh?

sour island
#

You can supply ANY function you've written into oncreate

winged phoenix
#

i wasn't sure what onCreat actually did exactly

#

:o

sour island
#
    recipe Open Supplies
    {
       EmergencyFoodSupplyBox=1,
       keep [EHE_OpenBox.CanOpenBoxes],
       Result:NoticeFlyer=1,
       OnCreate:EHE_OpenBox.FOOD,
       Time:70.0,
       Sound:OpenBox,
    }
#
function EHE_OpenBox.FOOD(recipe, result, player)
    player:getInventory():AddItems("Base.WaterBottleFull", 2)
    player:getInventory():AddItems("Base.TinnedBeans", 1)
    player:getInventory():AddItems("Base.CannedPeas", 1)
    player:getInventory():AddItems("Base.CannedCorn", 1)
    player:getInventory():AddItems("Base.Chocolate", 2)
    player:getInventory():AddItems("Base.Rice", 1)
end
winged phoenix
#

oooh

sour island
#

iirc recipe is an array of the items being used in order of their recipe

#

result is either the item itself or just a string

#

I'd have to double check

#

you can also plug in functions on keep and ingredients too

winged phoenix
#

hard part is in knowing how to add not-a-full-item

sour island
#

you could make a sugar pile item

#

that can be drained into a bag later

#

I wish they'd refactor items a bit

winged phoenix
#

i know that i saw things that weren't drainable had ;<x> in the reagent side of the reaction, like butter, when presumably using x percent of the item, but i assume that's specific to food

#

same for pasta/rice

sour island
#

most likely

#

food is it's own type too

winged phoenix
#

gotta love it

#

i like that the saucepan and kettle, despite similar functions, being in very different categories

#

it makes me confused

#

i guess it's cos the saucepan is used in recipes and has multiple versions of itself for pasta rice etc

sour island
#

there's two items for whether it has water or not

#

the water one is drainable, the other is normal

winged phoenix
#

and the kettle is hjust a passive item with or without water that gets checked for by the Hot Cuppa / Cold Cuppa recipes

sour island
#

hm

winged phoenix
#

i;mma just save this.... somewhere....huh. not sure actually where to add this recipe, actually, come to think of it.

#

Feels dirty to put it in the base games' files, and possibly game destroying in many ways

#

welp i can always take it out later

#

i just wanna test this

#

hokay i definitely screwed something up since the craft menu won't open now

#

lmao oops

#

no idea whats the relevant bit of the log but ```attempted index: 1.0 of non-table: null.
[07-08-21 20:20:17.694] LOG : General , 1628338817694> -----------------------------------------
STACK TRACE

function: @stdlib.lua -- file: null line # 10
function: setVisible -- file: ISCraftingUI.lua line # 30
function: toggleCraftingUI -- file: ISCraftingUI.lua line # 1335
function: onOptionMouseDown -- file: ISEquippedItem.lua line # 203
function: onMouseUp -- file: ISButton.lua line # 55.
[07-08-21 20:20:17.695] ERROR: General , 1628338817695> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: 1.0 of non-table: null at KahluaThread.tableget line:1689..
[07-08-21 20:20:17.695] ERROR: General , 1628338817695> DebugLogStream.printException> Stack trace:.
[07-08-21 20:20:17.697] LOG : General , 1628338817697> -----------------------------------------
STACK TRACE```

#

i think i did an oopsie woopsie

#

oh no i don't know what i did wrong

#

tried to isolate the actual error bits from the, uh, other log messages

[07-08-21 20:32:47.210] LOG  : General     , 1628339567210> -----------------------------------------
STACK TRACE
-----------------------------------------
function: getRecipeListBox -- file: ISCraftingUI.lua line # 21
function: refresh -- file: ISCraftingUI.lua line # 60
function: setVisible -- file: ISCraftingUI.lua line # 38
function: toggleCraftingUI -- file: ISCraftingUI.lua line # 1338
function: onOptionMouseDown -- file: ISEquippedItem.lua line # 203
function: onMouseUp -- file: ISButton.lua line # 55.
[07-08-21 20:32:47.210] ERROR: General     , 1628339567210> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: view of non-table: null at KahluaThread.tableget line:1689..
[07-08-21 20:32:47.211] ERROR: General     , 1628339567211> DebugLogStream.printException> Stack trace:.
[07-08-21 20:32:47.213] LOG  : General     , 1628339567213> -----------------------------------------
STACK TRACE
-----------------------------------------
function: getRecipeListBox -- file: ISCraftingUI.lua line # 21
function: refresh -- file: ISCraftingUI.lua line # 60
function: setVisible -- file: ISCraftingUI.lua line # 38
function: toggleCraftingUI -- file: ISCraftingUI.lua line # 1338
function: onOptionMouseDown -- file: ISEquippedItem.lua line # 203
function: onMouseUp -- file: ISButton.lua line # 55.```
winged phoenix
#

okay, trying to figure out what the heck i'm doing wrong and i'm just not having any luck :c

#

commenting out line by line has not been very helpful

#

okay i een tried making a standalone mod with just one script that has like, the most basic thing for making x into y
and it still errors

#

works fine without the mod or recipe, just.

#

grrrr

winged phoenix
#

got the craft menu working by trimming it again and changing things around, but now nothing i do makes the craft button stop being greyed out

#

like, i have the reagents, it looks identical to other recipes already in the game, it just.... doesn't let me hit "craft"

#

i am VERY confused

#

wait a minute

#

oops

#

well that confirms one thing i wanted confirmed at least

quick moth
#

Would it be possible for a mod to make me spawn with a bite scar? Just curious.

#

@winged phoenix Did you just start learning modding on PZ? If so, that's cool.

winged phoenix
#

literally just today, entirely out of spite and petty ideals :>

#

i managed to even get it (partially) working, it was all down to one line having an incorrect item reference and also accidentally leaving in a line that invalidated the recipe in its stripped down state.

i still need to add back in the other reagents one by one to check they work as intended, and to figure out how to properly modify sugar to work how i want it to

quick moth
#

I just reverse engineer other mods to try to learn how to make my own. The forum tutorials for B41.51+ aren't helpful to me (I'm probably just dumb lol). I created a new recipe magazine, but can't figure out how to successfully add a new item to the existing loot possibilities.

winged phoenix
#

it turns out that sugar is somewhat complicated due to it a) not being able to be consolidated/poured into other sugar items (which i bet i can find a fix for somehow), and b) not having an immediately obvious way to add a specific fraction of a sugar bag as the product of a recipe, instead of a entire full bag

#

i suspect i may need to modify some vanilla recipes and items and i still haven't found any vanilla or modded recipes that add a partial quantity of product rather than a full one

#

so I'm sort of blind until i can find something that works similarly

#

i may look at the recipes involving thread or twine since those definitely involve a quantity, and are made clearly measurable in the CanBeConsolidated mod

#

not sure if sugar being a food item will mess with that though

quick moth
#

Easiest but least satisfying way to achieve your end-goal might just be to crank up sugar spawn rates higher.

winged phoenix
#

not sure how to crank them up withoit also cranking up other items in the same loot category

#

plus, it still feels silly that a cuppa uses 1/3 the amount of sugar as an entire cake does

quick moth
#

I might be mistaken then. I haven't messed with mods since December 2020 and B41.51+ further complicates my very limited knowledge.

winged phoenix
#

i mean, i haven't looked into it further than the custom sandbox settings and the stuff in scripts (not lua, which is a bit much for me this early on)

#

the recipe scripting is as simple and relatable and clean as can be

#

i might try reach out to the creator of the consolidation mod to ask if they think it'd be feasable or folly to try make sugar act the same

drifting ore
#

Hey is shark or Chuckleberry here? I started using the Expanded Helicopter Events and have encountered a stack trace error contributing to two crashes and a harmless albeit annoying sound bug.

#

Oh wait nevermind they want bugs reported on Github, my bad.

quick moth
#

Is there a tutorial somewhere for setting how new items spawn in the vanilla map? I've successfully created a new item and can't figure out how to make it spawn places. I've wasted like 4 hours on this.

nimble spoke
hexed arrow
#

anyone know if the patch with 3D ground Items releases next week?

quick moth
nimble spoke
quick moth
#

The top of one b41.53 mod distribution has "require 'Items/ProceduralDistributions' while the top of another b41.53 mod is "local function preDistributionMerge()"

#

Both mods add new items to the game

nimble spoke
#

the easiest is to just use the require line

ocean wave
#

question, im having problems getting my custom map to display right in the game, do i put it in the mod folder or did i put it somewhere wrong

quick moth
nimble spoke
rustic crag
#

anyone know of mods that can make you unable to sprint?

faint phoenix
#

the required speed for sprinting is increased now, so it might not be a Mod's doing

rustic crag
#

yeah im using a bunch of mods but i cant find the one messing with it

#

because instead of sprinting he just walks

faint phoenix
#

oh it happens when your character is too slow to sprint, if you hold down the sprint key they will just walk instead

#

try wearing less heavy clothes and wear sneakers, you should be able to sprint. if you still cant sprint maybe you should check logs

rustic crag
#

ok

#

so i have to reduce clothing like a stripper i get it now.

jovial pendant
#

Well okay. So I need some help with adding a simple line of code into the fashion mod. Basically I want to add the M45 Gas Mask from Brit's armor pack (I think that's where the gas mask is) into fashion whenever I make a character. This is my first time actually doing a modding attempt in PZ

jovial pendant
#

okay nevermind. Figured it out nvm me dummy

strong jungle
#

Saw a community post about making your own soundtrack for PZ. Seemed simple enough and now I have the Far Cry 5 OST in Project Zomboid c:

I've taken my first steps into modding PZ to be a Far Cry game

rocky lynx
winged phoenix
#

is there any more in depth documentation out there around item parameters and what sub-perameters are locked to certain item types? for instance, can food type items only accept certain parameters and not others, for instance, adding cantBeConsolided = FALSE, to a food item? Would I need to change the item type if I wished to consolidate it, into "Drainable", and if so, would that affect how it spawns, how it is used in recipes, etc?

#

i'm panning to do some tests to see what happens but if anyone knows please let me know

winged phoenix
#

Is there a way to reload scripts without doing a full exit and restart of zomboid?

sour island
sour island
#

Should be under scriptManager

reef hatch
#

Has anyone made a free camera mod as in free from the player or a player invisible mod. Would help with video editing but can't find anything like it?

tulip valve
#

Having problems with a Magazine for a certain weapon, but the game dosnt seem to find it? It's strange

#

MagazineType = Base.BT380Clip,

#

item BT380Clip
{
CanStack = FALSE,
Weight = 0.2,
Type = Normal,
DisplayName = B&T TP .380 ACP Magazine,
DisplayCategory = GunMag,
Icon = 380ExtMag,
MaxAmmo = 30,
AmmoType = Base.Bullets380,
StaticModel = GunMagazine,
}
}

#

I just can't figure out what's wrong

tulip valve
#

lmao I found the issue, turnes out I missed a . before txt, so it was " Magazine_BT_TP380txt " No wonder it couldnt find the magazine xD

drifting ore
#

Are mods built in only lua?

crisp token
quick moth
vivid sail
#

Hey everyone, how friendly is this channel to novice moders?

ruby urchin
vivid sail
#

cool thats good to know ๐Ÿ˜„

#

within 10 years, I'd like to give Zomboid some heavy fallout 4 vibes so my wife and I can at least pretend we're cooping fallout 4 ๐Ÿ˜›

low badge
#

"There's an outpost that needs your help!"

#

actually that could work quite well

vivid sail
#

i even wana include that

#

right?!

#

I wanna start out with super small stuff and just work my way up.

craggy furnace
#

@hollow shadow scrap weapons has switches for weapon modes, right?

#

or am i going crazy

hollow shadow
craggy furnace
hollow shadow
#

one weapon does yes

#

it has 2 weapon modes

craggy furnace
hollow shadow
#

salvaged shiv

wanton cosmos
#

yea

#

that temp

gentle tapir
#

im needind help

#

im trying to play a collection from the workshop but when i enable all the mods the game crashes

#

i dont know what imdoing wrong can i get some help

#

im trying to fix it myslef anf failing

willow estuary
#

Just, as an FYI, a mod being in a collection does not mean that the mod isn't janky, or even works?

I wouldn't recommend jamming any mod collection into your game.

gentle tapir
#
1628399089921 Loading: D:/SteamLibrary/steamapps/workshop/content/108600/2458631365/mods/Expanded Helicopter Events/media/lua/shared/Definitions/EHE_AttachedWeaponDefinitions.lua
java.lang.IllegalStateException: couldn't find "media/lua/shared/Definitions/FireBarrel_ButtonIcons.lua"
    at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:964)
    at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:904)
    at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:1000)
    at zombie.GameWindow.init(GameWindow.java:1906)
    at zombie.GameWindow.maina(GameWindow.java:1089)
    at zombie.gameStates.MainScreenState.main(MainScreenState.java:184)  ``` is the  current bottomm of my log
#

an d

#

and i cant figure out wat mod that ist

#

im just wanting to play with mods T~T

#

right now im going to have even more trouble fixing this as my mind is broken

#

can you help me blair algo

gentle tapir
#

can really no one help me

#

i dont kow waht to do to get the mods to laod

ocean wave
#

try pinging tech support

#

or maybe the mods

gentle tapir
#

i have no idea who icanping

ocean wave
#

<@&756556556488933526>

gentle tapir
#

imsor fuckin pissre

#

i cant get the mods work nomattew wat ido

#

i have no idea what to do now

#
java.lang.IllegalStateException: couldn't find "media/lua/shared/Definitions/FireBarrel_ButtonIcons.lua"
    at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:964)
    at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:904)
    at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:1000)
    at zombie.GameWindow.init(GameWindow.java:1906)
    at zombie.GameWindow.maina(GameWindow.java:1089)
    at zombie.gameStates.MainScreenState.main(MainScreenState.java:184``` this iwat ist cryingat
#

ihave no idea wat that mod ist

#

thatc causignint

ocean wave
#

uhh, you should probably take a breather, you're struggling to type basic english

#

take a short break

#

it'll help ya get a clearer mind to find the solution

gentle tapir
#

ivelost that abiltt reccny

ocean wave
#

staredawg yeah...

gentle tapir
#

i cant type for shit

#

ive litter removed all the mods multiple time and i have no idea wats causing the attachment crash

unreal carbon
#

Does it play without the mods?

gentle tapir
#

yes

#

there are like 250 mods

unreal carbon
#

Well you are definitely going to need to cut some out.

gentle tapir
#

i just dont know wat mod the attachmen issue is linked to

#

i chose it cause it had the recycle everything mod

#

and it was rated well

ocean wave
#

i dont mean to sound pretentious but you need to unsub from that pack and select the ones you do want

unreal carbon
#

Yeah that pack is too much.

gentle tapir
#

i wouldnt knwo wat to cut out

unreal carbon
#

Start by activating only your map mods, car mods, expanded helicopter events and its required mod, and try activating 5 more at a time for each new playthrough until u find out what mods are causing the problem. I have a feeling it is more than 1.

#

Be sure to take note of the mods you active so you know which ones work together.

gentle tapir
#

there is litterly too many mods

#

i wish i just knew wat mod was causingthe crasd

#

ddo i post my whole log here will that help

#

this is making me ssad

vernal ferry
#

in each error you posted the first line tells you the mod causing the issue, the first error you posted was linked to Brita's Weapon pack and the second error was linked to Expanded Helicopter Events

shrewd knot
willow estuary
#

Man, ain't nobody is gonna have a grab bag of 250 assorted mods in their PZ game working without all sorts of headaches of this nature, unless they're already some sorta rocket scientologist at mod stuff.

  1. IMO no-one needs to use that many mods their game.

  2. if you have that many mods running it's inevitable that there will be conflicts between them that can turn the game processes into a slap fight between said conflicting mods.

  3. Given the current state of PZ mod development in combination with how vanilla PZ has been constantly changing (including the fact that we now have b40 mods, b41.50 mods, and b41.53 mods), there's no way a multi-hundred-mod collection isn't going to have outdated, janky, and just straight up broken time bomb trainwreck mods.

And, now that PZ is back to semi regular updates and changes to the vanilla beta code, mods are going to continue to get broken, and both new and updated mods are gonna blow up when people sticking to build 41.50 try using them in their games. This whole bananas 41.50 vs 41.51+ situation that's happened, and looks like a headache that's not going away anytime soon, means, practically speaking, every workshop collection cannot be counted on to work.

quick moth
#

I'm glad I keep my game pretty close to vanilla. Breaking mods all the time sounds like a pain.

quick moth
#

Is making it so new zombies only respawn on the map edges possible?

sour island
#

The error you posted refers to expanded heli copters but I don't know what "firebarrel" refers to

#

May be an issue with outfit definitions - looking into it on our end

indigo holly
#

@willow estuary wreck have parts do you plan to update it? yesterday I got 500 errors from your mod

willow estuary
#

๐Ÿคท

analog saffron
#

may be a conflict with another mod? @indigo holly

indigo holly
#

No Leon, @willow estuary I will try the mod again today, it was weird because I use your mod for a long time and it never gave me problems

analog saffron
#

ok ๐Ÿ™‚

sour island
#

could be another mod just screwing up the distro as we don't have anything named "firebarrel"

marsh beacon
#

Person posting issue with 250 mod collection gets mod author to update

sour island
#

I mean it directly mentioned something I'm currently working on lol

gentle tapir
#

okay i got into the game but there is no main menu

indigo crow
#

How do I import gun models into blender?

gentle tapir
#

welp

#

im stuck

#

im on the main menu and no buttons

#

file: zFluffyHair_bypass. is saying it disabled buttons

#

@sour island i found the firebarrel mod but now the menu wont load

sour island
#

uh

#

try uploading the console.txt

#

mid game

gentle tapir
#

what do you mean

sour island
#

that file is written to live

gentle tapir
#

i found the log already do you want me to put it on paste and send it here?

sour island
#

sure

#

it would clear up if it's my mod or not

#

the only thing that would cause the menu to not load is a goof'd lua file

gentle tapir
sour island
#

the file resets everytime you boot up the game

gentle tapir
#

yea i know

sour island
#

that log has no stack traces

gentle tapir
#

thats litterls what it gives me

#

it loads into the game and doesnt show the buttons

#

there is one line that says it disables the buttons

#

also the file is being shortened

sour island
#

I found the issue - for some reason it's not listed as a stack trace

gentle tapir
#

so click view more

sour island
#

looks like it's related to vehicle scripts

gentle tapir
#

really

#

i have no idea wat vehicle it is

sour island
#

multiple mods are getting errored - it may be that 1 of the mods have a screwed up script

#

that's breaking the others

gentle tapir
#

could it be towable cars and crashed cars mod confliting

sour island
#

the only clue is "java.lang.ArrayIndexOutOfBoundsException: 1"

#

which means the game is trying to grab the first of something it can't find

#

not sure why the errors are so vague

gentle tapir
#
87cruiser
88golfMk2
88jettaMk2
85merc
89def110
89def90
90niva
91range
1967ChevroletImpalaStationWagon
1969FordMustangBoss429
ReducedWoodWeight2x41
ItemTweakerAPI
GEARCORE
GEARBASIC
PlayerTraps
pz-airhorn
AAS
alwaysfavorite
LitSortOGSN
LitSortOGSN_readOnePage
LitSortOGSN_chocolate
LitSortOGSN_rice
LitSortOGSN_gold
LitSortOGSN_diamond
lgd_antibodies
antiserum
tsarslib
AquatsarYachtClub
ArmorMod
Authentic Z - Current
autotsartrailers
AxesRecrafting
backrigandcalfsheath
backpackattachments
BanjoItemKitTraits
Barbed Wire Crafting
BedfordFalls
2116762736
BCDP
BC
BEE
moonSlimeReadingSkill_base
ExtraSkillsSystem41
ProfessionFrameworkB41Patch
betterLockpicking
BetterSoap
BetterSortCC
TowingCar
BVG
Blacksmith41
546189296
BobiitecEPOSBetterLitteracy
BobiitecEPOS
BobiitecEPOSCigarettesAdd
BobiitecEPOSSimpleVersion
BookHelper
BCGRareWeapons
BCGTools
pz-bzoukhotbar
Camp Hill
CBC 1.0
Cheap Speed
EscapeScavengeUI
CombatText
PZCF_hobbies
Conditional-Speech
EasyConfigChucked
CraftHelper41
CrashedCarsMod
Crematorium_Weather
CustomizableZombies
cuttingarea
darkerleatherpatches
NotTheEnd
UnSterilizeRags
Diederiks Tile Palooza
DisplayEquippedLocation
2205858043
waterPipes
DriveCars
DynamicTraits
EdsAutoSalvage
Eerie Country
eggonsFannyPackBalancing
eggonsHotkeys
eggonsMultiHitLongWeapons
eggonsWorthwileCars
SVGEnergyDrinks
ExamineCorpses
ExerciseWithGear
ExpandedHelicopterEvents
ExtraSkillsExample41
traitsrebalance
farmland15x22
FashionMontage
FastKnifing
testarossa
FRUsedCarsNLF
FitnessGains
FH
JF
ForestHouse
FORTREDSTONE
FortCrosstown
GasStationMatrioshka
GearedZombies
ADVANCEDGEAR
PLLoot
Swatpack
GrabToCurrentInventory
GrabAll
Grapeseed
GunSuicide
HECUGrunt
HHair
HHComplexion
GlassHats
SwatGlassHats
HomemadeConcretePlasterPowder
HomemadeGunpowder
Homemade_Saw
Homemade_Saw_ExtraRecipes
Hydrocraft
improvedbuildmenu41
ImprovedModPresets
ImprovisedBackpacks
katanasandmachetesonbackorbelt
1557287920
KingsmouthKY
KnifeHolsterMod
KnoxCountryMap_OGSN
LetMeThink
LetUsFarmLettuce
NM_LighterBatteries
```'
#

is my loaded mods

sour island
#

the first error happens after 'EggonsWorthwileCars'

#

second eror happens on 67commando

#

may not be related to them though

#

could be what ever is loaded before shits the bed

gentle tapir
#

i dont see them in teh list

sour island
#

eggonsFannyPackBalancing eggonsHotkeys eggonsMultiHitLongWeapons eggonsWorthwileCars

#

I see them lol

gentle tapir
#

the commando

sour island
#

that's just what the file is called

#

could be under any car mod

gentle tapir
#

oof

sour island
#

I'd start with disabling egg's cars

#

to start

dry sparrow
#

I'd normally say disable all mods then re-enable one at a time, but holy crap that's a lot of mods

#

I feel like my game starts to bug out if I enable more than 3-4 mods.

willow estuary
#

Man, that is just one hell of a hot mess there. I see multiple redundant mods. I see at least one build 40 mod, that will also mess up your interface in b41.

Never-mind that you have 249 mods plus Hydrocraft? That's gonna just overload and screw up your game big time.

Disable all of them. You don't need 250 mods. Nobody needs 250 mods. Get this hydra-esque monstrosity out of your enabled mod list, and, then, purposely, and with discrimination, pick out some mods to try out.

I wonder if the reason for all these missing files is that this 250-mod behemoth has somehow overloaded the memory PZ has available for mod stuff and made it so it can't load files? The same way that trunk space mods despawn items when too much stuff is in one of those vehicles.

viral spire
#

Is there a mod that makes hunger and thirst realistically long? 3 weeks to starve, 3 days to die of thirst?

drifting ore
#

Heres something:

#

Ben 10 omnitrix mod.

#

Turn into aliens and kill the undead

fallow marsh
#

Hello everyone, there's an NPC stuck on a conveyor belt and it drops my fps to 10 whenever I come close to the factory.. I've tried shooting her with a shotgun but it seems like I couldn't hit her. I'm new to this so not sure if I'm missing something? Do I need to enable pvp or something? Can I despawn her somehow? Any help would be appreciated..

gentle tapir
#

anyone know wat mod this is HHair

#

that mod was causing the menu to not load

winter bolt
#

yeah it hasnt been updated for the latest version yet

#

it only works in 41.50

#

its harry's hair sorry i didnt see the first message

quick moth
#

Do I need a steam copy to upload a mod to steam workshop? I own the game on GOG.

analog saffron
#

I don't know, sorry

plucky fjord
#

any cool car/sound/gun mods?

gentle tapir
#

when i try to read a book nothing happen

drifting ore
#

mod request. for those of you who make vehicle mods, can someone add the Oscar Mayer wiener mobile (pictured here)

#

cause i think that would be great, to be able to just drive around in a gaint hotdog.

quick moth
#

I'm almost positive I've seen it in steam workshop

gentle tapir
#

can some one help me when i try to read book nothing happnes

#
ERROR: General     , 1628552787096> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: Reading of non-table: null at KahluaThread.tableget line:1689.
ERROR: General     , 1628552787097> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: Reading of non-table: null
    at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
    at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:492)
    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.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:642)
    at zombie.GameWindow.mainThread(GameWindow.java:471)
    at java.base/java.lang.Thread.run(Unknown Source)
LOG  : General     , 1628552787097> -----------------------------------------
STACK TRACE
-----------------------------------------
function: new -- file: ISReadABook.lua line # 271
function: new -- file: Skill Recovery Journal Main.lua line # 169
function: readItem -- file: ISInventoryPaneContextMenu_LetMeThink4151.lua line # 2091
function: onLiteratureItems -- file: ISInventoryPaneContextMenu_LetMeThink4151.lua line # 2078
function: onMouseUp -- file: ISContextMenu.lua line # 95``` what is the cause of this error
#

or do you need the full log

sour island
#

I wrote skill recovery journal

#

my guess is let me think is overwriting the reading event incorrectly

gentle tapir
#

i just removed that mod

sour island
#

I can test to confirm but I guess you tried reading it in queue?

#

via the context menu?

gentle tapir
#

i disabled that mod

#

is it still enabled via the save

#

wat contex menu

willow estuary
#

Good lord, just disable the insane lot of these mods and start afresh with a reasonable amount of mods that you know will work.

#

You don't need all these mods; you can't even play the game on account of them in the first place.

gentle tapir
#

i like the mods i have ๐Ÿ˜ 

#

now i cant get the game too work

marsh beacon
#

This is funny

willow estuary
#

If the game doesn't work how do you even know that you actually like the mods?
But yeah, once you start using enough mods indiscriminately, your game will get fucked, and you'll be unable to play.
So good luck with that? I'm done.

sour island
abstract raptor
#

WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

#

Hm I closed my modding tools and it worked

#

weird

#

also had to restart steam

#

just for future reference

drifting ore
#

Is there a good performance enchanting mod out there? ๐Ÿค”

fading frost
#

is there a mod anywhere that simply (and optionally) removes the belt from new characters? (i have the "no clothes" mod but it's kinda buggy sometimes. i actually forgot what about it i don't like xD but it'd be nice to have a character start with some clothes but without a belt. for example, starting in a hospital with just the hospital gown)

quick moth
#

How/where do I upload a mod to the workshop? I'm trying to see if it'll allow me to upload a mod even if I don't own the game on steam.

fading frost
drifting ore
#

What do you need to learn to make mods for this game?

#

Ping in answer pls

drifting ore
neat fern
#

There's definitely others

ember orchid
willow estuary
#

Okay, I went and asked the question "is it possible for someone to have so many mods enabled that it breaks your PZ game just on account of the number of mods"? from someone in the know; their kinda-technical answers

"I wouldnโ€™t at all be surprised.

Khalua2 basically just iterates though tables for everything. I imagine every addition to scope just makes for a more massive _G. Thatโ€™ll cost memory and access time, presumably.

Though if it really hits the memory cap, Java will just OOM and crash to desktop.
Does seem like the gc [garbage collection] can mistakenly collect file descriptors if too many are open. Donโ€™t know if that error is what it would look like.
All OSes[operating systems] have hard limits on the number of things that can be accessed at one time, such as pointers to files (handles). Hit that cap and Windows[for example] can no longer open any additional files, causing an error.

As files are opened, more handles are used up. These are only freed when the file is closed.
#

Regarding the console messages like java.lang.IllegalStateException: couldn't find "media/lua/shared/Definitions/FireBarrel_ButtonIcons.lua"

Ask them to install the game / mods to the C directory?
I think that looks more like the spawnpoint bug
Theres a bug where map mods installed in D:\ get confused and canโ€™t find their spawnpoint.lua file.
It can find the root dir for maps but canโ€™t get beyond that. I think it throws the same error?
sour island
ember orchid
#

I mean I doubt enabling the right one of mine would help much, haha.

#

I think he's go so much he didn't read the descriptions.

sour island
#

I'm still baffled steam sometimes doesn't force required mod downloads.

iron moth
hexed arrow
#

how do I give an item a random texture

#

I put in diffrent texture choices but it doesnt seem to work

ivory flower
drifting ore
#

are mods just built in lua?

#

i know there are hooks to change the way java itself works

#

and obviously there are other things like texture files and models needed

ocean wave
#

follow up, what if i know the very basics of lua and want to get started but dont know where to start. what should I do?

ocean wave
#

Solid idea

quick moth
ivory flower
#

its not stealing if you learn how to do it from the source and do it yourself โ„ข๏ธ

#

but yeah, i think pz's modding is complicated and not very well documented

#

at least compared to other games

viral spire
#

Is there a mod that makes all durabilities realistic? From doors and windows and structures, to weapons and tools? I know there's a realistic weapon durability mod, but I'd like to see a mod for everything.

quick moth
gentle tapir
#

question with modded maps how do you tell were you are

#

like i have ed salvage yards and i started there how would i find my way back

errant meteor
#

the mod page has a map of it, its close to pony place

gentle tapir
#

no idea where anything is :U:

#

LUL

errant meteor
#

corner of the road

flat sinew
#

hey anyone know why my mods are not working, they are enabled but i cannot seem to get them to work

#

all my mods have been placed in the folder

plucky nova
#

@sour island sorry for the ping but your debug things are back for EHE, nearly killed me this time, lol

plucky nova
quick moth
#

Should 41.50 skins and occupations still work fine on 41.53?

sour island
#

Yep, made it on by default, but you can toggle it off

abstract raptor
#

how do you do "special" zombies?

quick moth
abstract raptor
#

no like I think it'd be neat to add like one special zombie that like could walk through walls and make it so one spawned per cell or something weird

quick moth
abstract raptor
#

for my new backrooms map

#

I could probably even make the special zombie wear this outfit

viral spire
#

Any mods for blind zombies?

summer vale
abstract raptor
#

Demonware

summer vale
#

Alright thanks.

flat sinew
#

hey mod makers, im not sure if this is already made but could we have a mod to blend in with the zombies, like we can cover our player in blood and guts to blend into the horde.

fading frost
ivory flower
#

well, im not maintaining the mod atm

#

if any other modder wants to pick it up they can

willow estuary
# flat sinew hey mod makers, im not sure if this is already made but could we have a mod to b...

This gets posted every couple of days or so, and, as a mod maker, I get asked to make this all the time (I have 0% interest in making anything of that nature FYI).

My take on it, both from trying to figure out how to implement it as a thought exercise, as well as others' previous efforts, is that it's just not feasible given what is possible with PZ modding.

You can make a player "invisible", but then they're invisible to other players, and also don't make any sounds, and the player also has unlimited inventory capacity when invisible (invisible is an admin/debug tool, not anything intended for actual serious play, there's probably additional gameplay issues with the invisible state I'm not remembering or aware of).
You can make a zombie "useless" where they're catatonic/nonreactive, but then they ignore everyone & all stimuli, until they are make not-useless.

Now, that might be acceptable for people that want to casually recreate TWD scenes and stuff in their own games, but, IMO again, it's just too half-assed and janky to be worthwhile to mod in + it would be an absolute clusterfuck shitshow in the context of MP, and probably as well when animals and then NPCs are added.

quick moth
#

Too bad you can't make being camouflaged drop zombie hearing/sight/smell to poor.

willow estuary
#

You could, but, then again, it would affect all of the zombies in the world and be a clusterfuck in MP.

My personal modding philosophy is that if it doesn't work in MP, then you're just sticking your dick in a blender making it a mod since nobody reads the workshop page information etc. You'd have people bombing your workshop comments and messaging you on Discord angry at you about your mod breaking their server.
Especially given how passionate some of TWD stans are.

flat sinew
#

I just wanna blend into groups of zombies when going from house to house. Maybe it could have some downsides too, like panic/fear/depression. Also makes you dirty and uncomfortable.

#

For context, i honestly watched the walking dead and went โ€œI need a hardcore super deep zombie survival game. And stumbled across PZ

#

If anyone does wanna make it, I would be happy to collaborate. I am a 3D environment artist and I would be able to make 3D assets for the mod but no knowledge of modding/code

quick moth
#

Is making zombies only respawn on the outer edge of the map something that's possible? Like they're migrating into the area instead of spontaneously popping into existence.

fading prawn
#

Dick in a blender

#

Hurts to read

sour island
#

The game tracks following zombies from the player- could just throw something in the players' update.

#

Wouldn't use invisible, or impact players. You should also be able to condition if the player isn't dirty enough or is running.

#

Anyone know how to flip cars tho?

#

I've got it spinning at random angles, but they're not actually leaving their location.

#

Before I start calculating vectors, I wanted to ask...

ivory flower
ripe cloud
#

sometimes bullying is ok

ivory flower
#

im still trying to figure out the loot table

#

but soon thb

#

yes

#

is there a way to set the equipped/nonequipped weight?

#

so its not autocalculated?

ivory flower
#

its done and up, now please let me out of the basement

dull yoke
#

Would you say making small equipments/weapons would be easier than making whole maps/buildings?

dull yoke
#

So like, starting from zero knowledge on coding, is it easier to make, say, a custom gun with it's own animations and stats and whatnot versus making your own apartment building or house?

#

I'm just thinking of which one takes more effort to learn.

ivory flower
#

there is zero coding knowledge requirement for making buildings

dull yoke
#

I was watching Blackbeards videos on how to map last night and kind of got the gist of it.

ivory flower
#

the tiles and tools are pretty decent by themselves and the community has some stuff for it

dull yoke
#

What all goes into coding items/equipment? I know there's the stats for the guns and making the attachments that go along with it and anything else that interacts with it.

ivory flower
#

i mean, you need to create the 3d files, thats 3d modelling and not coding

dull yoke
#

Right

ivory flower
#

for statics items no coding just importing

#

animations are very tricky so i have no idea

dull yoke
#

Ah

#

So what's the issue with making 'special' zombies or other NPCs?

#

Why don't I see too many mods out there that do that?

ivory flower
#

well, there are no npc's base game, only in mods

#

so its probably on the modders to provide a way or you to figure it out

#

custom clothing zombies are simple, but tedious

dull yoke
#

Hmm

sour island
dull yoke
#

So if I wanted to make a Fallout mod with ghouls and super mutants, you think that'd be pretty difficult to do?

sour island
#

Not that difficult, especially if they're just enemies.

#

The java is exposed at a few different "levels", you would either have to more or less rewrite the java code into Lua or write what you need it to do.

#

But at that point you're probably skilled enough and have enough free time to just make your own game?

dull yoke
#

Oof

#

Yeah I definitely don't have the knowhow to do anything like that.

#

But it's a nice thought.

sour island
#

It's fairly easy to modify in game stuff though if you stick to what's more or less being done already.

#

If you're any good at making 3D models the actual scripting for new weapons/items is extremely simple.

dull yoke
#

Yeah it's been a while since I modeled anything (since college in fact). But the models for this game are fairly simple so it wouldn't be terribly difficult to do, depending on what I want to make. I think for me it would be making the textures.

ocean wave
ivory flower
lyric jungle
#

how the hell do I get rid of this invincible hostile NPC in superb survivors??

quick moth
grim perch
#

@dry sparrow Hey noticed that survivors with containers on them (backpacks, waist bags) will put their axe in them and somehow still use them as primary from inside the container. This causes an issue when they are broken because they wont remove the broken axe from the container and then when they pick up a new axe they will automatically drop it and then say they cant find an axe

jovial pendant
#

me liking the work Feather is doing

fading frost
fading frost
ivory flower
fading frost
#

oH CATFOX EARS

ivory flower
#

fox ears

#

but close enough

fading frost
#

xD ah

#

bunny ears when? ( ๏ฝฅ โ–ฟ๏ฝฅ)

ivory flower
#

im definitely not going to spend the next night making a bunny suit instead of sleeping like a normal person

fading frost
#

looking forward to you not doing it lol (can you also, err, "not" make the bunny tail separate from the bodice?)

ivory flower
#

ehhh

fading frost
#

( ๏ฝฅ โ–ฟ๏ฝฅ)

ivory flower
#

technically probably yes, but that would be a lot of extra work

viral spire
#

Sorry for the wall in advance...

#

Oh God it's too big

#

Just a mod idea for Cordyceps. Sorry.

#

I'm no programmer or artist, but I had this cool idea for a Cordyceps infection mod.

These are the basics:

  • Infection is more or less the same, with differences explained below.

  • Infected are sprinters at the start. Stalkers (2-6 months, grow over time) are fast shamblers with chances to sprint-lunge when close enough. They have poor eyesight but better hearing than sprinters. Clickers (6-12+ months) are fast shamblers. Totally blind, but exceptional hearing and echolocation.

  • Sprinters will still spawn during the Stalker and Clicker periods, but they will not be as common... but not rare, either. They'll be less common during the Clicker periods, but groups of them may potentially spawn from time to time.

  • Sometimes infected will die on their own, whether from a failed kill from you or just randomly in the world. When they do so, they may find a secluded interior cell to die in. If left undealt with for a few days, this may convert the interior cell into a spore nest.

  • Spore nests are formed in interior cells. Some may spawn when you start the game for the first time, but infected who are near death will wander into various buildings, enter the sleeping animation, and die. Over time, the tiles around them will change to simulate fungal growth; that takes weeks, if not months. A few days after death however, spores will make the interior cell dangerous to explore without a gas mask.

  • Spore nests will also form from corpses of infected that you kill indoors. Always bring corpses outside and burn them. Burning an infected corpse is dangerous, so wear a gas mask upon doing so.

  • Spore nests are only identifiable from the outside by the grayish grime that will appear on the exterior walls of a building. This grime is the only indication the interior is a hazard zone. Be very alert.

  • Spore nests can be eradicated using bleach and towels/dishrags. There's also burning the building, but that would create more problems, so don't.

viral spire
# viral spire I'm no programmer or artist, but I had this cool idea for a Cordyceps infection ...
  • If you enter a spore nest without a gas mask, you will immediately become infected.

  • If any windows or doors of a spore nest are open leading to the outdoors at its peak, there is a chance that the surrounding area of the nest will also be infectious, roughly 10-15 tiles radius.

  • If there are more than 10 spore nests in a surrounding area, and windows/doors are open/broken, there is a chance this may cause a spore haze, which allows spores to travel along the wind and through fog for potentially miles. This may make entire regions dangerous to explore without a gas mask for periods of time. If possible, stay indoors during this period.

  • Spore nests will not grow in size no matter how many bodies are present. Their size is only dependent on the size of the building. However, large buildings may be safe to traverse in areas as long as the body count is low. A high body count will ensure the entire building is compromised.

  • Infected will typically sleep indoors during the night, either standing or slumped against a wall. It's possible to sneak past them this way, but be careful not to bump into them or make much noise.

  • Clickers are totally unaffected by flashlights and other light sources.

viral spire
# viral spire - If you enter a spore nest without a gas mask, you will immediately become infe...
  • Crops can become infected with Cordyceps, either through spores traveling from wind or from infected moving nearby. The former won't be too common until the later months depending on your location. The best way to ensure healthy crops is to plant indoors whenever possible.

  • Exposed water supplies can become infected. This means entire lakes and rivers can be tainted with Cordyceps. This can be solved by boiling water overnight.

  • Burning spore nests could lead to spores drifting along the wind and infecting large areas. Try to not let this happen!

  • Infected are fragile if injured and left alone. They will attack initially after being struck, but if you evade them, they will eventually wander elsewhere and find an interior cell to die. If possible, try to kill them outdoors in an area where fungal contamination risk is minimal.

  • Sprinters will form large groups. Stalkers will somewhat form groups. Clickers will not form groups, only grouped by random chance.

  • Sprinters are not very strong. Stalkers are slightly stronger. Clickers are very strong; combat best avoided, because even one can drag you down.

  • Any non-canned foods exposed to spores will be inedible. Well... you can still eat them, but you'll get infected.

  • When infected, instead of feeling sick before you turn, your character will feel strange, like something's not right. Your movement will become erratic, almost as if drunk. It will get worse.

  • When you succumb to infection, the death sound effect won't play. Your character just falls. The zombie emoji will instead be replaced with a lil emoji of a clicker, showing you have succumbed to the Cordyceps infection.

dry sparrow
modest nebula
#

I'm new to modding PZ; where should I start if I want to modify a generator / add a new generator?

#

My mod idea is a battery bank; basically it's a generator that you slap a car battery into as an alternate power source.

marsh beacon
#

@modest nebula You should start by looking through the hydrocraft code

modest nebula
#

Isn't that like.. Gigantic as heck?

marsh beacon
#

Hydrocraft is the only mod I know that adds a new generator

#

Yeah it is large

modest nebula
#

Hmm. I'll start small I think. See if I can goof around and add something in.

marsh beacon
#

Autosars trailer mod has a generator as well

#

Check their code

modest nebula
#

Any way to quickly reload lua in debug mode?

modest nebula
#

Sure, shows specific files but I can't spot my mod files.

ivory flower
#

im literally doing the same dont worry xD

#

and please, dont misunderstand, i wasn't making fun of you, i was making fun of how bothersome pz is

modest nebula
#

I read that totally wrong, thanks for clarifying for me ๐Ÿ™‚

#

This generator thing is ok actually, just slow going due to hiccups.

ivory flower
#

well, in pz everything will be slow forever, even if you get used to it

modest nebula
#

Blue generator that breaks every right click action in the game ๐Ÿ˜‰

ivory flower
#

aaand i cant update my workshop

#

thanks steam

#

i wish it at least told me why

#

result=2 isn't helpful

ocean wave
#

question, do my mods need to follow the structure of the mod template?

#

i dropped my mod into my zomboid mods folder and not the workshop one

#

is that good or

ivory flower
#

i have no diea but you should always follow the template

#

just in case

ocean wave
#

baller will try again

#

my mod is not working but showing up in the mod menu is why i ask

ivory flower
#

i was struggling for 2 days because one txt file was one folder upper than it should have been and i didnt notice

#

and nothing worked because of it

ocean wave
#

would this be where i put my mods?

#

why is the gamma so bad on that screenshot lmao

ivory flower
#

ye

ocean wave
#

solid, ill try it again now

#

ok so i shouldve kept that mod where it was because now its gone

ocean wave
#

image129 me too. Sometimes it does that without the screenshot and it feels like getting flashbanged

grizzled grove
#

congrats, you've ruined dark mode

ocean wave
#

Mfw

modest nebula
#

Any easy way to get the item you right click on?

#

Specifically for context stuff

modest nebula
#

Jesus this documentation is garbage. Am I missing something?

drifting ore
#

Is it possible to add a new character model with a mod?

gaunt pendant
modest nebula
#

Iso. Need to either be able to treat a IsoObject as IsoGenerator since I can't just flag it in the item definition or do some real crazy work around.

#

I am looking at hydrocrafts solar section for tips and so far it's all recipes... Not exactly what I want. Close to vanilla is where I want to be, as if my battery bank generator was a static drop

gaunt pendant
modest nebula
#

I'll look it over later on. Thanks big chief

gaunt pendant
#

No idea what the .test .settest etc stuff is. It's in thd vanilla stuff so I copied it too

modest nebula
#

Pretty sire it's for unit tests

#

Can be safely removed if you don't actively unit test

gaunt pendant
#

Might be

modest nebula
#

You made the tapes mod?

gaunt pendant
#

Aye

modest nebula
#

I love that. It's really handy for someone that doesn't gaf about early sitting around

gaunt pendant
#

Yea, that was my motivation ๐Ÿ˜Ž

#

Was really surprised nobody made it already

modest nebula
#

The one thing I will suggest is that when the tape is ejected it goes back to the previous channel. Only for a partial on a woodcraft once because of paws tv ๐Ÿ˜Ž

gaunt pendant
#

Hate starting a game and not get to play until the shows are over, but the min-maxer in me has to do it ๐Ÿ˜‚

modest nebula
#

I take feeble smoker out of shape unemployed

#

But yeah, let's catch up some time later. I want to mod more and you seem real wired on stuff

#

Gotta nap

gaunt pendant
modest nebula
#

There's a mod data thing

#

Trailers uses it to save their generator data

gaunt pendant
#

Yea it's where I "store" the tape already

modest nebula
#

I'm sure you can pass it an object

gaunt pendant
#

Probably string only

#

Doesn't matter - it'd work

modest nebula
#

Generator is an object. You can totes do that I bet

#

Right. Catch ya later

sour island
#

All objects have modData, (unrelated but I learned recently that zombies don't save their modData), you can pass other objects into it but direct object references don't get saved.

stoic kayak
#

Hia! Er- Do I ask here if I want to try messing with lua coding in mods, for the game? :P

#

If not then sorry!
But uh- setDisappearOnUse was the in the game, but then was removed?

undone crag
#

There is hasmoddata so maybe some things don't have moddata until you get theirs, though I have not tried printing the result of hasmoddata.

sour island
#

Iirc it is {} by default.

#

So nothing/null/nil

undone crag
#

Doesn't {} print as something like table00000000123456789 though?

#

Or maybe it doesn't? :s

tired lily
#

Hey folks, I've been trying to remember how to save custom markers on eris maps and every time i close the window for the POI the marker disappears.

perhaps something is breaking the mod? im not sure

EDIT: Resolved, Change in font size broke the window.

sour island
dull yoke
#

So I'm trying to get Expanded Helicopters crashes to work with Vehicle Recycling by changing the mass/volume/whatever of the crash itself so it'll fit inside the 100 limit of the propane torch. I know I can edit the propaneNeeded + 0.65 value to be lower, but that messes with all the vehicles and I just want the helicopters. Anyone know what I need to look for to edit the EHE mod instead?

tired hawk
#

Starting out from scratch, what's a good resource?
I just want to try and make a copy of the arcade machine, with a custom sprite at first

#

Where do I even find its texture, I'm having no luck in /media/textures

winter bolt
#

map tiles are packed into an archive i'm pretty sure

#

i've never touched mapping though so i'm not sure how you unpack them

willow estuary
#

Ah, counterintuitively enough that's something to better post about in the mapping channel.

#

World object sprite tiles are a "mapping" thing.

sour island
craggy furnace
#

we are interested in someone having a way to incorporate that because we do not wanna add recycling and break something else to it

grizzled grove
#

Working up an idea for a clutter/junk/collectible items mod after seeing the new 3d items today. Would it be feasible to call a function when a container is opened after the initial loot roll is done? It would be novel to not impact the regular loot for the sake of adding what is essentially crap.

willow estuary
# grizzled grove Working up an idea for a clutter/junk/collectible items mod after seeing the new...

That's possible, but I feel like it would be less work for the same results to just use the junk category in the distro tables? As long as the container capacity hasn't been hit, you can have as much stuff spawn in a container as you like?
It does gets pear shaped with loot respawn, where the limit of items that can be spawned can get overwhelmed by abundant mod items, as Hydrocraft tends to do.

Unless you're talking about some sort of loot box mechanic, where a world tile or inventory object is interacted with in some fashion to make it a container that has loot inside, which I've found to be addictively fun in testing.

grizzled grove
# willow estuary That's possible, but I feel like it would be less work for the same results to j...

NO FUN ALLOWED. No, i'm mostly thinking about adding knick-knacks and similar items that otherwise have no use than to spruce things up a bit, itemwise. So I had a little idea to add items without interfering with regular loot rolls. I'd rather it not impact gameplay, not getting useful items because some random crap ended up rolling.

After I wrote that, I remembered there is that junk category, and have a half-memory about there being something special about it?

craggy furnace
#

quick redo

willow estuary
# grizzled grove NO FUN ALLOWED. No, i'm mostly thinking about adding knick-knacks and similar it...

Yeah, junk is intended exactly for that sort of clutter items; it's not affected by zombie pop in the vicinity, as opposed to the items category, so it's also useful if you want to use it for "super rare" items as zombie pop inflates an artificial "floor" to the spawn chance for items in the items category.

And just to clarify, the loot rolls are not impacted by other items until the container capacity is reached. There's a lot of misinformation floating around about that due to the aforementioned loot respawn + Hydrocraft issue, which is wiprespread due to the prevalence of both of those being used for MP servers.

slender garnet
# craggy furnace

Ah of course, the notorious IRS helicopter. They are known to fly around the Knox County looking for tax evaders.

grizzled grove
viral spire
#

Imagine the mod potential from NPCs being added alone. Imagine a mod that turns the game into a war-survival game like This War of Mine.

hexed arrow
#

Is the new distribution system already in place ? Like forcing to spawn gear on certain Zombies etc. I think I read about it recently

quick moth
#

How do people write code in discord? Occasionally I see code posted in here and it's like highlighted

ocean wave
#

theres two ways, the triple astrophe
`*`` - minus the asterisk
which will do cool stuff like

code stuff```
or you can upload the txt of a piece of code and discord will show a preview
#

like that

grizzled grove
#

also you can do syntax highlighting by including a language name:

```lua
myCoolFunc()
  "lol i don't do anything"
ocean wave
#

its not highlighting rn but they're right

late vigil
#

guys If i change to 41.53 iwbums, from 41.50 can I still use my mods?

latent orchid
#

depends

#

loot focused mods are primarily the ones impacted (not all, but some)

#

safe bet is to backup save, try them out and see if any issues.

thorn ledge
#

What are some good mods that I should use

#

For beta 41

#

Not using iwbums

modest nebula
#

There is a filter on the side of the workshop for build 41 mods that work

#

@late vigil yep. Work for me at least

hollow shadow
#

wish you could change the shadow

modest nebula
#

It's generated by the collision model I bet.

#

Wish it just generated it based on the verts of the model

quick moth
#

Rip. Can't get my item to spawn in. This sucks.

modest nebula
#

Can you share your item definition text file?

#

@quick moth

winged phoenix
#

Is there a way to make a script recipe (not a lua thing) be exhausting to perform?

winged phoenix
#

dang.

#

might make this a multi stage process later and see if i can figure out what combo of animnode and props best sells the illusion, plus make it locked behind carpentry or maybe find a way to have it give a skill based chance of giving nothing but scrap wood if you screw up

#

oop, should add the other saw types i have to the tools

#

since i pucture this as:

  1. saw log into rough rounds/blanks
  2. carve out excess

actually i might add small axe types to the tools needed so there's more of a "this tool make sense for the job" thing

quick moth
#

Any issues with either of my files?

shrewd knot
winged phoenix
#

yeah, good thought. Might substitute a spoon.

#

like, say, a really sharpened one

#

which isn't made of butter

#

which... spoons basically usually are but shh

modest nebula
#

Worth looking at the exercise equipment's code. May find something like addExertion or some shit

winged phoenix
#

oooh

modest nebula
#

addExertion is speculation. It may be way more complex

winged phoenix
#

for now i'm just adding a spoon which is destroyed in the process

#

just handwaving the fact that spoons aer kinda blunt

#

since this is a stopgap thing i do plan on revisiting this later to maybe define some extra recipes that turn this into a multi stage process and gets more suitable tools

#

oop, i did something wrong in the recipy, gotta figure out what

#

i can tell i screwed up when the crafting menu refuses to open lmao

#

...wait a minute is it to do with multiple resulting items

faint phoenix
#

might be just it

winged phoenix
#

gonna try, i guess i can handwave it as "oh it's all woodchips at this point"

#

i will have to find a spoon so this gives me more incetntive to strike out for the nearest town

#

yeeep it was the multi product thing

#

til, only one product is allowed per script recipe (unless there's another way besides lua scripting)

#

(i know scripting would make it possible but i haven't touched lua in literally a decade at this point so i'm not exactly looking forward to learning it again in the form zomboid uses lmao)

quick moth
#

Ok so I figured out my mod is working. I just picked bad spawn locations apparently. That makes me feel better.

modest nebula
#

How do you set spawn locations exactly?

hollow shadow
winged phoenix
#

i thought that involved lua

#

still haven't looked much into that yet

#

it looks like at least a different language/syntax than the simplified scripting used for recipes i'm using so far while i get the hang of basics

hollow shadow
#

Afaik you are able to make it so multiple items can be given to the player when the function in the recipe is called

#

with percentages too

#

but i didnt try percentages yet.

#

i think the ZRE mod has lots of oncreate functions for the MRE opening

winged phoenix
#

once i feel ready to tackle external script calls i'll definitely switch to it and be like "oh god i'm such a dumbass why didn't i do this sooner"

hollow shadow
#

it decides which flavor of jelly the player will get with his crackers n shit

winged phoenix
#

this is the way

hollow shadow
#

im just assuming it works like that btw

sour island
#

It do

#

Any function passed through oncreate has a few assumed arguments

spare spire
#

hey, I can't get le gourmet revolution to work with brita's, the problem is hunting with rifles just doesn't seem to be there. Anyone here got any ideas?

willow estuary
#

That's not surprising; I wouldn't expect the two mods to be cross compatible out of the box.
LGR used the vanilla guns, and maybe some of Snake's guns, for hunting; where Brita's is a completely unconnected mod that removes all the vanilla guns and introduces it's own guns.

ie nether mod author is "negligent" in any fashion in regards to this.

spare spire
#

A bummer there aren't any compatibility patches for snakes mods on the workshop

#

I hoped his mods would have become more popular by now

#

Is there any way to modify the files of lgr to include guns from brita's?

willow estuary
#

My impression is both that Snake's stuff is more popular in the Spanish speaking PZ community, and that also they're not necessarily too concerned with popularity?

Sure it's possible to modify the lgr files, but the proper way, IMO, would be for someone to make a cross compatibility patch; that might a good opportunity for a newbie modder to make a name for themselves if anything.

#

But also it would be a bit of effort given the abundance of guns in Brita's ๐Ÿ˜„

spare spire
#

One thing I know is I'm not even a newbie so I'm not going to be the chosen one ๐Ÿ˜• . Now I have to make a tough decision and uninstall brita's for a play through or two.

#

Thanks for the insight.

willow estuary
#

๐Ÿ‘

ocean wave
#

newbie modder
demoConga gentlemen

craggy furnace
modest nebula
#

Can I create a recipe that doesn't make anything exactly, but calls a function in Lua that creates it instead?

modest nebula
#

Oh, I figured it out.

#

So now I have an issue. Is there a way to have an IsoGenerator type that doesn't kill your character?

sour island
sour island
modest nebula
#
local NewGenerator = IsoGenerator.new(nil, player:getCell(), player:getCurrentSquare());
            NewGenerator:setConnected(true);
            NewGenerator:setFuel(100);
            NewGenerator:setCondition(100);
            NewGenerator:setActivated(true);
            NewGenerator:setSurroundingElectricity();
            -- Attempting this, not working (as expected.)
            -- NewGenerator.Damage = 0;
            NewGenerator:remove();
            player:getCurrentSquare():AddWorldInventoryItem( "BatteryBank.BatteryBankReady" ,0.5,0.5,0);
#

I think it's just callbacks to generic Java crap so this is pointless unless I force it to go outside.

#

@sour island What is the param? I'm doing som weird lua nonsense oncreate

sour island
#

RemoveResultItem:true

#

In the recipe script

modest nebula
#

Cheers, boo.

ocean wave
#

Question. Are there models and templates for clothing and hair mods?

modest nebula
#

I know there are a load of loose FBX files in the game files. Not sure if it's character models though

ocean wave
#

Darn. I'll have to do some more research online before I start hair and hat modelling then

modest nebula
#

I wouldn't stress too much, chances are there is a solid template already there in the files.

#

Just import to Blender or something and do your magic; sure you can do something neat.

ocean wave
#

SadOkayCat thank you!

grizzled grove
ocean wave
#

Oh shit I'm dumb I muted that entire channel by accident

grim perch
#

Any idea what could be causing this error

#

DEBUG: Shader , 1628884146709> ShaderProgram.onCompileSuccess > UVScale, Loc: 76, Type: 35664, Size: 1
ERROR: General , 1628884146901> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: DisplayName of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1628884146901> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: DisplayName of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:492)
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.GameWindow.enter(GameWindow.java:714)
at zombie.GameWindow.mainThread(GameWindow.java:467)
at java.base/java.lang.Thread.run(Unknown Source)

#

@late hound I think this way may be related to the piano mod? Aug 13, 2021 3:49:02 PM zombie.Lua.LuaManager RunLua
SEVERE: java.lang.RuntimeException
Aug 13, 2021 3:49:02 PM zombie.Lua.LuaManager RunLua
SEVERE: java.lang.RuntimeException:
Aug 13, 2021 3:49:02 PM zombie.Lua.LuaManager RunLua
SEVERE: at SPPPianoSkill.lua:8

#

sorry wrong person

#

@grave solstice I think that was related to the piano mod?

grim perch
#

@late hound this one is yours... AuthenticZ has some clothing that doesn't exist in the game... Here is one I found so far in the errors

#

ERROR: General , 1628884148429> DebugLogStream.printException> Stack trace:
java.util.concurrent.ExecutionException: zombie.util.PZXmlParserException: Exception thrown while parsing XML file "media/clothing/clothingItems/Shirt_FormalBlack_ShortSleeve.xml"
Caused by:
java.io.FileNotFoundException: media\clothing\clothingItems\Shirt_FormalBlack_ShortSleeve.xml (The system cannot find the file specified)
at java.base/java.util.concurrent.FutureTask.report(Unknown Source)
at java.base/java.util.concurrent.FutureTask.get(Unknown Source)
at zombie.fileSystem.FileSystemImpl.updateAsyncTransactions(FileSystemImpl.java:314)
at zombie.GameWindow.logic(GameWindow.java:296)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:726)
at zombie.GameWindow.run_ez(GameWindow.java:642)
at zombie.GameWindow.mainThread(GameWindow.java:471)
at java.base/java.lang.Thread.run(Unknown Source)

#

FormalBlack doesnt exist

indigo holly
#

the pianos mods does not give errors ... I use the mod and it works perfect

#

Authentic z does not give errors either

#

if you use 3,000 mods it may be that some error

grim perch
#

Specifically since AuthenticZ does reference an object that doesnt exist

indigo holly
#

what mod do you use? mods that are incompatible ...

grim perch
grave solstice
#

I'm pretty sure there's an error caused by the piano mod because the initialization code still uses the extra skills system, but it shouldn't cause any real issues

grim perch
indigo holly
#

Authenticz has 2 mods if you activate the normal version there are no errors ... it's just info

#

I use 105 mods and I don't have any errors ... b41.53 people who have 250 activated don't even know how to start the game

grim perch
indigo holly
#

I'm not a modder ,, I'm a mod tester

#

but I'm a pz player and xdd tester

grim perch
#

Alright had enough of that individual. Thankfully Block is a feature on discord

latent orchid
#

before that bit with the error, it should show the mod that is being loaded before it threw the error.

grim perch
#

Yup looks like the issue with AuthenticZ is only in the Current build... Guessing this is a mistype because the clothing.xml reference Shirt_FormalBlack_ShortSleeve

#

but in the mod media/clothing/clothingItem there is Shirt_FormalRed_ShortSleeve.xml

#

which isn't referenced in clothing.xml ... so guessing either clothing.xml should be changed to red, or this file shoudl be changed to black?

craggy furnace
#

i am familiar with formalred

#

its a test item iirc

indigo holly
grim perch
#

well peach put it in Authentic Z

#

But only exists in the Current (newer) mod, doesn't exist in the older one

indigo holly
late hound
grim perch
#

@late hound all good, just saw it and wanted to document it before i forgot

#

Here is another one i think

#

WARN : Recipe , 1628884175042> RecipeManager.resolveItemModuleDotType> WARNING: module "AuthenticZRecipes" may have forgot to import module Base

late hound
late hound
fringe lance
#

@narrow hamlet Hi, in the antiserum mod you say tha you have a fix?, how can i fix the mod, ty

winged phoenix
#

I'm tempted once i get back from this weekend sleepover to try and make skill books for the other skills and to do something to make them unique, like having them be lighter one-per-level magazines or something to make it still a challenge to get due to needing to find the right book or something.

#

that, and wondering at how feasable swapping out the female survivor is

narrow hamlet
undone flax
#

hi. question. i had a mod with only scrips/txt file to play arround with some item weight and so on. but it seems its not loading anymore with the new version. i didnt touch it in a while. is there something i need to update / change to make it load again ?

undone flax
#

seems its loading if you use load game -> more -> enable mods there

stoic kayak
#

How hard is it to get a map mod supported by eris' minimap?

willow estuary
#

Someone has to want to make the patch for it, and also be capable of making it. Just that.

stoic kayak
#

I am curious b/c if not too hard, maybe I could do a personal patch for it :P

modest nebula
#

Still hung up on that bloody generator toxin stuff.

#

Surely there has to be a toggle somewhere. Or something.

modest nebula
#

Where can I find the list of callbacks I can put onto an item definition?

shy cloud
#

Nobody responded, but I posted it in tech support instead of here, I'll just repost this again.

Hey guys, I'm running a modded game and I am just wondering if there is going to be any conflicts/issues between the mods I have activated for my current playthrough, the list are as follows:

-Filibuster Rhymes' Used Car Names - Lore Friendly
-Superb Survivors
-Save Our Station Core
-Save Our Station Knox Country
-Raven Creek
-Pillow's Random Scenarios
-Pillow's Random Spawn by Location
-Pillow's Random Spawns
-Pillow's Random Spawns by Profession
-Pillow's Random Spawns Variations
-Paw Low Loot Guns
-Paw Low Loot
-Paw Low Loot Fantasy Pack
-Mod Template
-Fort Redstone, KY
-CrashedCars
-Brita's Weapon Pack
-Arsenal(26) GunFighter
-Mod Options
-Filibuster Rhymes' Used Cars! BETA BETA BETA
-Filibuster Rhymes' Used Cars! Fuel Test

I am also taking any suggestions for mods for future playthroughs (aslong as none of them conflict with this list of course)

tulip valve
#
Events.OnNewGame.Add(function(player, square)

    local trait = player:getTraits()
        if player:HasTrait("CDDA") then
        
        player.RemovePlayer = function(p)

end

player.AddPlayer = function(playerNum, playerObj)
    --if playerObj:getHoursSurvived() > 0 then return end

    playerObj:getStats():setDrunkenness(100);

    print("adding challenge inventory");
    playerObj:getInventory():clear();
    playerObj:clearWornItems();
    playerObj:getBodyDamage():setWetness(100);
    playerObj:getBodyDamage():setCatchACold(0.0);
    playerObj:getBodyDamage():setHasACold(true);
    playerObj:getBodyDamage():setColdStrength(20.0);
    playerObj:getBodyDamage():setTimeToSneezeOrCough(0);
    playerObj:setClothingItem_Feet(nil)
    playerObj:setClothingItem_Legs(nil)
    playerObj:setClothingItem_Torso(nil)
    playerObj:getBodyDamage():getBodyPart(BodyPartType.Groin):generateDeepShardWound();
    end
end)
#

Why dosnt this work? Trying to add the A Really CD DA as a trait ^^

modest nebula
#

@tulip valve tag that as a lua code block please.

tulip valve
#

How?

modest nebula
#

Edit it to have ```lua
Lua tags.

#

Fucking tags. Google it.

#

Code goes in the middle ๐Ÿ™‚

#

Just 3 `

#

You copy this from another scenario, Josko?

tulip valve
#

there we go

#

lol

#

thanks

modest nebula
#

I'm not familiar with scenario modding, myself. Best ask someone else. The code looks like it needs to add the event for AddPlayer to a new game event or something. Right now, player.AddPlayer as a function is discarded from what I can see

#

Any errors or anything? What's happening when you try and run it?

tulip valve
#

Nothing happends ๐Ÿ˜›

modest nebula
#

Right. What are you changing?

tulip valve
#
CDDA.RemovePlayer = function(p)

end

CDDA.AddPlayer = function(playerNum, playerObj)
    if playerObj:getHoursSurvived() > 0 then return end

    playerObj:getStats():setDrunkenness(100);

    print("adding challenge inventory");
    playerObj:getInventory():clear();
    playerObj:clearWornItems();
    playerObj:getBodyDamage():setWetness(100);
    playerObj:getBodyDamage():setCatchACold(0.0);
    playerObj:getBodyDamage():setHasACold(true);
    playerObj:getBodyDamage():setColdStrength(20.0);
    playerObj:getBodyDamage():setTimeToSneezeOrCough(0);
    playerObj:setClothingItem_Feet(nil)
    playerObj:setClothingItem_Legs(nil)
    playerObj:setClothingItem_Torso(nil)
    playerObj:getBodyDamage():getBodyPart(BodyPartType.Groin):generateDeepShardWound();
end
#

this is the original

modest nebula
#

@shy cloud sorry bud best chance is tech support. We talk code stuff not general mod stuff

#

What file is it?

tulip valve
#

taken from the AReallyCDDay.lua file in lua/client/laststand

modest nebula
#

Ok. It's a module thing. You'll need to hook it up I think.

The original uses the CDDA prefix so find where that is used

#

Replace where you set it to player.AddBlah to something else

#

By the way, next time please post either the whole file in a pastebin or make it clear it's redacted

tulip valve
#
CDDA2 = {}

CDDA2.Add = function()
    --addChallenge(CDDA);


end

Events.OnNewGame.Add(function(player, square)

    local trait = player:getTraits()
        if player:HasTrait("CDDA") then
        
        CDDA2.RemovePlayer = function(p)

end

CDDA2.AddPlayer = function(playerNum, playerObj)
    --if playerObj:getHoursSurvived() > 0 then return end

    playerObj:getStats():setDrunkenness(100);

    print("adding challenge inventory");
    playerObj:getInventory():clear();
    playerObj:clearWornItems();
    playerObj:getBodyDamage():setWetness(100);
    playerObj:getBodyDamage():setCatchACold(0.0);
    playerObj:getBodyDamage():setHasACold(true);
    playerObj:getBodyDamage():setColdStrength(20.0);
    playerObj:getBodyDamage():setTimeToSneezeOrCough(0);
    playerObj:setClothingItem_Feet(nil)
    playerObj:setClothingItem_Legs(nil)
    playerObj:setClothingItem_Torso(nil)
    playerObj:getBodyDamage():getBodyPart(BodyPartType.Groin):generateDeepShardWound();
    end
end)
modest nebula
#

I just checked the file and know exactly where your issue is

tulip valve
#

Ah

modest nebula
#

Right at the end:
Events.OnChallengeQuery.Add(CDDA.Add)

#

This is what is probably going to add in your custom stuff. Replace all CDDA references with CDDA2 and you should be fine

tulip valve
#

altough it says OnChallengeQuery, hope it still works lol

modest nebula
#

OnChallengeQuery is most likely when you load your scenarios. It'll push them all onto the list in your menu

tulip valve
#

This is a custom trait, so not a challenge

#

What I want to do is turn the CD DA negative stuff like Drunk, bleeding, sneezing into a trait, I can load up the trait that part works, but nothing happends when I start the game

modest nebula
#

Someone more experienced can help, I bet. I'm new to the framework

#

Jesus. Is there any documentation that isn't from 2015?

shy cloud
tulip valve
#

@shy cloudIf you are running a modded game, there is no way to know if you will run into conflicts, not what I know anyway, you will just have to see if the work ๐Ÿ˜› Unless mods state they are for certain builds ofcourse

tulip valve
shy cloud
#

Well mods are known for conflicting with other mods so I was just wondering if I would run into any

modest nebula
#

ยฏ_(ใƒ„)_/ยฏ

#

I'm sure you'll know if you try.

shy cloud
tulip valve
#

@modest nebula I got help with the code by Fenris_Wolf, Now its working ^^

#
Events.OnNewGame.Add(function(player, square)

    if not player:HasTrait("CDDA") then return end -- just return early, save a indentation level
    player:getStats():setDrunkenness(100);

    print("adding challenge inventory");
    player:getInventory():clear();
    player:clearWornItems();
    player:getBodyDamage():setWetness(100);
    player:getBodyDamage():setCatchACold(0.0);
    player:getBodyDamage():setHasACold(true);
    player:getBodyDamage():setColdStrength(20.0);
    player:getBodyDamage():setTimeToSneezeOrCough(0);
    player:setClothingItem_Feet(nil)
    player:setClothingItem_Legs(nil)
    player:setClothingItem_Torso(nil)
    player:getBodyDamage():getBodyPart(BodyPartType.Groin):generateDeepShardWound();
end)
#

How its supposed to be

willow estuary
modest nebula
#

Yikes. Is there a discord specific for modding because I have too many questions that are going to get swamped by "How do I install a mod in zomboid"

willow estuary
#

Never seen that one pop up, but yeah, a fair amount of posts in this channel are from non-tech savy users inquiring about mod conflicts and the like? As well as the regularly scheduled "Can someone make a zombie guts camouflage mod?!?!" post ๐Ÿ˜„

Not sure if I even have permission to invite people to the one modding discord I know of, but it's also a ghost town; I think this channel is really the only game in town as far as I know.

#

I mean, I certainly wouldn't encourage people to post a giant modlist and ask "Never tried this, but will it work?" and the like, but hey, better to err on the side of being inclusive and helpful.

modest nebula
#

My first escapade here in the modding channel was met with sass, actually. I try and be helpful as best I can but I have a limit. I'm working on this generator code and it has me upset, honestly.

The documentation is about 5 years out of date for what I need to code for, so I'm generally miffed that I would have to decompile the source and dig around for the right event to call.