fodev.net
15.08.2009 - 23.06.2013
"Wasteland is harsh"
Home Forum Help Login Register
  • November 23, 2024, 08:10:37 pm
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Play WikiBoy BugTracker Developer's blog
Pages: [1] 2

Author Topic: Name Colorizing editor by xpath  (Read 13522 times)

Name Colorizing editor 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.




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
« Last Edit: June 15, 2010, 07:42:13 pm by xpath »
Logged

Resp

  • I'll shoot second =]
    • spnet
  • Offline
Re: Name Colorizing editor by xpath
« Reply #1 on: March 04, 2010, 09:02:58 pm »

it's realy good
thx very match
i download now and will bee testing

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

Logged
I'm sorry for my poor English. Please correct me, I will learn
"Hell," said Tanner. "That's my name...." (с)
http://wasteland.spb.su/fo/?s=2&t=4
Re: Name Colorizing editor by xpath
« Reply #2 on: March 04, 2010, 09:49:48 pm »

Wow man, thats really nice. thanks
Logged

Ghosthack

  • Rotator
  • Bytecruncher
  • Offline
Re: Name Colorizing editor by xpath
« Reply #3 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 :)
Logged
Re: Name Colorizing editor by xpath
« Reply #4 on: March 04, 2010, 10:16:56 pm »

nice JOB !  :D
Logged

Gang.madbrahmin.cz
Apofisko a Kopco :) Správna dvojka :)
Re: Name Colorizing editor by xpath
« Reply #5 on: March 05, 2010, 04:26:58 am »

WoW!
Офигенчик! Спасибо!
Logged

gordulan

  • General Animosity
  • Offline
Re: Name Colorizing editor by xpath
« Reply #6 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.
Logged
 
http://tf-2.fr/ach.php?a=Bend Over, Boyo II&b=Shoot 150 people as they are running away from you... In the arse&c=56&d=150&e=1703&f=1

Resp

  • I'll shoot second =]
    • spnet
  • Offline
Re: Name Colorizing editor by xpath
« Reply #7 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.
Logged
I'm sorry for my poor English. Please correct me, I will learn
"Hell," said Tanner. "That's my name...." (с)
http://wasteland.spb.su/fo/?s=2&t=4
Re: Name Colorizing editor by xpath
« Reply #8 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.
« Last Edit: March 05, 2010, 12:48:16 pm by xpath »
Logged

Izual

  • Roaming entertainer.
    • Youtube
  • Offline
Re: Name Colorizing editor by xpath
« Reply #9 on: March 06, 2010, 09:33:29 am »

Looks very nice and useful. Congratulations.
Logged
My Youtube channel.

"Another problem is that we listen to the vocal players, who in many cases are wrong-headed."
- J.E. Sawyer
Re: Name Colorizing editor by xpath
« Reply #10 on: March 12, 2010, 12:05:52 pm »

Update 20100312
Logged
Re: Name Colorizing editor by xpath
« Reply #11 on: March 13, 2010, 09:20:48 pm »

wow, tested...REALLY NICE!
Logged

Resp

  • I'll shoot second =]
    • spnet
  • Offline
Re: Name Colorizing editor by xpath
« Reply #12 on: April 04, 2010, 03:07:50 pm »

can i use url-files ?
прикрути пожалуйста скачку с гугл-документов как тут http://fodev.net/forum/index.php?topic=685.0
чтобы можно было объёединять файлы
Logged
I'm sorry for my poor English. Please correct me, I will learn
"Hell," said Tanner. "That's my name...." (с)
http://wasteland.spb.su/fo/?s=2&t=4
Re: Name Colorizing editor by xpath
« Reply #13 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.
Logged

jan0s1k

  • If it bleeds we can kill it...
    • Chosen Soldiers
  • Offline
Re: Name Colorizing editor by xpath
« Reply #14 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
Logged

Pages: [1] 2
 

Page created in 0.075 seconds with 23 queries.