Comments (2)
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.
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)
- UnitAlive returns int instead of bool HOT 1
- War3Api.Objct UnitType and ItemType enums are not generated for campaign objects HOT 1
- Feature request: a way to test if a BaseObject-derived class has a value HOT 4
- Unit properties which should return char or bool always throw InvalidOperationException HOT 3
- Issues using War3Api.Object to read a 1.32 map HOT 1
- Feature request: fallback for object fields HOT 10
- War3Api.Object.Generator does not generate fields with percentage values HOT 1
- War3Api.Object throwing InvalidOperationException even when collection was not modified HOT 2
- Updating War3Api.Common to 1.33 HOT 2
- War3Api.Generator.Object produces error when generating from latest API HOT 7
- Crash when programmatically modifying object data HOT 13
- War3Api.Generator.Object should expect latest Warcraft 3 object data HOT 2
- War3Api.Object.Tests.TestData1 does not compile HOT 2
- War3Api.Object does not correctly set values for leveled ability fields HOT 4
- Allow SimpleObjectModification to be cast to types derived from BaseObject HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from war3api.