vgstation-coders / vgstation13

Butts
GNU Affero General Public License v3.0
265 stars 544 forks source link

Molotovs thrown by non-mobs aren't logged #17569

Closed DamianX closed 1 year ago

DamianX commented 6 years ago

Steps to reproduce

x4 drinks.dm,1235: Cannot read null.attack_log
  proc name: throw impact (/obj/item/weapon/reagent_containers/food/drinks/throw_impact)
  src: Uncle Git\'s Special Reserve (/obj/item/weapon/reagent_containers/food/drinks/bottle/whiskey)
  src.loc: the floor (202,260,1) (/turf/simulated/floor)
  call stack:
  Uncle Git\'s Special Reserve (/obj/item/weapon/reagent_containers/food/drinks/bottle/whiskey): throw impact(the Dwarven Mining Equipment (/obj/machinery/vending/mining), 3, null)
  Uncle Git\'s Special Reserve (/obj/item/weapon/reagent_containers/food/drinks/bottle/whiskey): hit check(3, null)
  Uncle Git\'s Special Reserve (/obj/item/weapon/reagent_containers/food/drinks/bottle/whiskey): throw at(Slick Packer (/mob/living/carbon/human), 16, 3, 1, 3)
  the Dwarven Mining Equipment (/obj/machinery/vending/mining): throw item()

Specific information for locating

https://github.com/vgstation-coders/vgstation13/blob/209e5e38f38c0cb713ae3ca246f2914f868e0ef9/code/modules/reagents/reagent_containers/food/drinks.dm#L1235

Length of time in which bug has been known to occur

17028

Issue bingo

Probe1 commented 6 years ago

That's hilarious. The vend throwing molotovs.

DamianX commented 6 years ago

@Exxion did you fix this?

Exxion commented 6 years ago

I believe so, if the server has been updated to at least 512.1428 It still won't log what threw it, though. Only what it hit.

This also applies to molotovs thrown by mobs if they hit dense non-mob atoms. Fixing that would require substantial changes to the code for throwing objects.

DamianX commented 6 years ago

Oh, then no. We should be running 1426

nervere commented 1 year ago

Tested, no longer an issue. image