BadgerCode / TTT-Rollermine

A rollermine weapon for traitors.
0 stars 0 forks source link

Script error #2

Open mexikoedi opened 6 months ago

mexikoedi commented 6 months ago

I played TTT2 on my dedicated server and got a script error from the rollermine. Seems that a check is missing or something else? Maybe because of a Garry's Mod or TTT2 update? Here:

[TTT Rollermine Traitor Weapon] gamemodes/terrortown/entities/weapons/weapon_ttt_rollermine.lua:148: bad argument #1 to 'GetBonePosition' (number expected, got no value)
  1. GetBonePosition - [C]:-1
   2. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_rollermine.lua:148
BadgerCode commented 6 months ago

Heyo!

Do you know when this happens? I.e. is it when the rollermine is thrown, collides with a player, or some other time?

mexikoedi commented 6 months ago

Heyo!

Do you know when this happens? I.e. is it when the rollermine is thrown, collides with a player, or some other time?

I don't know exactly. Someone else used it. It spammed the same error message multiple times in the server console at the same time. I think it happened when the rollermine was thrown. Maybe the player died at the same time he throwed it?

BadgerCode commented 6 months ago

Are you using custom player models? The area of the code causing the problem is responsible for drawing the view model.

I should be able to add a quick fix, by trying to render the view model somewhere else if it can't find their right hand.

mexikoedi commented 6 months ago

Are you using custom player models? The area of the code causing the problem is responsible for drawing the view model.

I should be able to add a quick fix, by trying to render the view model somewhere else if it can't find their right hand.

We don't use custom player models. We use the default player models which can be selected in TTT2 in the F1 menu. Each round a new random player model and each of them is a CS:S player model.

mexikoedi commented 3 months ago

Just wanted to ask about the current state of this issue. Do you need more information?