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

Ladders Top 10

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

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

601 users are online: 601 guests
21 posts in the last 24h
51 posts in the last week
104 posts in the last month
Registered members: 44659
Welcome our newest member, Yourcounselling
Most online: 2043 users on 29 Oct 2023, 01:04 AM