Page 1 of 1

HTML errors crashing my pc.

Posted: Thu Feb 13, 2014 8:39 am
by JMD
OK this has been happening as long as i use l2j. When for example im making html tables and theres an error in it (mostly typo) when i try ingame to open that html window, my hard drive goes into 100% usage and everything stucks, making me to hard reset my pc. Can you do something about it? Like when its happening instead of the pc crashing to get an error that the html code is wrong?

Re: HTML errors crashing my pc.

Posted: Thu Feb 13, 2014 8:48 am
by xban1x
For that you would need a HTML checker on server side which is impossible. Best option get a good HTML plugin for Eclipse which will show you errors.

Re: HTML errors crashing my pc.

Posted: Thu Feb 13, 2014 9:03 am
by JMD
I see, thanks.

Re: HTML errors crashing my pc.

Posted: Thu Feb 13, 2014 11:31 am
by Zoey76
xban1x wrote:For that you would need a HTML checker on server side which is impossible. Best option get a good HTML plugin for Eclipse which will show you errors.
Why impossible?

Re: HTML errors crashing my pc.

Posted: Thu Feb 13, 2014 11:48 am
by NosBit
Its not impossible but its something we don't need :P using notepad++ and correct indentation will help you out solve errors.

Re: HTML errors crashing my pc.

Posted: Thu Feb 13, 2014 4:45 pm
by xban1x
Zoey76 wrote:
xban1x wrote:For that you would need a HTML checker on server side which is impossible. Best option get a good HTML plugin for Eclipse which will show you errors.
Why impossible?
Nos wrote:Its not impossible but its something we don't need
That's what i meant.

Re: HTML errors crashing my pc.

Posted: Sun Feb 16, 2014 7:53 pm
by Hyrelius
Actually I do think I have enough knowledge about L2 HTML and I could write such a checker I believe.

However: it's not only invalid HTML, but also if you attempt to display too much content at once. I know there should've been some kind of checker whether the resulting string actually fits into the packet, but for some reason that check did not work for me.

Further more there are a few "hidden" problems - like the fact, that "action"-attribute of a or button is not allowed to exceed 255 characters (I think it's 255 and not 256). Also having a table with rows, but not cells, will cause a client-exception, because apparently empty rows are not supported.

I could write a helper class or a code it straight into NpcHtmlMessage. However: this isn't a good idea, because most of the restrictions (except the packet size limit) apply to communityboard (ShowBoard) as well.