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

No comments:

Post a Comment