fodev.net

Other => FOnline:2238 Forum => Archives => Tools and Modifications => Topic started by: xpath on March 04, 2010, 08:46:00 pm

Title: Name Colorizing editor by xpath
Post by: xpath on March 04, 2010, 08:46:00 pm
Hello FOnline community.

Recently i wrote the tool for editing of name colorizing file. It requires Java 6 to be installed on your PC. I tried to implement various features which can be helpful during editing.

There are English and Russian language versions.

Here are some shots of interface.

(http://img72.imageshack.us/img72/2575/screenq.th.jpg) (http://img72.imageshack.us/i/screenq.jpg/)
(http://img522.imageshack.us/img522/3923/screenpj.th.png) (http://img522.imageshack.us/i/screenpj.png/)

Update 20100312 Added functionality to extract nicknames from the FOnline log files (saved by F2 during the game). You can search in more than one file at the time. Menu Tools->Extract from Lof File. There are 2 options for searching: All Names - will search for all nicknames, Absent Names - wll search only nicknames which absent in the currently opened name colorizing file. Current pattern for name extraction in reqular expression language is:
Code: [Select]
^\\d{2}:\\d{2}:\\d{2} • (Oops! |Е мое! |Эге! |Эх-ма! |Эх! )?(Была? ранена? )?([^:?]{4,12})(:|, а не| получил| перенес| критич| промазал| промахнул| ранен!(ие)| was hit| was crit| missed)If you know how to improve it let me know. I don't have too much english logs for testing so maybe some situations are missing.
The lack of the pattern is that NPC names can be parsed also as well as players names.

Update 20100615 Added requested feature to download and join NameColorizing files from the WEB. Program understands google docs link and direct links. Pattern for google docs is http://docs.google.com/Doc?docid={docId}&... To download and join few files at the time add each link to the new line of the URLs opening dialog. You can add content from the web to the already existing NameColorizing. Just open necessary file then use menu Tools->'Add Entries from URLs'.

Default encoding for the files downloaded from the WEB is UTF-8. If you need another one you can modify main.properties inside jar the field called defaultUrlFileEncoding.

Enjoy it!
http://www.fonline.ru/forum/attachment.php?attachmentid=6388&d=1276623390
http://hotfile.com/dl/48590883/a436597/ColorizingEditor_v20100615.zip.html
http://netload.in/dateiuGSf2Yad7t/ColorizingEditor_v20100615.zip.htm
http://www.megaupload.com/?d=L12JIO06
Title: Re: Name Colorizing editor by xpath
Post by: Resp on March 04, 2010, 09:02:58 pm
it's realy good
thx very match
i download now and will bee testing

круто!
спасибо
буду пробовать

Title: Re: Name Colorizing editor by xpath
Post by: Gorlak on March 04, 2010, 09:49:48 pm
Wow man, thats really nice. thanks
Title: Re: Name Colorizing editor by xpath
Post by: Ghosthack on March 04, 2010, 10:11:29 pm
Looks nice, I thought about making something like this before, looks like you've saved me the trouble :)
Title: Re: Name Colorizing editor by xpath
Post by: APOFISKO on March 04, 2010, 10:16:56 pm
nice JOB !  :D
Title: Re: Name Colorizing editor by xpath
Post by: Gletcherniy on March 05, 2010, 04:26:58 am
WoW!
Офигенчик! Спасибо!
Title: Re: Name Colorizing editor by xpath
Post by: gordulan on March 05, 2010, 09:11:15 am
hmm, it seems that the rapidshit link is down, you may want to remove it.
the link, not the mod, the mod is great, thanks.
Title: Re: Name Colorizing editor by xpath
Post by: Resp on March 05, 2010, 12:24:06 pm
hmm, it seems that the rapidshit link is down, you may want to remove it.
the link, not the mod, the mod is great, thanks.
...
Quote
This file is neither allocated to a Premium Account, or a Collector's Account, and can therefore only be downloaded 10 times.

This limit is reached.

To download this file, the uploader either needs to transfer this file into his/her Collector's Account, or upload the file again. The file can later be moved to a Collector's Account. The uploader just needs to click the delete link of the file to get further information.
Title: Re: Name Colorizing editor by xpath
Post by: xpath on March 05, 2010, 12:44:36 pm
hmm, it seems that the rapidshit link is down, you may want to remove it.
the link, not the mod, the mod is great, thanks.
Thanks, i've removed the invalid link and added 2 new mirrors to megaupload and netload.

Btw, if anybody wants to localize the tool to its native language all you need is to translate file resources/lange/dictionary_ru_RU.properties which is inside jar to your own language and save it with the specified locale prefix, for example dictionary_fr_FR.properties for french. Then you need in main.properties file specify defaultLocale to fr_FR.
Title: Re: Name Colorizing editor by xpath
Post by: Izual on March 06, 2010, 09:33:29 am
Looks very nice and useful. Congratulations.
Title: Re: Name Colorizing editor by xpath
Post by: xpath on March 12, 2010, 12:05:52 pm
Update 20100312
Title: Re: Name Colorizing editor by xpath
Post by: Candy on March 13, 2010, 09:20:48 pm
wow, tested...REALLY NICE!
Title: Re: Name Colorizing editor by xpath
Post by: Resp on April 04, 2010, 03:07:50 pm
can i use url-files ?
прикрути пожалуйста скачку с гугл-документов как тут http://fodev.net/forum/index.php?topic=685.0
чтобы можно было объёединять файлы
Title: Re: Name Colorizing editor by xpath
Post by: xpath on April 04, 2010, 07:38:08 pm
can i use url-files ?
прикрути пожалуйста скачку с гугл-документов как тут http://fodev.net/forum/index.php?topic=685.0
чтобы можно было объёединять файлы
No, you can't. But you can use advanced copy/paste mode. Just copy content (or part of the content) of other name colorizing file to text box of the program (which is on the top). Select insertion mode to other in the selection box and press add entries button. It will parse content in the text box as the content of colorizing file and will add parsed records to the table below (after selected row). Also it will parse all colors and will add it to corresponding comboboxes.

I don't see necessarity to add downloading of the files from google docs because it is not commonly used feature how i think. And this operation can be easily done by copy/paste in the program.

Не вижу необходимости в этом. Практически не знаком ни с кем, кто юзает для шаринга файлов колорайзинга google docs.
Title: Re: Name Colorizing editor by xpath
Post by: jan0s1k on April 18, 2010, 08:50:43 pm
Code: [Select]
Error occured: Color parameter outside of expected range: Green Blueany idea? ;] maybe u add in next version sth like "what line is bad" ? ;D
Title: Re: Name Colorizing editor by xpath
Post by: Sarakin on April 18, 2010, 11:37:57 pm
Great tool indeed, it just needs something for filtering contours/colors when adding new entries so that only names will be added. I mean, when you copy all names from someone´s NC, you need to manualy remove txt about contours/colors and > mark and it becomes annoying :/
Title: Re: Name Colorizing editor by xpath
Post by: xpath on April 19, 2010, 12:42:09 pm
Code: [Select]
Error occured: Color parameter outside of expected range: Green Blueany idea? ;] maybe u add in next version sth like "what line is bad" ? ;D
Strange error, seems that you had some wrong colors already entered in the namecolorizing (some values for R,G,B more than 255).
Title: Re: Name Colorizing editor by xpath
Post by: xpath on April 19, 2010, 12:43:47 pm
Great tool indeed, it just needs something for filtering contours/colors when adding new entries so that only names will be added. I mean, when you copy all names from someone´s NC, you need to manualy remove txt about contours/colors and > mark and it becomes annoying :/
You can use insertion type other (choose it from combobox type). In this case you don't have to remove > and @ symbols such as lines in the textarea will be parsed as the content of namecolorizing file when you will press Add Entries button. Then you can select newly added records, specify necessary name and contour colors in the comboboxes and then press button "Apply Colors for Selection"
Title: Re: Name Colorizing editor by xpath
Post by: Exodusek on June 06, 2010, 11:39:11 am
I create exe from jar files if any of man has problem with java2 :]

Link for EN - http://exodus.neostrada.pl/ColorizingEditor_en.exe (http://exodus.neostrada.pl/ColorizingEditor_en.exe)
Link fo RUS - http://exodus.neostrada.pl/ColorizingEditor_rus.exe (http://exodus.neostrada.pl/ColorizingEditor_rus.exe)

Great job this tool is very helpful


:)

Regards
Title: Re: Name Colorizing editor by xpath
Post by: raynor009 on June 10, 2010, 03:17:25 pm
Make it open source and il help with your problems.
Title: Re: Name Colorizing editor by xpath
Post by: xpath on June 11, 2010, 10:23:47 am
Make it open source and il help with your problems.
Which problems? It is java, you can easily decompile classes.
Title: Re: Name Colorizing editor by xpath
Post by: Resp on June 11, 2010, 07:40:09 pm
need to make the union of several lists.
just a loop going through a line containing URLs
do not compare, downloading one after the other lists, and add the following of each to the end colorize-list

нужно сделать объединение из нескольких списков.
просто в цикле перебирать строчки содержащие урлы, и ничего не сравнивая, скачивая один за другим списки, добавлять каждый следующий в конец колорайз-листа
Title: Re: Name Colorizing editor by xpath
Post by: xpath on June 12, 2010, 12:50:04 pm
need to make the union of several lists.
just a loop going through a line containing URLs
do not compare, downloading one after the other lists, and add the following of each to the end colorize-list

нужно сделать объединение из нескольких списков.
просто в цикле перебирать строчки содержащие урлы, и ничего не сравнивая, скачивая один за другим списки, добавлять каждый следующий в конец колорайз-листа
Please give me some links for tests. Maybe little later i will provide this feature.
Title: Re: Name Colorizing editor by xpath
Post by: Resp on June 12, 2010, 07:34:13 pm
Please give me some links for tests. Maybe little later i will provide this feature.
send in private
Title: Re: Name Colorizing editor by xpath
Post by: xpath on June 15, 2010, 07:42:41 pm
Update 20100615
Title: Re: Name Colorizing editor by xpath
Post by: Resp on June 16, 2010, 06:47:33 pm
Exodusek, tell please, how to make self-executable?