Jump to content

[Project Zomboid] ZomboWin - A ZomboLewd Framework mod


Recommended Posts

12 hours ago, MorningDance1997 said:

Hey I can't defeat a zombie now, seems to be an issue with strength check? When I do it in debug mode it highlights the line with "local strLevel = player:getPerkLevel(Perks.Strength);"

Please let me know if anyone knows a fix for this, because I dont

Link to comment
18 hours ago, MorningDance1997 said:

Hey I can't defeat a zombie now, seems to be an issue with strength check? When I do it in debug mode it highlights the line with "local strLevel = player:getPerkLevel(Perks.Strength);"

Okay quick update: the error is that the error is null, from a quick bit of help from the PZ discord, with the error "attempted index: getPerkLevel of non-table: null", I have only a nude survivors and zombies mod along with zombowin and defeat, anyone know a fix?

Link to comment

I start the game and keep getting an error.

 

`attempted index: isNPC of non-table: null
function: OnZombieUpdate -- file: ZomboWinDefeatZombieHandler.lua line # 1204 | MOD: ZomboWin Defeat
java.lang.RuntimeException: attempted index: isNPC of non-table: null

Link to comment
On 5/9/2024 at 9:59 AM, bueir said:

yeah it would be cool to have more npc interation, like being able to surrender to hostile npc or pointing a gun at them, having them defeated, idk

I'm hoping for something like this after build 42.

Link to comment
On 5/10/2024 at 8:49 PM, CptAmelia said:

I'm hoping for something like this after build 42.

yeah unfortunately we ain't gonna see anything about that any time soon, since build 42 isn't even out yet and their ambitions with npc seems.. ambitious

Link to comment
On 5/11/2024 at 5:05 PM, bueir said:

yeah unfortunately we ain't gonna see anything about that any time soon, since build 42 isn't even out yet and their ambitions with npc seems.. ambitious

That's why it's gonna pay to have patience.

Link to comment
On 4/30/2024 at 5:58 AM, TNT90 said:

So I really want to make the clothing damage work properly and took a look at the code. 

  Reveal hidden contents

                                if target:HasTrait("viciousZombies") and not target:isNPC() then
                                                -- Editor note --
                                    -- here should be the code to check local var "item:itemlocation/ type"
                                    -- then compare item to clothing list index to determine which subindex it belongs to.
                                    -- then when item subindex is retrieved, thats when i'll know which holetype to use.
                                    -- then a local var will be set to remember what clothing type and which holes to receive damage.
                                    local function getIndexNum(bodyPart)
                                        return clothingToHoleMap[bodyPart] or 0
                                    end

                                    local indexNum = getIndexNum(bodyPart)
                                    if IndexNum ~= 0 and not IndexNum == nil then 
                                        --print("IndexNum returned as: " .. indexNum)
                                        
                                        local conditionDamage = 1;
                                        local dmgMultiplierChance = 0;
                                        
                                                    -- Editor note --
                                        -- apply condition damage
                                        item:setCondition(item:getCondition() - conditionDamage)
                                        
                                                    -- Editor note --
                                        -- apply hole to clothing
                                        local holeIndex = holeType[indexNum]
                                        local chosenHole = holeIndex[ZombRand(1, #holeIndex)]
                                        local bloodPart = BloodBodyPartType.FromString(chosenHole)

                                        target:addHole(bloodPart)
                                    end
                                end

 

I think it has to be in here somewhere as the next if statement to remove clothing to the ground works correctly. 

 

I've also been trying to compare/contrast it to the original ZomboLewd defeat script that worked last time I checked. 

Some subtle differences but most is the same. The main difference is in the part indexing I think. 

The first thing I can think of to do would be to try putting that new function definition outside of the current function it is in. But I don't know if that would even matter. Been a long time since my undergrad programming minor.

 

Thoughts? 

ZomboWinDefeatZombieHandler.lua 49.18 kB · 27 downloads ZomboLewdDefeatZombieHandler.lua 7.96 kB · 14 downloads

Man, thank you for pointing the problem! Yes, that was the indexing. I just put old indexing in the file and commented new indexing function. Seems to work, but still needs testing btw.

ZomboWinDefeatZombieHandler.lua

Link to comment
Posted (edited)

First test did not seem to work. Had default zomboid behavior, no stripping. Maybe I had something incorrect in the settings or something interfering. Should have had all the right traits. Further tests needed.

 

Edit 1: Did some more testing trying to disable most other mods. but didn't seem to work then either. The box is checked in the mod options to enable the mod. I have the traits for clothing damage and dropping. 

 

Edit 2: Tried refreshing the options in case something wasn't right there, deactivated the mod, restarted, reactivated the mod. Checked/unchecked everything in the list. Despite the wound part being deactivated (so wounds would happen), health would decrease but no wounds. No clothing dropped and clothing took damage as per default behavior. 

Edited by TNT90
Link to comment
Posted (edited)
On 3/4/2024 at 2:52 AM, mayamin said:

Male body model is almost finished being reworked!

here are some sneak peeks!
 

  Reveal hidden contents

 

image3.png

 

image4.png

image2.png

image.png


take care all ! 😄

patiently waiting for this model, will you try to have some integration with fantasyworkshop in the same way the titty size mods work to make dongs something like wearable penises/strapons for the girls? there is the dynamic body shape mod too if you wish to look at, it was made with pregnancy mod in mind but it allows to have fat ugly bastards to NTR other survivors :classic_biggrin:

Edited by dummy0152
Link to comment

I tried zomboid defeat in MP and it seems no npc spawn when the player defeat by zombies, so it looks like zombies vanish and player hang there then zombie pop up. Any patch for this? 

Link to comment
On 5/23/2024 at 11:41 PM, Unforansephilogist said:

heya ive got the ZomboWin and ZomboDefeat working but when a zombie is done with sex it freezes still along with me and a error 4? i have no clue what it means so if anyone can help that would be appriated ❤️

I had something similar with some zombie-altering mods, e.g. Reactive Zombies

Link to comment
17 minutes ago, Unforansephilogist said:

soo would vanilla zombies fix it?

Try it. Now I'm using a couple of mods that affect zombies CDDA Zombies Overhaul and NakedZombies and there are no problems. I also try to place ZomboWinDefeat and ZomboWin at the very bottom of mods list.

Link to comment
25 minutes ago, skvili said:

Try it. Now I'm using a couple of mods that affect zombies CDDA Zombies Overhaul and NakedZombies and there are no problems. I also try to place ZomboWinDefeat and ZomboWin at the very bottom of mods list.

How do i place zombowin and zombo defeat at the bottom? i have no idea how to mod or anything so excuse my doofusness

:3

Link to comment
10 hours ago, Unforansephilogist said:

How do i place zombowin and zombo defeat at the bottom? i have no idea how to mod or anything so excuse my doofusness

:3

Use the Mod Manager https://steamcommunity.com/sharedfiles/filedetails/?id=2694448564&searchtext=ModManager
In the lower right corner there will be a button "order of loading mods" or something like that. After changing the order, you will need to start a new game (or manually edit the file Mods.txt from the save directory)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use