POG Tutorial: Modify objects on the map

Sie betrachten gerade eine ältere Version des Eintrags. Klicken Sie hier, um zur aktuellen Version zu gelangen.

  • POG files contain all sorts of information about the objects on the map, such as pigs, crates, all the scenery and special mission features.
    NOTE: This guide will have to get updated some day when I find time and motivation.

    1 How to modify POG files

    1. You need the PC version, do NOT install your game it in C:/Programm Files, I recommand C:/Hogs of War
    2. You need to download 2 programs:


      • A Hex Editor, I recommend Hex Editor Neo or Hex-Editor MX
      • Notepad++
    3. Backup the whole map folder in your hogs of war directory (and also any other files you want to modify)
    4. In the map folder you will find all the maps you can edit, the first mission is called "ESTU.POG" (here is a complete list)
    5. Open ESTU.POG in Notepad++
    6. If you want to remove one object on a map, you need to erase the WHOLE block from the object name until the next object name ! (see screenshot)
    7. You can add an object in the exact same way, you need to copy & paste the WHOLE object block. It doesn't really matter where you paste it, but it shouldn't be at the very beginning, nor at the very end, just paste it right infront of another object block. In Notepad++ there are special functions to copy the binary content, if you use regular copy/paste it won't work, you need to use: Edit --> Paste Special --> Copy/Paste Binary Content
    8. You must not add spaces/return or any additional charakters to the file, otherwise it will crash. You litterally can only copy & paste content from various map files.
    9. Once you have pasted the desired objects into your POG file you can edit the objects themself. To do this, you have to open the file in the Hex-Editor MX.
    10. The file is now shown in hexadecimal format, each pair represents one value that has a meaning in the game. Now the struggle starts, you basically need to find out what the meaning of all those pairs is and what other values the pairs can accept. You can do that by manipulating the values and check if it changes something ingame or you could also check the other mission files and see if other values are used there (or if similar values are used in the same spots).
    11. You don't have to do all of the work, you will find a nearly complete list below. However, in case you figure out new values, please share them with me !


    (image not found)



    If you want to remove the GR_ME object, you need to remove everything till the next object (GR_HV).

    You can also copy the whole block starting from GR_ME and ending right before HV_ME, then you paste it again directly in front of the HV_ME. This way you will have two times the same GR_ME object.


    2 POG FORMAT STRUCTURE EXPLAINED

    The first two bytes of the POG files contains the number of objects in the mission. Then in all the following bytes these objects are described.

    In this example I show the object HV_ME (it's a pig), but my findings will work on any object. The data size of all the objects is exactly the same (94 bytes) you can edit each of them and manipulate how the objects behave in the game in some way.


    POG.png

    Black - Name

    Dark Green - X|Z|Y Precision

    Green - X|Z|Y Coordinates

    Beige - Object ID

    Silver - Rotation Precision

    Grey - Rotation

    Dark Yellow - Unused ?

    Red - Pig Rank ID / Parameter 1

    Terracotta - Collision

    Light Purple - Advanced Collision Settings

    Yellow - Object Value

    Brown - Multiplier for bigger values

    Purple - Spawn Settings

    Violet - Group Value

    Turquoise - Script Event

    Dark Blue - Script Group

    Blue - Script Parameter 0

    Light Blue - Script Parameter 1

    Mint Green - X|Z|Y Droppoint Precision

    Yellowish Green - X|Z|Y Script Location

    Orange - Start Settings

    Blue Grey - Player Type

    Gold - Additional Settings


Teilen