Native JSON file editor, Node-webkit developed EXE program

Source: Internet
Author: User
Tags dota

Starter: personal blog, update & error correction & reply

In yesterday's DotA fit calculator, the dota hero data and DotA player data Two database, in order to facilitate the use of Web applications, the storage format of the two databases is JSON, This is the two files of Heros.json and Players.json.

The advantage of a JSON file is that it can be opened with a text editor, but the downside is that it's not as easy to manipulate as a database with a graphical interface. Heroes have more than 100, the player also has more than 10, each hero and player properties have more than 10 20 items, dragged in the text editor dragged too much trouble, not at a glance.

and heroes have a tags property, which is actually a comma-delimited string, such as "remote, intelligence, Mage, outbreak", this string of editing is my main thing to do, in the text editor dragged too stupid, want to do an EXE program, because this editor to deal with the JSON format data, Using Node-webkit technology, using JavaScript language to complete is the most appropriate, can not help but sigh technology more learning more like open a few windows, and not only hammer encountered anything when nails to hit.

Implementation is not difficult, the code here, of course, to put in the shell of Node-webkit to run, you can refer to my blog.

Interface

Then the player editor to do it, but in the Hero Tag editor based on the change, the interface is as follows:

Set the hero and player indicators, you can use the algorithm to calculate the player's fit hero:

The first 15 heroes that are most suitable for Dugo are calculated, or more accurate. Processing good data and calculating the page here, source here.

Welcome to the use and suggestions, especially on the heroic indicators and algorithms, the current still feel flawed, such as the Silent Warlock and the Wrath Mage have "silent" skills, obviously the two are different, but did not think well how to distinguish.

Long-term welcome project Cooperation Opportunity Introduction, project income 10% to reward introducer. Sina Weibo: @ Cold Mirror, qq:908789432.

Native JSON file editor, Node-webkit developed EXE program

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.