avee / cw_wiki_sync Goto Github PK
View Code? Open in Web Editor NEWTool to parse data from chatwars wiki
Tool to parse data from chatwars wiki
This might be two different issues, but here goes.
I'm using your repository for some of my own stuff (generally great work btw), and I've come across an issue:
Data in the resources_v2.json
file is duplicated and partially out of date (in fact it's an issue in both v1 and v2, but I guess v1 isn't as important anymore).
The item I noticed it with is a118
- it exists twice.
First entry
{
"id": "a118",
"eventItem": false,
"name": "Indissoluble Cloak",
"type": "Cape",
"attack": 4,
"defense": 11,
"mana": 0,
"levelRequirement": 60,
"depositable": true,
"auction": true,
"enchantable": true,
"craftable": true,
"recipeIncomplete": false,
"craftCommand": "/c_a118",
"craftSkill": "Crafting (Skill)",
"craftLevel": 6,
"craftMana": 800,
"recipe": [
{
"name": "Indissoluble Apron recipe",
"qty": "1",
"personalized": false
},
{
"name": "Indissoluble Apron part",
"qty": "4",
"personalized": false
},
...
],
"pagename": "Indissoluble Apron",
"lastModified": "2021-04-14T21:10:12Z",
"revision": 16997,
"wikiUrl": "https://chatwars-wiki.de/index.php?title=Indissoluble+Apron"
}
second entry
{
"id": "a118",
"eventItem": false,
"name": "Indissoluble Cloak",
"type": "Cape",
"description": "Modifiers: Heavy Armor Mastery↑ 0.50 Per enchant",
"attack": 4,
"defense": 11,
"mana": 0,
"weight": 60,
"levelRequirement": 60,
"depositable": true,
"shopSellPrice": 302,
"exchange": false,
"auction": true,
"freeText": "Modifiers: Heavy Armor Mastery↑ 0.50 Per enchant",
"quest": false,
"enchantable": true,
"enchantAtk1": 0,
"enchantAtk2": 2,
"enchantAtk3": 0,
"enchantAtk4": 2,
"enchantDef1": 2,
"enchantDef2": 0,
"enchantDef3": 2,
"enchantDef4": 0,
"enchantMana1": 0,
"enchantMana2": 0,
"enchantMana3": 0,
"enchantMana4": 0,
"craftable": true,
"recipeIncomplete": false,
"craftCommand": "/craft_a118",
"craftSkill": "Crafting (Skill)",
"craftLevel": 6,
"craftMana": 800,
"recipe": [
{
"name": "Indissoluble Cloak Recipe",
"qty": "1",
"personalized": false
},
{
"name": "Indissoluble Cloak Part",
"qty": "4",
"personalized": false
},
...
],
"pagename": "Indissoluble Cloak",
"lastModified": "2022-05-05T19:05:12Z",
"revision": 17373,
"wikiUrl": "https://chatwars-wiki.de/index.php?title=Indissoluble+Cloak"
}
As you can see, the first entry contains outdated data - calling the item "Indissoluble Apron" in everything but the "name"
field - including referring to the Apron recipes as ingredients.
A local fix for others running into this issue could be to sort the data by lastModified
or revision
and only use the newer entry, at least that's what let me work around the issue for now.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.