Friday 17 September 2010

PG tables

PG series uses many tables for conversions between number encoded values and human readable strings. Some of them are listed below:

The equipment file uses following conversion for unit movement types:

0. tracked
1. halftracked
2. wheeled
3. leg
4. towed
5. air
6. naval
7. all terrain


Unit classes are coded:

0. Infantry
1. Tank
2. Recon
3.Anti-tank
4.Artillery
5.Anti-aircraft
6.Air Defense
7.Fortification
8.Fighter
9.Tactical Bomber
10.Level Bomber
11.Submarine
12.Destroyer
13.Capital Ship
14.Air. Carrier
15.Land Transport
16.Air Transport
17.Sea Transport

The countries are coded using the table:
  1. Austria 
  2. Belgium
  3. Bulgaria
  4. Luxembourg
  5. Denmark
  6. Finland
  7. France
  8. Germany
  9. Greece
  10. USA
  11. Hungary
  12. Turkey
  13. Italy
  14. Netherlands
  15. Norway
  16. Poland
  17. Portugal
  18. Rumania
  19. Spain
  20. USSR
  21. Sweden
  22. Switzerland
  23. UK
  24. Yugoslavia
Terrain type are coded:
0. Clear
1. Clear
2. Clear
3. Clear
4. Coast
5. Coast
6. Coast
7. Ocean
8. Port
9. River
10. River
11. River
12. Mountain
13. Mountain
14. Mountain
15. Mountain
16. Mountain
17. Mountain
18. Mountain
19. Airfield
20. Swamp
21. City
22. Rough
23. Forest
24. [unknown]
25. Fortification
26. Fortification
27. Bocage
28. Bocage
29. Port
30. Desert
31. Mountain
32. Mountain
33. Fortification
34. Rough Desert
35. Escarpment
36. Escarpment
37. Port
38. Desert
39. Unknown

Thursday 16 September 2010

AG NULP

AG and PG WIN share NUPL structure. AG NUPL differs very slightly from PG DOS NUPL. One more country is in the NUPL table.
  1. Norway share NUPL with Netherlands, Sweden, Switzerland, Spain, Portugal, Austria, Turkey, Denmark
  2. United Kingdom
  3. Italy
  4. Poland
  5. Germany
  6. Belgium share NUPL with Luxembourg
  7. France
  8. Soviet Union
  9. United States
  10. Yugoslavia
  11. Rumania
  12. Hungary
  13. Bulgaria
  14. Greece
  15. Finland
The NUPL is coded the same as in PG DOS. The AG.EXE of size 2167611 got table at 1883344, 2167296 at 2167611. The PG WIN of size 2135040 at 1845024.


The NUPL table size is 647.


For more information see:
http://www.juloag.euweb.cz/

Wednesday 8 September 2010

PG NUPL

The New Unit Purchase List in Paner General is coding information which country can buy which unit. For PG.EXE size 814305 table starts at offset 776008, while for PG.EXE size 811233 it starts at 772936. The example table:

The starting 96 00 is Id of the Infantry unit that Norway and some other countries can buy. Next FF FF is -1 meaning end of class information. The whole table ends with -2 (FE FF). There are 620 2 byte elements in this array (including -2).

The NUPL  in PG is coded for countries in the following order:
  1. Norway share NUPL with Netherlands, Finland, Sweden, Switzerland, Spain, Portugal, Austria, Turkey, Denmark
  2. United Kingdom
  3. Italy
  4. Poland
  5. Germany
  6. Belgium share NUPL with Luxembourg
  7. France
  8. Soviet Union
  9. United States
  10. Yugoslavia
  11. Rumania
  12. Hungary
  13. Bulgaria
  14. Greece 
There are 12 classes per country. Each country got following classes coded.
  • Infantry
  • Tank
  • Recon
  • Anti-tank
  • Artillery
  • Anti-Aircraft
  • Air Defense
  • Fortification
  • Fighter
  • Tactical Bomber
  • Level Bomber
  • Land Transport