Project Zomboid

Project Zomboid

ArcherLib
51 条留言
butteryspam 7 月 13 日 上午 11:51 
can confirm this mod is causing the game to freeze
it freezes every time you swing a melee weapon
挽梦 6 月 6 日 上午 9:12 
The arrow cannot be retrieved after being shot. How to fix it?
Diakon 4 月 7 日 上午 7:55 
@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 4 月 7 日 上午 7:43 
Pallontras Weapons - Crossbows, as well as any other mod that overwrites ISReloadWeaponAction.attackHook will break together. This mod does
Diakon 4 月 7 日 上午 6:37 
Okay, Found out the issue. It's a conflict with a different mod. On its own, it works perfectly
Diakon 3 月 30 日 上午 10:13 
At the very least,I haven't been able to trigger a crash
Diakon 3 月 30 日 上午 10:13 
At least when running in debug mode, since 42.6, this doesn't seem to crash the game
Diakon 3 月 24 日 下午 1:03 
@Afterworlds While I likewise shouldn't spend time on Zomboid modding, mind if I take a crack at forking in a Fix?
Afterworlds  [作者] 2 月 27 日 下午 1:10 
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 2 月 16 日 上午 2:56 
hello~
when update bow shooting error? plz update
Retired Stanwooz 2 月 14 日 上午 1:19 
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  [作者] 2 月 12 日 上午 11:01 
@Vincenator Oh my. I will check it out.
Vincenator 2 月 11 日 下午 9:36 
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 2 月 8 日 上午 8:22 
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 2 月 7 日 下午 8:29 
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  [作者] 2 月 7 日 下午 7:22 
@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 2 月 7 日 下午 6:06 
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  [作者] 2 月 7 日 下午 5:58 
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  [作者] 2 月 7 日 下午 5:13 
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 2 月 5 日 下午 9:10 
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 2 月 5 日 上午 7:43 
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 2 月 4 日 上午 7:10 
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 月 2 日 下午 7:13 
How can i craft a Primitive Bow? game said need a recipe but i dont see a recipe in debug mode
Afterworlds  [作者] 2 月 1 日 下午 10:07 
@StrayPineapple sorry about the wait, but that is fixed now.
StrayPineapple 1 月 24 日 上午 6:14 
cant remove attachments from guns with this mod activated
Nyx 1 月 22 日 下午 3:08 
I can't seem to be able to craft any arrows currently
Pedro 1 月 22 日 下午 2:37 
Yes at lvl 0, and I have no error message
Afterworlds  [作者] 1 月 21 日 下午 12:54 
I will test for errors with 42.1 today. Please be patient.
tre 1 月 21 日 上午 6:15 
saved game safe?
Afterworlds  [作者] 1 月 20 日 下午 8:29 
@Pedro, that doesn't sound right. Is it 0 xp, or just still Level 0? Any error messages popping up?
Afterworlds  [作者] 1 月 20 日 下午 8:28 
@Nyx good call out, I'll update that soon.
Nyx 1 月 20 日 下午 4:30 
@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 1 月 20 日 下午 4:08 
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 1 月 20 日 上午 7:29 
I cannot remove firearms attachment when I use this mod.maybe a bug?
Afterworlds  [作者] 1 月 19 日 下午 8:44 
@Nyx I have plans, I just have to make a model, and I'm very new to 3d modeling :D
Nyx 1 月 19 日 下午 4:23 
I apologise for not realising I just reload as usual haha. Thought of that right after posting, but still, quivers would be amazing!
Nyx 1 月 19 日 下午 4:22 
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 1 月 19 日 上午 8:05 
So happy to see a bow and arrow mod on B42! :Joblin: Goes well with my park ranger run
PH 1 月 17 日 下午 3:06 
It only happens when you leave the arrows in the arch https://prnt.sc/mGP_EjDQahvU
Afterworlds  [作者] 1 月 17 日 下午 12:34 
@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 1 月 16 日 下午 8:19 
please I need to know, what mods are using this as a dependency? I want a bow! :,(
Afterworlds  [作者] 1 月 16 日 下午 12:01 
@Balance
Nah, you are alllll good. I took no bad vibes from your comments :D
Balance 1 月 16 日 上午 1:59 
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 1 月 15 日 下午 8:44 
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  [作者] 1 月 15 日 下午 8:37 
If you are working on a crossbow mod, hopefully, this mod can take some of the work out of it :D
Balance 1 月 15 日 下午 8:37 
understood thank you
Afterworlds  [作者] 1 月 15 日 下午 8:36 
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 1 月 15 日 下午 8:35 
Oh wow thank you for this, very useful guide :spiffo:
Balance 1 月 15 日 下午 8:33 
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 1 月 15 日 下午 7:40 
Downloading this because want make bow and arrow