Problem with crash
#1

Hi.On my gamemode all players got crash exception on some places.I searched and I think the problem is with an invalid object id but I don't know how to find it...It's not always the same place,after server restart place of exception changes...Can someone help me?Is there any plugin that tests is an object invalid.
Thanks.
Reply
#2

Probably a vehicle with an invalid mod. Post the opcodes here it will help you solve the issue.
Reply
#3

It's a script of 100k lines i just can't paste it here anyway,you're right.Vehicle mod parts maybe causes the crash but how can I find that?
Reply
#4

Hey, try using the Crash Detect plugin.

https://sampforum.blast.hk/showthread.php?tid=262796
Reply
#5

Quote:
Originally Posted by Suttix
View Post
It's a script of 100k lines i just can't paste it here anyway,you're right.Vehicle mod parts maybe causes the crash but how can I find that?
Well if the players are crashing they are receiving some opcodes in their chat.
Reply
#6

Quote:
Originally Posted by Runn3R
View Post
Well if the players are crashing they are receiving some opcodes in their chat.
Oh my mistake, I read the post wrong. Surely it must be some sort of an invalid modification?
Reply
#7

I'm getting Exception 0xC0000005 at 0x007F0BF7
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=202904

Quote:
Originally Posted by Kalcor
View Post
The problem is with modded cars ie AddVehicleComponent. I can't determine exactly what mod although it's likely the server's script is adding car components to a vehicle that doesn't accept that component type. I suggest you log the OnVehicleMod callback and try to figure out what's going on.
Reply
#9

I don't have any codes at OnPlayerMod,there's just a retur 1; :P What should I put there to fix this issue?
Reply
#10

You should probably log the parameters from the function and the vehicle model. Something like:

Code:
public OnVehicleMod(playerid, vehicleid, componentid)
{
   printf("Player: %i, Vehicle: %i, Model: %i, Component: %i", playerid, vehicleid, GetVehicleModel(vehicleid), componentid);
   return 1;
}
And than see if some wrong components are added to a model which does not support it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)