[VM] EXE : Embedded Tabular Data Segments

Librarian: HexCode
Post Reply
HexCode
Second Lieutenant
Second Lieutenant
Posts: 749
Joined: 2019-09-30 18:54, Monday

[VM] EXE : Embedded Tabular Data Segments

Post by HexCode » 2021-04-05 05:23, Monday

CONTENT LINKS
==============

Introduction
Absolute Prerequisite
viewtopic.php?f=100&t=551#p9040

UTR-to-ATT Cross-Table
viewtopic.php?f=100&t=551#p9041

ATT-to-CATT Cross-Table
viewtopic.php?f=100&t=551#p9042

Weather Determination Table
viewtopic.php?f=100&t=551#p9043

Movement Point Expenditure Table
viewtopic.php?f=100&t=551#p9044

Terrain Base Entrenchment Level Table
viewtopic.php?f=100&t=551#p9045

Unit Class Entrenchment Rate Table
viewtopic.php?f=100&t=551#p9046

Terrain Initiative Cap Table
viewtopic.php?f=100&t=551#p9047


===================================================================

The topic's contents may be modified or progressively added upon as time goes by.

===================================================================

INTRODUCTION
==============

Kindly review:

Introduction
viewtopic.php?f=100&t=536#p8929

PGF's "heart" beats inside its one and only executable file, PGFOREVER.EXE. This is a binary file which is often referred to as PGF's "engine". The executable file's most recently released version is 1.02 (May 28, 2012); it is 753,664 bytes long. The file is located at the root of PGF's "nested" folder structure (together with file HTMLAYOUT.DLL).

In a perfect coding world, Tabular Data Segments (TDSs) would have no place residing inside an executable. Well, codewise, PGF's executable is far from being perfect; it contains oodles of TDSs...

ABSOLUTE PREREQUISITE
======================

Hexadecimal Code... Surgery (Part I)
viewtopic.php?f=100&t=536#p8933
Last edited by HexCode on 2021-04-07 16:48, Wednesday, edited 2 times in total.

HexCode
Second Lieutenant
Second Lieutenant
Posts: 749
Joined: 2019-09-30 18:54, Monday

UTR-TO-ATT CROSS-TABLE

Post by HexCode » 2021-04-05 05:28, Monday

UTR-TO-ATT CROSS-TABLE
=======================

Absolute Prerequisites

Underlying Terrain Representations
viewtopic.php?f=100&t=550#p9031

Internally "Summarized" Terrain Typology
viewtopic.php?f=100&t=547#p8997

Location

The binary cross-table spans decimal offsets 527544 - 527699. It is 156 bytes long. It comprises THIRTY NINE (39) serially arranged 32-bit code values. The order in the code is "UTR-Canonical".

Content

Code: Select all

00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
01 00 00 00 
01 00 00 00 
01 00 00 00 
02 00 00 00 
03 00 00 00 
04 00 00 00 
04 00 00 00 
04 00 00 00 
05 00 00 00 
05 00 00 00 
05 00 00 00 
05 00 00 00 
05 00 00 00 
05 00 00 00 
05 00 00 00 
06 00 00 00 
07 00 00 00 
08 00 00 00 
09 00 00 00 
0A 00 00 00 
10 00 00 00 
0B 00 00 00 
0B 00 00 00 
0C 00 00 00 
0C 00 00 00 
03 00 00 00 
0D 00 00 00 
05 00 00 00 
05 00 00 00 
0B 00 00 00 
0E 00 00 00 
0F 00 00 00 
0F 00 00 00 
03 00 00 00 
0D 00 00 00
Commentary

The above cross-table "inverts" the UTR Typology Aggregation Table documented as per the contents of the second absolute requirement link appearing at the top of this post. The binary cross-table assigns an ATT code to each and every one of the THIRTY NINE (39) UTR codes serially encountered in the aforementioned ATT table.

HexCode
Second Lieutenant
Second Lieutenant
Posts: 749
Joined: 2019-09-30 18:54, Monday

ATT-TO-CATT CROSS-TABLE

Post by HexCode » 2021-04-05 05:31, Monday

ATT-TO-CATT CROSS-TABLE
========================

Absolute Prerequisite

Internally "Summarized" Terrain Typology
viewtopic.php?f=100&t=547#p8997

Location

The binary cross-table spans decimal offsets 525640 - 525695. It is 56 bytes long. It comprises FOURTEEN (14) serially arranged 32-bit code values. The order in the code is "ATT-Canonical".

Content

Code: Select all

01 00 00 00 
08 00 00 00 
08 00 00 00 
0B 00 00 00 
09 00 00 00 
05 00 00 00 
01 00 00 00 
07 00 00 00 
00 00 00 00 
04 00 00 00 
02 00 00 00 
0A 00 00 00 
03 00 00 00 
06 00 00 00
Commentary

The above cross-table "inverts" the ATT Typology Aggregation Table documented as per the contents of the absolute requirement link appearing at the top of this post. The binary cross-table assigns a CATT code to each and every one of the FOURTEEN (14) ATT codes serially encountered in the aforementioned ATT table.

HexCode
Second Lieutenant
Second Lieutenant
Posts: 749
Joined: 2019-09-30 18:54, Monday

WEATHER DETERMINATION TABLE

Post by HexCode » 2021-04-05 05:34, Monday

WEATHER DETERMINATION TABLE
=============================

Absolute Prerequisite

Atmospheric Conditions
viewtopic.php?f=100&t=544#p8985

Location & Segmentation

The binary table spans decimal offsets 528008 - 528583. It is 576 bytes long.

The table comprises THREE (3) segments strictly sequentially placed, one after another. Each such segment is 192 bytes long and corresponds to a particular WGZ (the order in the code is 1, 2, 3).

Each segment dedicated to a particular WGZ comprises TWELVE (12) sub-segments strictly sequentially placed, one after another. Each such sub-segment is 16 bytes long and corresponds to a particular Calendar Month (the order in the code is Jan, Feb, ... Nov, Dec).

Each sub-segment dedicated to a particular Calendar Month contains FOUR (4) 32-bit code values serially corresponding to "Clear Time", "Storm Time", "Storm Type" and "Storm Chance".

Content

Code: Select all

WGZ 1
 
05 00 00 00   05 00 00 00   5F 00 00 00   3C 00 00 00
05 00 00 00   05 00 00 00   5F 00 00 00   32 00 00 00
0A 00 00 00   05 00 00 00   23 00 00 00   28 00 00 00
0A 00 00 00   05 00 00 00   00 00 00 00   1E 00 00 00
0C 00 00 00   05 00 00 00   00 00 00 00   14 00 00 00
0C 00 00 00   04 00 00 00   00 00 00 00   14 00 00 00
0C 00 00 00   04 00 00 00   00 00 00 00   14 00 00 00
0C 00 00 00   04 00 00 00   00 00 00 00   14 00 00 00
0C 00 00 00   05 00 00 00   05 00 00 00   14 00 00 00
0A 00 00 00   05 00 00 00   05 00 00 00   23 00 00 00
08 00 00 00   05 00 00 00   23 00 00 00   32 00 00 00
05 00 00 00   05 00 00 00   4B 00 00 00   3C 00 00 00

WGZ 2

05 00 00 00   05 00 00 00   3C 00 00 00   14 00 00 00
05 00 00 00   05 00 00 00   3C 00 00 00   1E 00 00 00
05 00 00 00   05 00 00 00   0F 00 00 00   32 00 00 00
05 00 00 00   05 00 00 00   05 00 00 00   3C 00 00 00
0A 00 00 00   05 00 00 00   00 00 00 00   32 00 00 00
0C 00 00 00   03 00 00 00   00 00 00 00   14 00 00 00
0C 00 00 00   03 00 00 00   00 00 00 00   14 00 00 00
0C 00 00 00   03 00 00 00   00 00 00 00   14 00 00 00
0A 00 00 00   05 00 00 00   00 00 00 00   14 00 00 00
05 00 00 00   05 00 00 00   0A 00 00 00   14 00 00 00
05 00 00 00   05 00 00 00   19 00 00 00   14 00 00 00
05 00 00 00   0E 00 00 00   64 00 00 00   4B 00 00 00

WGZ 3

05 00 00 00   05 00 00 00   64 00 00 00   3C 00 00 00
03 00 00 00   06 00 00 00   64 00 00 00   3C 00 00 00
05 00 00 00   05 00 00 00   50 00 00 00   32 00 00 00
05 00 00 00   05 00 00 00   3C 00 00 00   28 00 00 00
0A 00 00 00   05 00 00 00   00 00 00 00   14 00 00 00
0C 00 00 00   04 00 00 00   00 00 00 00   14 00 00 00
0C 00 00 00   04 00 00 00   00 00 00 00   14 00 00 00
0C 00 00 00   04 00 00 00   00 00 00 00   14 00 00 00
0A 00 00 00   05 00 00 00   00 00 00 00   14 00 00 00
05 00 00 00   05 00 00 00   50 00 00 00   28 00 00 00
05 00 00 00   05 00 00 00   5F 00 00 00   32 00 00 00
05 00 00 00   05 00 00 00   64 00 00 00   3C 00 00 00

HexCode
Second Lieutenant
Second Lieutenant
Posts: 749
Joined: 2019-09-30 18:54, Monday

MOVEMENT POINT EXPENDITURE TABLE

Post by HexCode » 2021-04-05 05:41, Monday

MOVEMENT POINT EXPENDITURE TABLE
==================================

Absolute Prerequisites

Internally "Summarized" Terrain Typology
viewtopic.php?f=100&t=547#p8997

Ground Conditions
viewtopic.php?f=100&t=544#p8986

Unit Movement Types
viewtopic.php?f=100&t=547#p8998

Location & Segmentation

The binary table spans decimal offsets 525696 - 527279. It is 1584 bytes long.

The table comprises ELEVEN (11) segments strictly sequentially placed, one after another. Each such segment is 144 bytes long and corresponds to a particular Unit MT (the order in the code is "MT-Canonical").

Each segment dedicated to a particular Unit MT comprises TWELVE (12) sub-segments strictly sequentially placed, one after another. Each such sub-segment is 12 bytes long and corresponds to a particular CATT (the order in the code is "CATT-Canonical").

Each sub-segment dedicated to a particular CATT contains THREE (3) 32-bit code values serially corresponding to "Dry Ground", "Muddy Ground", and "Frozen Ground".

Content

Code: Select all

Tracked MT

01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    02 00 00 00    01 00 00 00
02 00 00 00    03 00 00 00    02 00 00 00
04 00 00 00    9C FF FF FF    9C FF FF FF
02 00 00 00    03 00 00 00    02 00 00 00
9C FF FF FF    9C FF FF FF    9C FF FF FF
01 00 00 00    01 00 00 00    01 00 00 00
04 00 00 00    38 FF FF FF    02 00 00 00
38 FF FF FF    38 FF FF FF    38 FF FF FF
9C FF FF FF    38 FF FF FF    02 00 00 00
01 00 00 00    02 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00

Half-Tracked MT

01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    03 00 00 00    02 00 00 00
02 00 00 00    03 00 00 00    02 00 00 00
9C FF FF FF    9C FF FF FF    9C FF FF FF
02 00 00 00    04 00 00 00    03 00 00 00
9C FF FF FF    9C FF FF FF    9C FF FF FF
01 00 00 00    01 00 00 00    01 00 00 00
04 00 00 00    38 FF FF FF    02 00 00 00
38 FF FF FF    38 FF FF FF    38 FF FF FF
9C FF FF FF    38 FF FF FF    02 00 00 00
01 00 00 00    02 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00

Wheeled MT

01 00 00 00    02 00 00 00    02 00 00 00
02 00 00 00    03 00 00 00    02 00 00 00
04 00 00 00    9C FF FF FF    9C FF FF FF
9C FF FF FF    9C FF FF FF    9C FF FF FF
04 00 00 00    9C FF FF FF    9C FF FF FF
9C FF FF FF    9C FF FF FF    9C FF FF FF
03 00 00 00    03 00 00 00    03 00 00 00
9C FF FF FF    38 FF FF FF    03 00 00 00
38 FF FF FF    38 FF FF FF    38 FF FF FF
9C FF FF FF    38 FF FF FF    03 00 00 00
02 00 00 00    04 00 00 00    03 00 00 00
01 00 00 00    02 00 00 00    02 00 00 00

Leg MT

01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
02 00 00 00    02 00 00 00    02 00 00 00
02 00 00 00    02 00 00 00    02 00 00 00
02 00 00 00    02 00 00 00    02 00 00 00
9C FF FF FF    9C FF FF FF    9C FF FF FF
02 00 00 00    02 00 00 00    02 00 00 00
02 00 00 00    9C FF FF FF    01 00 00 00
38 FF FF FF    38 FF FF FF    38 FF FF FF
9C FF FF FF    9C FF FF FF    02 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00

Towed MT (Dismounted Gun)

01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
9C FF FF FF    9C FF FF FF    9C FF FF FF
01 00 00 00    01 00 00 00    01 00 00 00
38 FF FF FF    38 FF FF FF    38 FF FF FF
38 FF FF FF    38 FF FF FF    38 FF FF FF
9C FF FF FF    9C FF FF FF    9C FF FF FF
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00

Air MT

01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00

Naval MT

38 FF FF FF    38 FF FF FF    38 FF FF FF
38 FF FF FF    38 FF FF FF    38 FF FF FF
38 FF FF FF    38 FF FF FF    38 FF FF FF
38 FF FF FF    38 FF FF FF    38 FF FF FF
38 FF FF FF    38 FF FF FF    38 FF FF FF
38 FF FF FF    38 FF FF FF    38 FF FF FF
38 FF FF FF    38 FF FF FF    38 FF FF FF
38 FF FF FF    38 FF FF FF    38 FF FF FF
01 00 00 00    01 00 00 00    01 00 00 00
38 FF FF FF    38 FF FF FF    38 FF FF FF
38 FF FF FF    38 FF FF FF    38 FF FF FF
01 00 00 00    01 00 00 00    01 00 00 00

All-Terrain MT

01 00 00 00    01 00 00 00    01 00 00 00
01 00 00 00    02 00 00 00    02 00 00 00
03 00 00 00    04 00 00 00    04 00 00 00
03 00 00 00    9C FF FF FF    03 00 00 00
03 00 00 00    9C FF FF FF    03 00 00 00
9C FF FF FF    9C FF FF FF    9C FF FF FF
02 00 00 00    02 00 00 00    02 00 00 00
9C FF FF FF    38 FF FF FF   03 00 00 00
38 FF FF FF    38 FF FF FF    38 FF FF FF
9C FF FF FF    38 FF FF FF    02 00 00 00
01 00 00 00    03 00 00 00    02 00 00 00
01 00 00 00    01 00 00 00    01 00 00 00

Tracked Amphibious MT

01 00 00 00    01 00 00 00    01 00 00 00 
01 00 00 00    02 00 00 00    01 00 00 00 
02 00 00 00    03 00 00 00    02 00 00 00 
04 00 00 00    9C FF FF FF    9C FF FF FF 
02 00 00 00    03 00 00 00    02 00 00 00 
9C FF FF FF    9C FF FF FF    9C FF FF FF 
01 00 00 00    01 00 00 00    01 00 00 00 
02 00 00 00    04 00 00 00    02 00 00 00 
02 00 00 00    03 00 00 00    02 00 00 00 
02 00 00 00    04 00 00 00    02 00 00 00 
01 00 00 00    02 00 00 00    01 00 00 00 
01 00 00 00    01 00 00 00    01 00 00 00 

All-Terrain Amphibious MT

01 00 00 00    01 00 00 00    01 00 00 00 
01 00 00 00    02 00 00 00    02 00 00 00 
03 00 00 00    04 00 00 00    04 00 00 00 
03 00 00 00    9C FF FF FF    03 00 00 00 
03 00 00 00    9C FF FF FF    03 00 00 00 
9C FF FF FF    9C FF FF FF    9C FF FF FF 
02 00 00 00    02 00 00 00    02 00 00 00 
03 00 00 00    9C FF FF FF    03 00 00 00 
03 00 00 00    04 00 00 00    03 00 00 00 
03 00 00 00    9C FF FF FF    02 00 00 00 
01 00 00 00    03 00 00 00    02 00 00 00 
01 00 00 00    01 00 00 00    01 00 00 00

Mountaineer MT 

01 00 00 00    01 00 00 00    01 00 00 00 
01 00 00 00    01 00 00 00    01 00 00 00 
01 00 00 00    01 00 00 00    01 00 00 00 
01 00 00 00    01 00 00 00    01 00 00 00 
01 00 00 00    01 00 00 00    01 00 00 00 
01 00 00 00    01 00 00 00    01 00 00 00 
01 00 00 00    01 00 00 00    01 00 00 00 
02 00 00 00    9C FF FF FF    02 00 00 00 
38 FF FF FF    38 FF FF FF    38 FF FF FF 
9C FF FF FF    9C FF FF FF    9C FF FF FF 
01 00 00 00    01 00 00 00    01 00 00 00 
01 00 00 00    01 00 00 00    01 00 00 00
Legend

Value "9C FF FF FF" connotes the expenditure of a unit's full Movement Allowance (MA) in support of terrain enterability.

Value "38 FF FF FF" connotes terrain unenterability.

HexCode
Second Lieutenant
Second Lieutenant
Posts: 749
Joined: 2019-09-30 18:54, Monday

TERRAIN BASE ENTRENCHMENT LEVEL TABLE

Post by HexCode » 2021-04-05 05:45, Monday

TERRAIN BASE ENTRENCHMENT LEVEL TABLE
=======================================

Absolute Prerequisites

Underlying Terrain Representations
viewtopic.php?f=100&t=550#p9031

Unit Entrenchment
viewtopic.php?f=100&t=544#p8987

Location

The binary table spans decimal offsets 540736 - 540891. It is 156 bytes long. It comprises THIRTY NINE (39) serially arranged 32-bit code values. Each value reflects the TBEL assigned to a particular UTR. The order in the code is "UTR-Canonical".

Content

Code: Select all

00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
01 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
02 00 00 00 
02 00 00 00 
02 00 00 00 
02 00 00 00 
02 00 00 00 
02 00 00 00 
02 00 00 00 
00 00 00 00 
00 00 00 00 
03 00 00 00 
01 00 00 00 
02 00 00 00 
00 00 00 00 
04 00 00 00 
04 00 00 00 
02 00 00 00 
02 00 00 00 
03 00 00 00 
00 00 00 00 
02 00 00 00 
02 00 00 00 
04 00 00 00 
00 00 00 00 
00 00 00 00 
00 00 00 00 
03 00 00 00 
00 00 00 00

HexCode
Second Lieutenant
Second Lieutenant
Posts: 749
Joined: 2019-09-30 18:54, Monday

UNIT CLASS ENTRENCHMENT RATE TABLE

Post by HexCode » 2021-04-05 05:50, Monday

UNIT CLASS ENTRENCHMENT RATE TABLE
====================================

Absolute Prerequisites

Unit Classes
viewtopic.php?f=100&t=547#p8995

Unit Entrenchment
viewtopic.php?f=100&t=544#p8987

Location

The binary table spans decimal offsets 535856 - 535927. It is 72 bytes long. It comprises EIGHTEEN (18) serially arranged 32-bit code values. Each value reflects the UCER assigned to a particular UC. The order in the code is "UC-Canonical".

Content

Code: Select all

03 00 00 00
01 00 00 00
02 00 00 00
02 00 00 00
02 00 00 00
01 00 00 00
02 00 00 00
01 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00
00 00 00 00 
01 00 00 00 
00 00 00 00
00 00 00 00

HexCode
Second Lieutenant
Second Lieutenant
Posts: 749
Joined: 2019-09-30 18:54, Monday

TERRAIN INITIATIVE CAP TABLE

Post by HexCode » 2021-04-05 05:54, Monday

TERRAIN INITIATIVE CAP TABLE
===========================

Absolute Prerequisites

Underlying Terrain Representations
viewtopic.php?f=100&t=550#p9031

Unit Initiative In Combat
viewtopic.php?f=100&t=544#p8988

Location

The binary table spans decimal offsets 537872 - 538027. It is 156 bytes long. It comprises THIRTY NINE (39) serially arranged 32-bit code values. Each value reflects the TIC assigned to a particular UTR. The order in the code is "UTR-Canonical".

Content

Code: Select all

63 00 00 00 
63 00 00 00 
63 00 00 00 
63 00 00 00 
63 00 00 00 
63 00 00 00 
63 00 00 00 
63 00 00 00 
05 00 00 00 
63 00 00 00 
63 00 00 00 
63 00 00 00 
01 00 00 00 
01 00 00 00 
01 00 00 00 
01 00 00 00 
01 00 00 00 
01 00 00 00 
01 00 00 00 
63 00 00 00 
02 00 00 00 
01 00 00 00 
05 00 00 00 
03 00 00 00 
63 00 00 00 
03 00 00 00 
03 00 00 00 
03 00 00 00 
03 00 00 00 
01 00 00 00 
63 00 00 00 
01 00 00 00 
01 00 00 00 
03 00 00 00 
63 00 00 00 
63 00 00 00 
63 00 00 00 
01 00 00 00 
63 00 00 00

Post Reply