Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Maintenance & Feedback » JJ2+ Issue Tracker

Bug Report Objects don't get deleted in a pit if they hit the ground first

FawFul

JCF Member

Joined: Jun 2007

Posts: 620

FawFul is a forum legendFawFul is a forum legendFawFul is a forum legend

Sep 27, 2026, 12:56 PM
FawFul is offline
Reply With Quote
Objects don't get deleted in a pit if they hit the ground first

Objects like bullet ammo or carrots should normally dissapear if they reach the bottom of a level that has a pit. Sometimes the object gets stuck in the pit and remains there. This seemingly sometimes happens when moving an object again from the ground with TNT, bouncers, toaster or RF. Tested with several ammo/carrots on ezindigo.j2l.
Violet CLM

Administrator

Joined: Mar 2001

Posts: 11,408

Violet CLM has disabled reputation

Nov 25, 2026, 01:52 PM
Violet CLM is offline
Reply With Quote
Thanks for the new discovery! I looked over the code and did some experimenting, and I think this is because the server decides which pickups are in pits. If a client and the server disagree about whether a pickup has fallen to the bottom of the level, only the server's opinion matters.

One easy way to test this is to have the server shoot a pickup down so that it falls onto a solid tile, then have a client join after the server shot the pickup. If the client shoots the pickup down in another direction, so it lands in the pit, the client will see it in the pit, but the server will not, because the server thinks the pickup is still atop that solid tile.

More generally, I could imagine TNT being vague enough to produce motions that aren't 100% perfectly synced? Not sure how bouncers/toaster/RF would come into play here.

Potential options to address this include a) having the server tell every client every time any pickup gets knocked down, or b) letting clients locally decide that pickups have fallen into pits. The second option feels dicey because it would involve the server thinking that the clients had collected those pickups, getting any appropriate benefits from them, including any scripted onObjectHit calls.
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 12:54 PM.