Page 1 of 1
Welcome Message Text
Posted: Tue Apr 20, 2010 1:24 am
by kardis
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
Number: 4060
L2JDP Revision
Number: 7241
Before someone jumps to a wrong conclusion, this is not about removing the message about the server being powered by L2J or changing the welcome message that appears in the chat/system window(s).
I did a search and noticed that there were quite a few references to deleted or closed threads regarding this, so I thought I would get that out first. CYA, after all.
Anyhow,
This post is regarding the welcome message and related settings in l2jmods.properties within the config folder.
I've tried a few things with the message, such as trying to use multiple lines via escape character sequences. I was just curious if there was a way to change the color, use multiple lines, or change the size of the text within the actual message setting using inline commands. Or, if I'm guessing correctly, would this functionality have to be added in the server's Java code in the form of a custom contribution? Maybe in the HTML files?
I have to say my skill with Java is not very good; I haven't even looked at it since my Junior year at college. Though I'm still willing to give it a try if I can get pointed in the proper direction and modifying the Java source or HTML is the way to go about it.
Thanks,
kardis
Re: Welcome Message Text
Posted: Tue Apr 20, 2010 1:35 am
by ThePhoenixBird
Hi there, you could try instead the option in General.Properties called ShowServerNews = True
It activates a popup window on logon that shows the content of the file in "data/html/servnews.htm" you can use htm code (hex colours) on that one, check the quests htm files to get examples.
Re: Welcome Message Text
Posted: Tue Apr 20, 2010 2:02 am
by hope
quick question why have the config to turn that option off and it does not work was always meaning to ask that
Re: Welcome Message Text
Posted: Tue Apr 20, 2010 4:11 am
by kardis
Thank you Phoenix. That was pretty darn close to what I was looking for. After I play around with it and provided I can make the free time, I could write a short guide about using it on the wiki if someone could find that information useful at all.
I still may have a try at modifying the across-the-screen login message just for fun. Maybe try to expose some functionality in the form of changing the color and size since the idea is now under my skin.
Thanks,
kardis
Re: Welcome Message Text
Posted: Tue Apr 20, 2010 4:26 am
by janiii
try a "#" for new line character. saw that somewhere written on forum (from jurchiks), but did not try it.
there is no way to set color on the screen message :/
Re: Welcome Message Text
Posted: Tue Apr 20, 2010 1:46 pm
by jurchiks
hope wrote:quick question why have the config to turn that option off and it does not work was always meaning to ask that
if you mean:
# If False, the license (after the login) will not be shown.
# Default: True
ShowLicence = False
then it's for client licence, not server.
Ontopic: yes, as janiii quoted me, using ExShowScreenMessage (text#text) # makes a new line, while /n makes the space wider, I prefer #
Code: Select all
public ExShowScreenMessage (int type, int messageId, int position, int unk1, int size, int unk2, int unk3,boolean showEffect, int time,int unk4, String text) { _type = type; _sysMessageId = messageId; _unk1 = unk1; _unk2 = unk2; _unk3 = unk3; _unk4 = unk4; _position = position; _text = text; _time = time; _size = size; _effect = showEffect; } @Override public String getType() { return "[S]FE:39 ExShowScreenMessage"; } @Override protected void writeImpl() { writeC(0xfe); writeH(0x39); writeD(_type); // 0 - system messages, 1 - your defined text writeD(_sysMessageId); // system message id (_type must be 0 otherwise no effect) writeD(_position); // message position writeD(_unk1); // ? writeD(_size); // font size 0 - normal, 1 - small writeD(_unk2); // ? writeD(_unk3); // ? writeD(_effect == true ? 1 : 0); // upper effect (0 - disabled, 1 enabled) - _position must be 2 (center) otherwise no effect writeD(_time); // time writeD(_unk4); // ? writeS(_text); // your text (_type must be 1, otherwise no effect) }}
as you can see, it allows positioning and effects, haven't tested them though, but you're free to try

Re: Welcome Message Text
Posted: Tue Apr 20, 2010 1:48 pm
by jurchiks
hope wrote:quick question why have the config to turn that option off and it does not work was always meaning to ask that
if you mean:
# If False, the license (after the login) will not be shown.
# Default: True
ShowLicence = False
then it's for client licence, not server.
Ontopic: yes, as janiii quoted me, using ExShowScreenMessage (text#text) # makes a new line, while /n makes the space wider, I prefer #
Code: Select all
public ExShowScreenMessage (int type, int messageId, int position, int unk1, int size, int unk2, int unk3,boolean showEffect, int time,int unk4, String text) { _type = type; _sysMessageId = messageId; _unk1 = unk1; _unk2 = unk2; _unk3 = unk3; _unk4 = unk4; _position = position; _text = text; _time = time; _size = size; _effect = showEffect; } @Override public String getType() { return "[S]FE:39 ExShowScreenMessage"; } @Override protected void writeImpl() { writeC(0xfe); writeH(0x39); writeD(_type); // 0 - system messages, 1 - your defined text writeD(_sysMessageId); // system message id (_type must be 0 otherwise no effect) writeD(_position); // message position writeD(_unk1); // ? writeD(_size); // font size 0 - normal, 1 - small writeD(_unk2); // ? writeD(_unk3); // ? writeD(_effect == true ? 1 : 0); // upper effect (0 - disabled, 1 enabled) - _position must be 2 (center) otherwise no effect writeD(_time); // time writeD(_unk4); // ? writeS(_text); // your text (_type must be 1, otherwise no effect) }}
as you can see, it allows positioning and effects, haven't tested them though, but you're free to try

Re: Welcome Message Text
Posted: Tue Apr 20, 2010 2:02 pm
by hope
jurchiks wrote:hope wrote:quick question why have the config to turn that option off and it does not work was always meaning to ask that
if you mean:
# If False, the license (after the login) will not be shown.
# Default: True
ShowLicence = False
then it's for client licence, not server.
no this is not what i mean the message you get in game in the system message that alot where asking to remove it the setting does not work to turn it off
Re: Welcome Message Text
Posted: Tue Apr 20, 2010 2:47 pm
by jurchiks
WHAT setting??
Re: Welcome Message Text
Posted: Tue Apr 20, 2010 7:08 pm
by hope
this one
Re: Welcome Message Text
Posted: Tue Apr 20, 2010 9:00 pm
by jurchiks
there is no setting to disable l2j credits, you can only disable display of revisions in config
Re: Welcome Message Text
Posted: Tue Apr 20, 2010 9:51 pm
by hope
looked for a while cant remember where the setting is
Re: Welcome Message Text
Posted: Thu Apr 22, 2010 4:24 am
by denser
nice thread, i make mod using this features, later share it
