Jump to content

[HowTo] Find out who has a broken squad.xml causing problems


Sandbird

Recommended Posts

It took me a few hours to improvise a way to detect the troublemaker but i finally did it. Basically you need 2 websites and 1 program plus the well know antihack.

- Ultraedit (because of its way of bringing search results)

- http://www.webtoolhub.com/tn561378-list-cleaner.aspx

- http://jura.wi.mit.edu/bioc/tools/compare.php

- The well know antihack cause of the way it logs connected players.

 

You also need to have a few log files with the error, from several restarts....It took me 9 log files to find him.

So how this works....we separate from each log all the players connecting to the server, (since we dont know who is the person that causes the problem)

Then we compare the 1st list with the 2nd list use the results with the 3rd list and so on, removing duplicates...till there is only 1 guy left....This means from all the log files HE is the only common person joining the server...so its 100% him that has the messed up XML.

 

Step 1 (finding all connections)

Open the 1st log file with Ultraedit and press Ctrl+ F (search) for

PlayerConnected: 

then press 'Show Lines' at the bottom right corner. It will bring all occurrences of that line. Right click the popup window and select 'Copy to clipboard', then paste the text to another empty document.
 

Step 2 (formatting the lines)

In the new document with the new text press Ctrl+R (replace) and in the top box put:

??:??:??

At the bottom box leave it empty...we want to remove all the time values and replace them with nothing.

And then from bellow check the "Regular Expressions: Ultraedit" and press 'Replace All'

 

Step 3 (remove duplicates)

Copy paste this whole list into :http://www.webtoolhub.com/tn561378-list-cleaner.aspx and press 'Clean List'

And then copy/patste the list from 'Cleaned Items List' into List 1 of : http://jura.wi.mit.edu/bioc/tools/compare.php

 

Step 4 (get the 1st results)

Now repeat all the above tests for log file 2 and copy paste the final test into List 2 of the last website and press 'Compare Lists'.

In the results page the list under '1 and 2' is the list you want to keep. This is the list that you will be comparing with the next results you got by doing Step1-3 with log_file3.

 

So keep this list aside, then do Step1-3 with log file 3 and then in page: http://jura.wi.mit.edu/bioc/tools/compare.php

Put the list you just kept in List 1 and the new formatted list from logfile3 to List2...and press 'Compare Lists'.

Take the new '1 and 2' list (which should be smaller now in size) and put it aside, then continue with logfile4 etc.

 

After a few times you'll see that the final list is getting smaller and smaller. In the end (i dont know after how many logfiles) you'll have only 1 name in the list.

This guy there is the person that is ALWAYS ingame when the bug happens....which means he is the perpetrator. :)

 

Ban him and problem solved :)

Link to comment
Share on other sites

well check these errors in my server.rpt file  http://dayz.grof.gr/error.txt

These types of errors appear when someone is using a broken xml or (in my case) the hoster that had this guy's XML was showing advertisements instead.

Broken xmls can crash the server....and if someone wants to hurt your server they can do it on purpose.

Till now there was no way knowing who the perpetrator was in a busy server...many players come and go and the error might not fire up immediately. In this case with my error it did...but that was when we were testing with him if he is really 100% the cause of the error.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...