SA-MP Forums Archive
Any way to trace corrupted object? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Any way to trace corrupted object? (/showthread.php?tid=463194)



Any way to trace corrupted object? - SeniorGamer - 10.09.2013

Well there are like 900 objects on my map, is there any way to find out which one is the corrupted one?


Re: Any way to trace corrupted object? - Weponz - 11.09.2013

In which way do you mean corrupt?


Re: Any way to trace corrupted object? - DavidLuango - 11.09.2013

Eh, well go to the object that is corrupted, do /save position, and get your object cords from you GTA directory documents.

Go back to your script - and see if any cords match with it, simply delete it. That is only the way I suppose.


Re: Any way to trace corrupted object? - SeniorGamer - 11.09.2013

@Wepon I got an object thats crashing the map.
@David cannot even hop online due to that object.


I'll look up, they are mostly custom made objects.


Re: Any way to trace corrupted object? - Vince - 11.09.2013

Use the "Wolf fence" algorithm. Comment out half of the objects. If the game still crashes, the problematic object is not in the part you just commented. Keep dividing until object is found.


Re: Any way to trace corrupted object? - RajatPawar - 11.09.2013

Where you create all the objects, set the view/draw distance/stream distance to the lowest value possible (1 or 5) and then roam around the map, going close to objects. Add a snippet under PlayerDisconnect/GamemodeExit or crashdetect to print the co-ordinates of the player when he left. The moment you crash, look for the appropriate object. Am I right in assuming this method works?