Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

JSON conversion omits intentionally duplicate data #2

Open
brand1417 opened this issue Mar 26, 2015 · 2 comments
Open

JSON conversion omits intentionally duplicate data #2

brand1417 opened this issue Mar 26, 2015 · 2 comments

Comments

@brand1417
Copy link

If you look at DOTAHeroes/npc_dota_hero_axe/Bot/Loadout, items like Blades of Attack are only listed once in the JSON while existing twice in the TXT.

Example:

                "item_vanguard"                 "ITEM_DERIVED"
                "item_blades_of_attack"         "ITEM_CORE"
                "item_blades_of_attack"         "ITEM_CORE"
                "item_phase_boots"              "ITEM_DERIVED"
                "item_blink"                    "ITEM_EXTENSION"

converts to

          "item_vitality_booster": "ITEM_LUXURY",
          "item_vanguard": "ITEM_DERIVED",
          "item_blades_of_attack": "ITEM_CORE",
          "item_phase_boots": "ITEM_DERIVED",
          "item_blink": "ITEM_EXTENSION",
@manveru
Copy link
Contributor

manveru commented Mar 26, 2015

How would you fix that?

@brand1417
Copy link
Author

In a similar discussion here, one of the options was to make duplicate item declarations unique. I'm working on a variation of that theme, as order is also not preserved in other languages, which prepends any instance of item_ inside the Loadout blocks with an incrementing digit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants