JulianOzelRose / HardWar-SaveEdit

A web-based savegame editor for cyberpunk PC game HardWar. Written in plain JavaScript and HTML.
https://julianozelrose.github.io/HardWar-SaveEdit/
0 stars 1 forks source link

Alien faction not being recognized properly #5

Open JulianOzelRose opened 1 month ago

JulianOzelRose commented 1 month ago

According to this page, the Abandoned Terminal is owned by the Alien faction. However, the editor is unable to match the Abandoned Terminal owner to any entity; see the picture attached. Most of the time, the hangar owner refers to the dynamic address of a faction's headquarters.

It is possible that either:

  1. Certain factions, like the Aliens, do not have a headquarers and have entirely distinct data structures
  2. The owner address in the Abandoned Terminal indeed points nowhere. This seems unlikely from a programmatic standpoint.

In this particular savegame, the address of the Abandoned Terminal owner, 0xA5190, is only referenced one time in the savegame, as the Abandoned Terminal's owner. Searching for this address in Cheat Engine does yield several interesting results, but it is unclear what the data represents.

It's worth mentioning that this same phenomena occurs with other hangars, namely Hardwarp FM and some of the LightWells. Since Harwarp FM plays a more crucial role in the game's plot, it might be easier to start with that. However, the Alien faction's "ghost pointer" seems more intriguing and mysterious.

Abandoned Terminal

ShroudedNight commented 1 month ago

From my observations:

  1. I have two save games where the address is 0xA5190, and one save where the owner is listed as 'none'
  2. In my current game, there appears to be no memory mapped to the 64k 0xA0000 region
  3. Before the bulk of the initialization happens at HardwarW.exe.text+222C8, the value 0x000A5190 is already present in the DWORD of interest