russian armor

Extracting unit stats

27 May 2018, 12:11 PM
avatar of Socrates

Posts: 40

Hello everyone! I'm pretty much new to COH2 modding, so this is maybe a frequent question to your community (sorry):
Is there any way to extract unit stats into external files (.json or .xml) from game archives?
Which archive actually store this values?

I installed COH2 Tools and Data, used Attribute Editor and Archive Viewer, but can't find any button or menu item to export them. :( It looks like they're stored in .xml somewhere.
27 May 2018, 14:07 PM
avatar of ferwiner
Donator 11

Posts: 2885

The file you are looking for is <gamedir>/CoH2/Archives/AttribArchive.sga
27 May 2018, 16:48 PM
avatar of Dreadbot
Donator 11

Posts: 94

The tools store their XML files in <Steam common directory>/Company of Heroes 2 Tools/assets/data/attributes/instances
28 May 2018, 05:39 AM
avatar of Planet Smasher
Senior Modmaker Badge

Posts: 632 | Subs: 1

To extract stats automatically, you'd probably have to write a script yourself - unless you find somebody who's already done that. Maybe send a PM to Mr.Smith, he might have something.
28 May 2018, 13:06 PM
avatar of Socrates

Posts: 40

Thanks everyone for help, found it.
I will write simple xml-to-sql parser, now i have everything i need:)
28 May 2018, 13:42 PM
avatar of Planet Smasher
Senior Modmaker Badge

Posts: 632 | Subs: 1

Feel free to share it here if you want - we're always interested in that kind of stuff!
1 user is browsing this thread: 1 guest
1v1 Map Unveil Event VonIvan vs Brosras

Ladders Top 10

  • #
    Steam Alias
Data provided by Relic Relic Entertainment

Replay highlight

  • Oberkommando West flag N1cko
  • Oberkommando West flag Scotch1
  • Soviets flag Frosty
  • Soviets flag Beatricks Swire
uploaded by Frost

Board Info

180 users are online: 6 members and 174 guests
Grining Cat, Shtrafniki Keeves, caffeine, lokertysadero, EffenNewbie, T.R. Marcel
191 posts in the last 24h
1197 posts in the last week
5396 posts in the last month
Registered members: 68477
Welcome our newest member, lokertysadero
Most online: 918 users on 27 Oct 2019, 01:03 AM