fodev.net

Other => FOnline:2238 Forum => Archives => Tools and Modifications => Topic started by: Cpt.Rookie on March 14, 2010, 05:28:34 pm

Title: Automatic updater of NameColorizing.txt
Post by: Cpt.Rookie on March 14, 2010, 05:28:34 pm
Are you a member of some bigger gang?
Is your nameColorizing file constantly updated?
Are you all bored by neverending manual updating?
Do you want russian nicks to be colored correctly in game?

Then here comes solution. Program that will update your local namecolorizing by clicking on one button. Based on google docs, where one member creates a document and provides its ID to other.

1. Download & Run
Packed program can be downloaded at www.rookie.name/sw/fonline/NCH.zip
Download it and extract content of archive. Run extracted .exe file.
Note: some people reported that they're unable to write any data to program. In that case, right click on exe file and via "Properties", choose tab "Compatibility", tick  "Run this program in compatibility mode for" and choose "Windows NT 4.0, (Service Pack 5)".
It is weird, but at least it seems that it is working. In case that you don't have any issues with setting data in program, you, of course, don't have to do that.

2.0 What to do if I am the one who is maintaining NC for our gang
The only thing you have to do is make an account at gmail.com. Therefore you'll also get account at google docs.  Create a new document there, copy content of your local namecolorizing there and save. If you already have russian nicks in your NC, read notes below. Close the document, on the main page of Google docs tick the checkbox beside just created document, click "Share", "Get the link to share", check the only "Allow anyone with the link to view (no sign-in required)" is checked and copy ID of document. For example from sharing link
Code: [Select]
https://spreadsheets.google.com/ccc?key=0As8mVeo83xLJdFEyWlFGWC10QUR4YVVYNnM4RXFyOFE&hl=enthe ID will be
Code: [Select]
0As8mVeo83xLJdFEyWlFGWC10QUR4YVVYNnM4RXFyOFE
2.1 GUI & Settings

(http://img54.imageshack.us/img54/8394/nch21.th.png) (http://img54.imageshack.us/i/nch21.png/)

Id of google doc - the ID that will provide NC maintainer will be copied there. Nothing else.
local NC file - path to your local nameColorizing file. This file must exist.
check for updates - if local NC file differes from that on google docs, will be updated after clicking on this button
automatically check for updates every - I guess that this is clear. However, the lower number in minutes is 240 to prevent spam of GD.
save settings - don't forget to save settings

(http://img215.imageshack.us/img215/3228/nch22.th.png) (http://img215.imageshack.us/i/nch22.png/)
The second tab basically isn't related to updating of NC, it will just convert documents from Windows-1251 encoding to UTF-8 (and back). It is useful if you (for example) need to get human-readable russian nicks from log file (F2).

I guess that GUI is pretty self-explanatory, so just one note - text in combo box beside "browse" button determines encoding of source file. Therefore if you want to get russian nicks from log file, choose "cp1251" there (same as on picture).

3. Notes
If you already have russian nicks in your local NC file and you want to start using GD, you have to convert your local NC  to UTF-8, open, copy content and paste it to the GD document. Basically - content that you want to copy to GD document must be human-readable (even cyrillic).
If you're running Russian version of Windows (or if you have set Russian as language for non-unicode programs) you can copy content of NC directly.

If there will be any problems with newly downloaded NC, there is always made copy of old one in <path_to_fonline>\NC_backup\<year-month-day-hour-minute-second\NameColorizing.txt

And some security info about executable file:
Code: [Select]
File size: 71517 bytes
MD5...: 37c36cc38d25174da520cba0f15ae513
SHA1..: 99a0aade9f937ff17ae9bd9bf725ac88ed429161
SHA256: ed2f5c3f9b3911c9634f8cd1a39f25c77a91df19da1ee7f34c73c67c1b5ef070
I was checking it for viruses at http://www.virustotal.com with score 1/42 (Symantec reports Suspicious.Insight). If you believe that this is not false alarm, DO NOT DOWNLOAD AND/OR RUN THIS SW!

And as usual - if you have any recommendations or bug-reports, feel free to write it there or contact me via mail/jabber cpt.rookie at gmail dot com
Title: Re: Automatic updater of NameColorizing.txt
Post by: Candy on March 14, 2010, 10:53:27 pm
this is great news, thanks for the program. Im going to test it now, nice work
Title: Re: Automatic updater of NameColorizing.txt
Post by: Resp on March 23, 2010, 01:42:43 pm
Very useful.
I'll try to test it.

thx. There works fine
Title: Re: Automatic updater of NameColorizing.txt
Post by: Resp on March 27, 2010, 11:12:05 pm
suggestion
i would like to see the updating list with several addresses and then combine into a single file. with at least three.
also wants able minimizing to tray while auto-update checking.
Title: Re: Automatic updater of NameColorizing.txt
Post by: Cpt.Rookie on March 28, 2010, 01:29:20 pm
Thought about some sort of "merger" was on my mind too, it will definitely get implemented. Thanks for the suggestions.
Title: Re: Automatic updater of NameColorizing.txt
Post by: Exodusek on July 06, 2010, 02:45:57 am
any update of this ?!

"minimizing to tray while auto-update checking" this is super idea
Title: Re: Automatic updater of NameColorizing.txt
Post by: Cpt.Rookie on July 06, 2010, 10:13:20 am
Unfortunately there are some other 2238 projects that have higher priority now, so development of this tool is stopped. However, I'm taking a note to my to-do list. Thanks.
Title: Re: Automatic updater of NameColorizing.txt
Post by: jan0s1k on July 11, 2010, 12:02:08 pm
and something like download with ftp: user:password or sth like this would be cool ;]
Title: Re: Automatic updater of NameColorizing.txt
Post by: The Good Doctor on February 04, 2012, 11:31:47 am
Sure would like an update of this, I can't be the only one interested...
Title: Re: Automatic updater of NameColorizing.txt
Post by: Cpt.Rookie on February 04, 2012, 02:02:41 pm
I thought that no one is using this tool anymore since devs made namecolorizing file quite useless.
Title: Re: Automatic updater of NameColorizing.txt
Post by: The Good Doctor on February 04, 2012, 10:40:03 pm
Works for me. Other players names are colored, not just mine. Still have the issue of Cyrillic names not colored though.