Login

russian armor

Extracting unit stats

27 May 2018, 12:11 PM
#1
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
#2
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
#3
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
#4
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
#5
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
#6
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

Livestreams

unknown 293
unknown 4

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

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

Board Info

144 users are online: 4 members and 140 guests
SturmtigerCobra, Aarotron, Khan, dewamacau99
91 posts in the last 24h
1127 posts in the last week
4744 posts in the last month
Registered members: 69610
Welcome our newest member, LeonMest
Most online: 918 users on 27 Oct 2019, 01:03 AM