Git Product home page Git Product logo

Comments (2)

Drake53 avatar Drake53 commented on August 23, 2024

You technically don't have to copy your files to the API folder, you can also set the InputAbsolute path directly to the location where you extracted the CASC.
The exception is caused by the fact that multiple translation string keys (WESTRING_...) were found with different values. This is a problem if you want to add these to a dictionary. If the keys have the same values this problem is ignored, but when they are different it throws an exception.
I am assuming you are using patch 1.32, since this doesn't happen for me when I use the game data from patch 1.31.
To avoid this issue just remove the exception from the code, then it will simply add the first keyvaluepair it finds to the dictionary, and other kvps with the same key will be ignored.

from war3api.

YakaryBovine avatar YakaryBovine commented on August 23, 2024

Thankyou, that makes sense. I failed to mention that removing the exception did seem to resolve the issue but I wasn't sure if it would break something else. You're correct that I'm on patch 1.32; I don't really understand why its editor string files have duplicate keys.

from war3api.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.