anno-mods / FileDBReader

A command line tool for working with a proprietary bluebyte file compression used in Anno 2205 and 1800.
15 stars 4 forks source link

Improve Error Message for missing Properties and make RenamedPropertyHelper Thread Safe #30

Closed Shad0wlife closed 1 year ago

Shad0wlife commented 1 year ago

When writing models, I had issues finding WHERE the missing Properties where actually missing (in what node, not what type), so I improved the message in the relevant Exception.

I had a race condition when parsing multiple gamedata files in parallel, they tried adding identical Dictionary entries in the RenamedPropertyHelper Cache simultaneously. I changed that dictionary to a ConcurrentDictionary to prevent that issue.