Project Zomboid

Project Zomboid

ArcherLib
51 Comments
butteryspam 18 hours ago 
can confirm this mod is causing the game to freeze
it freezes every time you swing a melee weapon
挽梦 6 Jun @ 9:12am 
The arrow cannot be retrieved after being shot. How to fix it?
Diakon 7 Apr @ 7:55am 
@Afterworlds You need to add "local" to the start of the line 3 in the file ArcherLib\42\media\lua\shared\TimedActions\AL_ISReloadWeaponAction.lua

For anyone experiencing crashes, do the above and it shouldn't happen anymore
Diakon 7 Apr @ 7:43am 
Pallontras Weapons - Crossbows, as well as any other mod that overwrites ISReloadWeaponAction.attackHook will break together. This mod does
Diakon 7 Apr @ 6:37am 
Okay, Found out the issue. It's a conflict with a different mod. On its own, it works perfectly
Diakon 30 Mar @ 10:13am 
At the very least,I haven't been able to trigger a crash
Diakon 30 Mar @ 10:13am 
At least when running in debug mode, since 42.6, this doesn't seem to crash the game
Diakon 24 Mar @ 1:03pm 
@Afterworlds While I likewise shouldn't spend time on Zomboid modding, mind if I take a crack at forking in a Fix?
Afterworlds  [author] 27 Feb @ 1:10pm 
Hey all,

I don't have any time to work on this mod at the moment, my "pay the bills" jobs are getting real busy at the moment. I will update as soon as I have time, but unfortunately, that is not now.
dydwn2800 16 Feb @ 2:56am 
hello~
when update bow shooting error? plz update
Retired Stanwooz 14 Feb @ 1:19am 
Can confirm, game freezes whenever i (LMB+RMB) and the console throws me a load of these error messages

WARN : General f:2067, t:1739519197711> IsoGameCharacter.doDeferredMovement > WalkTowardState but path2 != null

When i deactivated the mod, melee works again, just a heads up :)
Afterworlds  [author] 12 Feb @ 11:01am 
@Vincenator Oh my. I will check it out.
Vincenator 11 Feb @ 9:36pm 
did some testing, and it looks like this mod causes crashes when attacking(LMB+RMB) with anything in the new 42.3.0 update
Mr. Kobaltz SOG 8 Feb @ 8:22am 
That sounds awesome being able to switch arrows. If you do end up doing so that’ll be amazing. Instantly one of my permanent mods.
Harkness 7 Feb @ 8:29pm 
Great mod but "primitive arrows" that require modern tape/glue? We have dung in the game now, could that be added as an adhesive?
Afterworlds  [author] 7 Feb @ 7:22pm 
@Mr. Kobaltz SOG

I might at some point. When I first started this mod, I had never touched 3D modeling before. At this point in time, I've made over 100 models while working on a couple other mods. I will probably swing back and do another take at this mod. My Ammo Swap mod will work wonders with arrows letting you have explosive arrows, poison arrows, etc.
Mr. Kobaltz SOG 7 Feb @ 6:06pm 
dang man at this point just make the whole mod "The Archery Mod" instead of the tools for someone else to make the archery mod lol
Afterworlds  [author] 7 Feb @ 5:58pm 
UPDATE!

I have added the magazine to teach the recipe to make the primitive bow.

I have also added a Ukrainian translation by Бен. Thanks @Бен
Afterworlds  [author] 7 Feb @ 5:13pm 
Hey all, it looks like I forgot to add the magazine that teaches how to make bows in the sample mod. I made the icon and everything I just failed to add it as an Item. I'll get that done and updated very soon.
BoB 5 Feb @ 9:10pm 
If u want arrows to break when they dont impale a zombie (hits but lands nearby). Add this to AL_StickArrows.lua

if not target:getAttachedItem(location) then
target:setAttachedItem(location, newItem)
target:reportEvent("EventAttachItem")
else

newItem:setCondition(0)
target:getSquare():AddWorldInventoryItem(newItem, ZombRand(100)/100, ZombRand(100)/100, 0.0)
end
end
end
end

Events.OnHitZombie.Add(OnHitZombieWithArchery)

-- youll see where to put it/replace, since "newItem:setCondition(0)" is all you have to add.
Do not pick up broken arrows, since they will stack with your non broken arrows and be all weird.
Eizen 5 Feb @ 7:43am 
I think 1 improvement for the mod is the queueing of reload. Currently, while on the process of shooting arrow and you pressed reload, it wont proceed to do the action. You have to wait for the shooting animation to finish before reloading
Pych 4 Feb @ 7:10am 
The recipe for the primitive bow isn't included anywhere so it cant be learnt. For anyone that wants to fix it themselves, in >SteamLibrary\steamapps\workshop\content\108600\3408337281\mods\ArcherySample\42\media\scripts:
Open Sample_Recipes.txt
Change "needTobeLearn = true" to "needTobeLearn = false"


I would also recommend changing the weight of the Primitive bow as well:
Open Sample_Items.txt
Change "Weight = " to your prefered value, I put 2

Have fun!
MadRaven17 2 Feb @ 7:13pm 
How can i craft a Primitive Bow? game said need a recipe but i dont see a recipe in debug mode
Afterworlds  [author] 1 Feb @ 10:07pm 
@StrayPineapple sorry about the wait, but that is fixed now.
StrayPineapple 24 Jan @ 6:14am 
cant remove attachments from guns with this mod activated
Nyx 22 Jan @ 3:08pm 
I can't seem to be able to craft any arrows currently
Pedro 22 Jan @ 2:37pm 
Yes at lvl 0, and I have no error message
Afterworlds  [author] 21 Jan @ 12:54pm 
I will test for errors with 42.1 today. Please be patient.
tre 21 Jan @ 6:15am 
saved game safe?
Afterworlds  [author] 20 Jan @ 8:29pm 
@Pedro, that doesn't sound right. Is it 0 xp, or just still Level 0? Any error messages popping up?
Afterworlds  [author] 20 Jan @ 8:28pm 
@Nyx good call out, I'll update that soon.
Nyx 20 Jan @ 4:30pm 
@Afterworlds Awesome! Also the improvised bow is about 4 times as heavy as it should be, compared to real life. I tried to edit it ingame but that doesn't seem to do anything.
Pedro 20 Jan @ 4:08pm 
I killed about twenty zombies with my starting bow and it still remains intact, is that normal? And my archery level remains at zero
Mo xiaobai 20 Jan @ 7:29am 
I cannot remove firearms attachment when I use this mod.maybe a bug?
Afterworlds  [author] 19 Jan @ 8:44pm 
@Nyx I have plans, I just have to make a model, and I'm very new to 3d modeling :D
Nyx 19 Jan @ 4:23pm 
I apologise for not realising I just reload as usual haha. Thought of that right after posting, but still, quivers would be amazing!
Nyx 19 Jan @ 4:22pm 
I know it's just a sample mod (I just really want archery in the game!) But is there no quiver function? Am I supposed to manually right click my weapon for every arrow I want to shoot?
Milky 19 Jan @ 8:05am 
So happy to see a bow and arrow mod on B42! :Joblin: Goes well with my park ranger run
PH 17 Jan @ 3:06pm 
It only happens when you leave the arrows in the arch https://prnt.sc/mGP_EjDQahvU
Afterworlds  [author] 17 Jan @ 12:34pm 
@Avis, SO FAR, none that I know of. I will update if anyone makes something and lets me know.

However, you can install this mod, and enable the sample mod. It has bows and arrows in it, that you can use right now!
Avis 16 Jan @ 8:19pm 
please I need to know, what mods are using this as a dependency? I want a bow! :,(
Afterworlds  [author] 16 Jan @ 12:01pm 
@Balance
Nah, you are alllll good. I took no bad vibes from your comments :D
Balance 16 Jan @ 1:59am 
So after getting wildly frustrated at making these systems myself via trial and error for several days while also learning Lua in general I'm thinking I will be making the transition over to this lol so thank you.
I'm learning your new system, and seeing how much of what I've already created I can integrate over to yours. I'm really attached to my arrows and crafting system so hopefully I can make it work, but bloody well done writing this out this is really fucking cool! Sorry if I rubbed you the wrong way earlier with my question, I am still learning how this all works from a mod creator perspective :spiffo:
Balance 15 Jan @ 8:44pm 
I may be too deep in my own systems to make the transfer which is why I ask xD
But I will consider making the switch as it would save a lot of the leg work lol, thanks for the upload!
Afterworlds  [author] 15 Jan @ 8:37pm 
If you are working on a crossbow mod, hopefully, this mod can take some of the work out of it :D
Balance 15 Jan @ 8:37pm 
understood thank you
Afterworlds  [author] 15 Jan @ 8:36pm 
No. This mod is designed to BE a dependency.

The Guide shows how to use this library to make your own bows and crossbows using this mod to run all the complicated parts.
Balance 15 Jan @ 8:35pm 
Oh wow thank you for this, very useful guide :spiffo:
Balance 15 Jan @ 8:33pm 
So to make sure I understand this correctly would I be able to use the assets and tools from your mod and upload it as an isolated mod without a dependency with your permission?
I would love to use the work you have done here and *give credits* but I don't want to misinterpret how you would like to see this mod be used. I am currently working on a Crossbow mod and think this would help me round it out and expand into bows.
Thank you again for making this! :spiffo:
Mr. Kobaltz SOG 15 Jan @ 7:40pm 
Downloading this because want make bow and arrow