Blockland Forums > Modification Help

RTB Development

Pages: << < (750/889) > >>

Mega-Bear:

I got an RTB-caused glitch yesterday that caused Blockland to freeze up, but I couldn't check my console for it because Blockland wouldn't close. I'm trying to replicate it, though.

Chrono:

It happens when .onLine XML tags don't have a leading >

For example, I tried:

RTBCC_Socket::onLine(7076, "<bo");

And got this:

--- Code: ---   Entering RTBCC_Socket::onLine(7076, <bo)
      Entering XMLParser::bufferData(7077, <bo)

--- End code ---

Then an infinite loop of just this:

--- Code: ---         
         getSubStr(...): error, starting position and desired length must be >= 0: ("<bo",1, -2)
         BackTrace: ->ConsoleEntry::eval->RTBCC_Socket::onLine->XMLParser::bufferData

--- End code ---


I wasn't however, able to get this crash to happen like I normally do. Only when forcing it a line.

Ephialtes:

Yeah, I was pretty lazy with the parser so it always expects valid XML. The server should never send invalid XML so I don't know how this infinite loop is occurring, and the fact that it happens so irregularly is more concerning.

Chrono:

It usually happens right after
AUTHCHECK: name = LAN client -> internet server, auth with server ip

Which is strange... because I turned on the debug and the client doesn't receive any data at that time.

The only XML I got after that was someone leaving general discussion and a ping.

MegaScientifical:

Could it be the game hiccuping and not sending full data? Maybe the next update could just check if there's invalid XML and if it finds any, it'd send an error report to you?

Pages: << < (750/889) > >>

Go to full version