Project Zomboid

Project Zomboid

[B42] Bicycle!
634 Comments
Skup 23 hours ago 
@Lupin I've been having the same bug, just press E once or twice again near the bike and it will move to underneath you. When you press E again after that you will get back off like normal. It happens to me after jumping fences with the bike nearby. Whether or not I have the control conflict glitch with pressing E near the bike
Fatecheater 7 Sep @ 8:41am 
I have 2 suggestions to make bicycle more realistic:
1. Right now, the bicycle can make an abrupt U-turn too fast while keeping the same velocity. My suggestion is: if I make an abrupt U-turn (or >90 degree turn), the bicycle should stop completely first and then start the animation for moving in the opposite direction. However, if I make a wider U-turn, the bicycle can retain its velocity the whole time.
2. Right now, I cannot look behind me when riding a bicycle because the bicycle turns with me. Please add the ability to look behind when riding the bicycle.
Lupin 6 Sep @ 10:03am 
Update: I can't get on this bike anymore, it does the same thing whenever I jump on it for some reason.
Lupin 6 Sep @ 10:02am 
Hi, just letting you know that I found a bug. I put a bike into a vehicle trunk with drag-and-drop, then took it out later and hit E to close the trunk. When I did, it closed the trunk and made me hop on the bike simultaneously, except for some reason the game glitched out and thought that I was on the bike, but I wasn't, so the bike stayed where it was while I cycled around on the air, lol. It went away when I quit and restarted.

Thanks for your work, btw, this mod is literally a lifesaver.
[Ba-El] Radio 3 Sep @ 1:35am 
Ran into a bug where attached baskets/crate/saddlebags can become unavailable as containers. Fixed by removing the container and reattaching it. Unfortunately anything previously in the container is lost when this occurs. Not a common bug, but has happened a few times, first time having it happen to a filled container just now.

Great mod though, very much enjoy having something inbetween a car and walking, couldn't imagine the game without it.
Mersan 1 Sep @ 12:56pm 
not showing up in my mods?quq
aBel.caldwell 31 Aug @ 2:05am 
might be the latest 42.11 update, but i cant seem to attach anything into the bike at all, i even tried it with just the mod, and with a screwdriver in my inventory, but nothing about "upgrading" it has ever popped up with the attachments in my inventory and the bike on the ground
Bregveleg 30 Aug @ 4:45pm 
my character have the saddlebags equipped and cant remove them by any means
Its Over 9000!!! 26 Aug @ 7:17am 
it will be very good, because there are too many bikes, they are a bit unbalanced
RedChili  [author] 26 Aug @ 6:54am 
@Its Over 9000!!! I will add that as a sandbox option

@TheKoris68 Not at the moment no
TheKoris68 25 Aug @ 12:08pm 
does running skill makes it faster?
Its Over 9000!!! 25 Aug @ 2:35am 
I'll be waiting impatiently))) I wish there was an option to configure the number of spawns in the world for both this version and the light one
RedChili  [author] 25 Aug @ 2:12am 
@Fatecheater Technically yes, but it will require a lot of effort because the bike just follows the player movement, so I would have to make a mod that changes player movement to work as a car. It's not something I'm planning on doing, but maybe I can look into it in the future.

@Its Over 9000!!! Unfortunately not, inventory tetris completely hijacks the transfer function and rewrites it which breaks my mod. But I have plans to make it work with the new patch
Its Over 9000!!! 25 Aug @ 1:25am 
this version still doesn't work with tetris inventory?
Sloth-Jaw 24 Aug @ 8:01pm 
Awesome thanks!
Fatecheater 24 Aug @ 7:03pm 
Is it possible to make the bicycle turn like a true vehicle? Right now it turns like a character model.
RedChili  [author] 24 Aug @ 3:10am 
@Sloth-Jaw Yes I will do that, I'm pretty sure I can use the method that extended 3D placement uses to modify the rotation and placement of the bike in certain states without messing up anything for when it's used.
RedChili  [author] 24 Aug @ 3:09am 
@Phil It sounds like you have some mod conflict or something that causes issues with the containers, which bugs out when you uninstall.
This should be a non-issue after the rework, but for now I suggest reading the tips here which could help minimize the missing container issues https://www.reddit.com/r/projectzomboid/comments/1mkso4k/some_tips_regarding_b42_bicycles_mod/
Or use the lite version if it keeps happening
Sloth-Jaw 23 Aug @ 11:54am 
Small request: When the bike has no wheels can the model get flipped upside down? I think this would add some realism. Currently it appears to just float in the air (unless I'm just seeing a bug).
Phil 23 Aug @ 9:52am 
@RedChili
Happened again and I think is related to the attachments vanishing from the bike.

What happened again:
- Attachments vanished from the bike
- Uninstalled them (because they are still installed)
- Installed again

got 12k errors:

function: BikeMsTimer -- file: Bicycle.lua line # 373 | MOD: [B42] Bicycle!
function: OnTick -- file: Bicycle.lua line # 16 | MOD: [B42] Bicycle!

ERROR: General f:136938, t:1755967787808> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: attempted index: setBlockMovement of non-table: null at KahluaThread.tableget(KahluaThread.java:1530).
Stack trace:
NAGA 21 Aug @ 7:37pm 
Hi just thought i'd drop a bug report. I play on the steam deck so ui and windows can be a little screwy sometimes, but after getting your mod the inventory windows started acting funny. they would still technically open, but player inventory would only show the pin and the closing X until dragged to overlap with the world inventory window where they were both visible but only one was able to be interacted with because they were overlapping. there was no error report so i had to find what mod was doing this the old fashioned way by process of elimination (i play with like 100 mods)
Phil 21 Aug @ 8:30am 
@RedChilli

I think what happened was that somehow the attachment vanished from the bike, but still could be uninstalled, I did that and then reinstalled and this happened when I jumped in the bike again.
As I couldn't fix, I dropped other bike hehe
RedChili  [author] 21 Aug @ 6:48am 
@Kxarsis I will make sure to fix that in the patch

@BigFoot Hmm, I will look into the spawn mechanic and make sure that doesn't happen.

@Phil Oh weird, did it happen just once, or every time you try to use the bike? I'll look into that and figure out a better method so it won't happen again

@伊弦OvO That's super weird and should not be possible, something is getting messed up, likely by another mod. Could you try a new save with just the bike mod active and see if it still happens?
伊弦OvO 19 Aug @ 1:37pm 
every bicycle i find miss both two wheels and i cant get on or attach parts,it just shows " the bicycle is missing both two wheels"
Phil 16 Aug @ 12:52pm 
@RedChilli

Just got this in a loop of (5000+) errors:

function: BikeMsTimer -- file: Bicycle.lua line # 373 | MOD: [B42] Bicycle!
function: OnTick -- file: Bicycle.lua line # 16 | MOD: [B42] Bicycle!

ERROR: General f:231053, t:1755373860734> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: attempted index: setBlockMovement of non-table: null at KahluaThread.tableget(KahluaThread.java:1530).
Stack trace:
se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1530)
...
java.base/java.lang.Thread.run(Unknown Source)
LOG : General f:231053, t:1755373860734> -----------------------------------------
STACK TRACE
-----------------------------------------
function: BikeMsTimer -- file: Bicycle.lua line # 373 | MOD: [B42] Bicycle!
BigFoot 15 Aug @ 10:58am 
No idea why but bikes keep spawning in my base's garage whenever I make supply runs and return. Have a stash of bikes now xD
Kxarsis 14 Aug @ 8:51am 
As Sevrick said,

I am POWER leveling through lightfooted & sneaking with this mod, very overpowered but its fun lmao
Wack 13 Aug @ 11:36pm 
This is a phenomenal mode. Stupid Indie Stone should include this mode in vanilla. For example, if you're in a car and the wheels go off or the engine breaks down, you're in a very difficult situation. In that case, you can get out of trouble with your bike. I've been in these tough situations. There was no way out of the quiet roads with only grassy roads. Walking was dangerous and I had to start over eventually. Imagine in real life, if your car broke down, of course you'd use your bike to get out of it. Thank you for making this a good mode.
Sevrick 13 Aug @ 7:14pm 
I found an exploit. If you get on the bike while sneaking it still thinks you are sneaking while riding. You can get your skill up pretty quick that way.
RedChili  [author] 13 Aug @ 6:47am 
@NomNomMaki Oh damn okay, thanks for confirming! I will see if maybe I can make a compat patch for it since a lot of people use that mod.

@Pvc pipe They spawn a bit here and there out in the world, like garages, super markets, sports stores, storage rooms etc.

@Aom Thanks for reporting, I will fix it in the next patch!

@A Dogwork Orange No worries! Thank you for the apology, I appreciate it! Very rare to see in workshop comments haha

@Ki Charn Ro It's just how loud it is for you, the attraction rate for zombies stays the same no matter what you put there
Ki Charn Ro 13 Aug @ 4:41am 
Hey does bike loudness affect how easily zombies hear it or is it just how loud i'll hear it? thanks
A Dogwork Orange 11 Aug @ 5:35pm 
Hey you're right sorry for being a dick i deleted the comment fam, it was mad disrespectful lookin back idk what i was thinking
Ractoor9002 11 Aug @ 8:27am 
Hi, I have come to submit a bug tied to this mod. For starters, I want to say that I really like the job the modder did with bicycle mechanichs, how right it feels in the game's core and how easy it is to implement in the game (great work overall). I did though find a glitch with the bicycle's basket, Clarification: When disassembling an electronic device (such as a hairdryer or digital watch) while the item is still located in the bicycle's container, the item remains intact even though you've gotten the exp form it and one elctronic scrap meaning that you can disassemble it over and over gain (inf. exp and material basically). I discovered this in one of my playthroughs and it has been hard for me ever since to refrain myself from exploiting this bug. Pls fix before my ogre instincts kick fully in!!!!!
Pvc pipe 9 Aug @ 10:38pm 
where do I find the bikes themselves?
NomNomMaki 9 Aug @ 2:40pm 
Seems it was caused by the "Common Sense" mod (id 2875848298). Took that out (which was throwing lua errors) and I can ride the bike again with no issues. :D
RedChili  [author] 8 Aug @ 4:36pm 
@NomNomMaki Ah okay, yeah I had a feeling it would be a mod conflict. You can sort by date updated in your subscribed item, that should help narrow it down a bit at least
NomNomMaki 8 Aug @ 4:10pm 
Yup, it's a mod conflict/ world issue. Tried with a new save but all the same mods as before and this time when I got on the bike it no longer stayed there in the world but was still invisible. New save + only bicycle mod, works perfectly. Now to hunt the problem mod. :Tom:
Thanks for your quick response and the mod, still can't believe it's not in vanilla. :D
If I can find the conflict, I'll update.
NomNomMaki 8 Aug @ 3:52pm 
Yeah it was working brilliantly before, I love it :D (especially with 10years later mod). Had a few days break then came back to 42.11 (from 42.10). I just found another bike (one that I'd previously discovered) and it had the same issue.. will be curious if it also happens to a new bike.

I will also test on a new world, cause my world did go through that conversion to 42.11, and report back. If it works fine with new save, then may be a mod update conflict with the ones I have or a world issue.
RedChili  [author] 8 Aug @ 3:25pm 
@NomNomMaki Was it working fine before B42.11 for you?

It's possible they changed something that affects it. I read through the patch notes and didn't see anything that looked like it would interfere with the bike, and I tested it quickly on a fresh save with no other mods active and it was working.

There could be another mod that updated something when the new patch hit that maybe affects the bike. Do you have the same issue if you start a fresh save with just the bike mod active?
NomNomMaki 8 Aug @ 3:11pm 
Not sure if anyone else is having this issue since the new update, but I went to get on the bike and instead the bike stayed and I ride around with an invisible bike. The only way to get off/out of the bike animation was to go into mod options and put it in my inventory then drop it. But this duplicated the bike model. And did not fix the bug. Tried a few times, now I have 3 bikes. :/ lol
Tomato Jockstrap 8 Aug @ 3:50am 
Great mod thank you:steamthumbsup::steamhappy:
RedChili  [author] 7 Aug @ 12:17pm 
I've got some good news and some bad news about the rework I was planning.

Bad news is that my initial plan won't work due to constraints with the Lua API.

The good news is that I've found a different workaround to make sure that you absolutely will not lose any loot, and it will be much faster to implement.

Basically the reason why loot was lost is because there's invisible containers that actually hold the loot, and these can get left behind in certain circumstances, making it look like your containers are inaccessible.
What I will do is add a check that will teleport those containers to you if they are left behind. This should make it bulletproof.

I will also fix issues like the bike just getting put in inventory sometimes, and sometimes triggering the animation even though the equip action failed
gunslinger 6 Aug @ 1:11am 
Fantastic mod . i pair it with a map move mod i made and its perfect for getting around in tree infested 10 years later. I'm having an issue with it just not working suddenly the character just tries to put it in their inventory when pressing use I'm gonna mess with it and see what the issue could be
RedChili  [author] 6 Aug @ 12:00am 
@moose Thanks bud, glad you like it!

@A Dogwork Orange There's some positives and negatives for either method. For example you can't pack a vehicle into a container/trunk, thats why you have to disassemble bravens bike before storing it.
Mine can't have physics or trailers because that's only possible for vehicles.
Ultimately I decided on this method because it's more flexible for what I want to do.

Btw, it's a bit rude to go on someone's mod page just to say you prefer someone else's mod.
moose 4 Aug @ 12:58pm 
10/10 one of the greatest mods of all time. Currently doing a nomad alcoholic run where I just bike around looking for booze to stay alive. Some of the most fun i've had in Zomboid in a long time.
Smurf∞¸.•'¯) 3 Aug @ 10:28am 
since pz dont have horse now lol
Smurf∞¸.•'¯) 3 Aug @ 10:28am 
hi can author can u make a cow carriage for pz
RedChili  [author] 3 Aug @ 10:16am 
@nicebagdad Try going to mod options and enable the "Allow transfer to inventory" option and then drag it into your player inventory, that should work.

Which modded vehicle was it? I can take a look and see if it's possible to add support for it.
nicebagdad 3 Aug @ 3:53am 
any solution?
nicebagdad 3 Aug @ 3:53am 
my bike is in the trunk of a car, but I can't take it out. Anyway to fix this? its in the inventory, its just not allowing me to remove it in any way. (this is a modded vehicle)