User avatar
pakfront
Corporal
Posts: 48
Joined: Mon Jun 18, 2007 2:54 pm
Location: Fort Alcatraz, California

Help decoding the TRN format for a little TOE Utility I'm writing

Fri Jul 13, 2007 9:22 pm

I'm trying to write a TOE viewing utility. It has basic ability right now reading in the TRN files (which I think is the right one to read) and displaying it in a tree format (see attached image) If I get it working ok, i'll release it to you guys.

I'd like have a little more useful info in it, but need some pointers on decoding the file format. Can anyone point me to what each entry means? I'm most interested in
-# men
-supply
-cohesion
-current orders (stance, destroy depot, etc.)
-current location
-current movement orders (where's it going?)
-what archetypical unit this unit derives from or some other way to find out what it's ratings are when it is perfect condition.
-for corps, what army it belongs to


Code: Select all

      {SubUnit}
      1000515 //uid
      94
      6
      0
      0
      4
      8
      0
      0
      75
      0
      0
      0
      0
      0
      1
      0
      0
      0
      0
      0
      0
      12 lb pounder //subunit name
      {/SubUnit}


Code: Select all

    {Unit}
    1000513 //uid
    301
    0
    561
    1
    1000512 // parent uid???
    1000001
    0
    1
    0
    560
    0
    0
    -1
    0
    0
    0
    0
    0
    0
    Army of the Tennessee // unit name ??
    NULL
    NULL
    NULL
    NULL
    Ulysses S. Grant|518|Ulysses S. Grant|1000517 &
    Maj.Gen. U.S. Grant
    NULL
    Army of the Tennessee
    NULL


Code: Select all

  {Group}
  1000512
  -1
  50001
  561
  -1
  1000001
  4440
  3553
  50001
  560
  -1
  -1
  -1
  204
  4160
  3680
  1
  -1
  0
  0
  0
  -1
  -1
  1
  0
  0
  0
  0
  Army of the Tennessee //group name
  NULL
  561|560|
  NULL
  NULL
Attachments
adj.png

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 23 guests