Recommended Posts

Hello everyone.

 

I am wondering if it is possible to build a new HTML system for L2J packs in general, and more specifically for Interlude Servers, where it will be having a proper support for CSS including animations, coloring buttons, borders on buttons, margins, paddings and background images.

 

The reason I am asking is because whenever I have to write HTML, it is a pain in my eyes seen such an old code been used, text keep appearing on side of a page, which pisses me off and I work with IntelliJ, which cries all the time that font and center tags are out of date.

 

Will the client support or understand the tags? What does it take to make something like this in your opinion?

Share this post


Link to post
Share on other sites

server doesn't matter here, client handle html displaying

possible in GOD+ clients as these ship with embed chromium support and ingame browser window, in older trash clients it would require lot of work with client extending so can be safely assumed to never happen.

Share this post


Link to post
Share on other sites

True, but on the other hand, you could make a few manipulations to the Java code to enable a few, at least css rules there, such as padding

Share this post


Link to post
Share on other sites

Adding the rules isn't hard but it's pointless. I did something like this a while ago and I even went as far as creating a component based solution similar to React. The usefulness of it is limited to how many htmls you need. If you make something super modular and you share it then, yeah, you can possibly help a few people but I don't know if it's worth the effort.

 

I would personally try to make a list of what's acceptable and what's not in the L2 flavoured HTML and make a small desktop app or webapp that allows you to build the HTML with drag and drop support and sliders. It would work since the widths and heights are pixel based but it would take some time to figure out what the L2 HTML allows and what it doesn't.

 

This isn't something new, it has been done in the past and has been shared in this forum:

Old topics that have expired links:

https://maxcheaters.com/topic/12310-sharel2-html-editor/

https://maxcheaters.com/topic/76985-sharel2-html-editor/

 

You can still download it here: https://drive.google.com/file/d/0B45HueHe36FkXy11bUtIZC1SYWM/view

 

It looked like this: Image result for l2 html editor

  • Thanks 1

Share this post


Link to post
Share on other sites
16 hours ago, xFranky said:

True, but on the other hand, you could make a few manipulations to the Java code to enable a few, at least css rules there, such as padding

you need to realize L2 client doesn't implement real html rendering you know from web dev. Koreans simply picked something known and  simple to build own parser, which has like 20 or so common tags and few hardcoded properties. With use of client textures and occasional updates that's all they needed. There is no DOM or any tree manipulations thus no CSS. If <font> tag happens to have "color" property that's only because L2 devs needed it there at some point.

There are people who mastered use of whats L2 can display, but that comes with lot of ugly hacks and trial/error, whole thing is simply limited as fuck :D

Share this post


Link to post
Share on other sites

I see. Well, if my vision becomes blurry, I will wear glasses. You might be having a point there. I will then have to master the html of l2. I even had a thought myself based on your comments, and it is not worthy wasting my time doing something like that.

Share this post


Link to post
Share on other sites

Web browser available in GOD clients is slow comparing to ordinary browser like Chrome, also as far as i remember no feedback of what has been clicked is given to interface.u, so it's only useful if you want to display some real html page.

The only way to do what you wish is to edit nwindow.dll.

  • Upvote 1

Share this post


Link to post
Share on other sites
5 hours ago, Elfocrash said:

I'm wondering how hard it would be to integrate a chromium browser in IL or H5

You won't know until you try! So go on an give it a go. We all believe in you! Once you are done, text me everything I need on PM :)

Edited by xFranky

Share this post


Link to post
Share on other sites
10 hours ago, xFranky said:

You won't know until you try! So go on an give it a go. We all believe in you! Once you are done, text me everything I need on PM :)

Nah I'm definitely not gonna waste my time with client side stuff. I'm sure that there are way more capable people that me on that front

Share this post


Link to post
Share on other sites
7 hours ago, Elfocrash said:

Nah I'm definitely not gonna waste my time with client side stuff. I'm sure that there are way more capable people that me on that front

Looking for capable people in PM!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.