HTML errors crashing my pc.

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

HTML errors crashing my pc.

Post 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?
xban1x
L2j Veteran
L2j Veteran
Posts: 1228
Joined: Thu Jan 17, 2013 9:46 am

Re: HTML errors crashing my pc.

Post 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.
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: HTML errors crashing my pc.

Post by JMD »

I see, thanks.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: HTML errors crashing my pc.

Post 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?
Powered by Eclipse 4.34 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.3.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
NosBit
L2j Veteran
L2j Veteran
Posts: 314
Joined: Mon Mar 11, 2013 4:19 pm

Re: HTML errors crashing my pc.

Post by NosBit »

Its not impossible but its something we don't need :P using notepad++ and correct indentation will help you out solve errors.
Image
xban1x
L2j Veteran
L2j Veteran
Posts: 1228
Joined: Thu Jan 17, 2013 9:46 am

Re: HTML errors crashing my pc.

Post 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.
Hyrelius
Posts: 257
Joined: Thu Dec 16, 2010 5:16 am

Re: HTML errors crashing my pc.

Post 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.
Image
I don't mind helping - however: I only do so if I want to.
No support for other server packs than L2J.
Post Reply