Phil25 / RTD

Roll The Dice SourceMod plugin for Team Fortress 2
GNU General Public License v3.0
55 stars 20 forks source link

mercdietwice: Error in console #117

Open naydef opened 5 months ago

naydef commented 5 months ago

Bug description

L 05/05/2024 - 13:29:24: [SM] Exception reported: Property "m_iItemDefinitionIndex" not found (entity 0/worldspawn)
L 05/05/2024 - 13:29:24: [SM] Blaming: Gameplay/RTD/rtd.smx
L 05/05/2024 - 13:29:24: [SM] Call stack trace:
L 05/05/2024 - 13:29:24: [SM]   [0] GetEntProp
L 05/05/2024 - 13:29:24: [SM]   [1] Line 176, rtd/perks/mercsdietwice.sp::MercsDieTwice_SendDeathEvent
L 05/05/2024 - 13:29:24: [SM]   [2] Line 119, rtd/perks/mercsdietwice.sp::MercsDieTwice_FakeDeath
L 05/05/2024 - 13:29:24: [SM]   [3] Line 79, rtd/perks/mercsdietwice.sp::MercsDieTwice_OnTakeDamage

We don't run the latest RTD version, but I guess this error will still appear...

Phil25 commented 5 months ago

That's interesting, it appears world can be used as a weapon sometimes :P

Do you have any context on why this might be? Maybe a specific map on which this happens? I don't think it would be fall damage since the player is frozen in place.

The fix shouldn't be difficult, but I'm wondering if I'm missing some more edge cases.

naydef commented 5 months ago

We're running FF2 Rewrite, the error appeared on map vsh_moving_in_v4 and I think this was me who rolled this effect as a boss. The map has a fireplace which does env damage, but I don't think I got hurt there (at least If I remember right).

Another possibility is some of our custom attributes plugins doing something funny. I really need to check the recordings before I can say for sure what happened.