Good day, everyone. At the closing week concluding the last year, I began working on design of a project which is currently inwardly known as Dune: A Harder Path, and represents itself about 3 times harder version of the original Cryo Interactive's campaign, with redesigned armies, appearances of their leaders, resources, locations and many other things which resulted in about 24 kilobytes changelog and 2 starting saved game files compatible with both 2.1 and 3.7 versions.
However, along that 4 weeks road, I've started experiencing certain difficulties in terms of what I felt could have been improved by a change, and yet, discovering how exactly such modification should be done would have easily resulted in multiple days of searching for the exact data offsets, thus drawing me away from the outlined development plan, the main philosophy of which consists of having a stable, playable and well-balanced Alpha version which contains thoroughly-maintained changelog and lacks merely sufficiently-summarized readme files.
Below I'm submitting the inquiries in regards to particular areas of advanced editing of saved game files, hoping that some of you possess more information on the topics than I am, thus being able to offer own help in order to slightly speed-up the extensive campaign-making process. I'll be expanding that list of questions on occasion when further-ones arise.
1) How specifically and to what extent the F7 repeat byte compacts game data? Is it possible to extend/alter its utilization to the degree where putting additional data within certain offset frames will not cause collision of data retrieval from the loaded save file by the game, thus allowing to station more data such as identities of troops past 67?
2) Based off the first question, do you think it's technically-possible to extend the number of IDs past what the game expects it to be & loads at day 1, apart troops reallocation? (That's what I've done as of now). Are troop IDs past 67 inherently limited by how the program recognizes them and are there any workarounds for making such a troop be movable from sietch to a sietch & respond to clicking queries properly?
3) Since there are 3 principal ways of launching the conquest against Harkonnen fortresses in the game (through Bledan, Haga, or directly Arrakeen area), and one of them consists of assembling and training the forces below Arrakeen region, slightly down from Tuono-Tabr, I'm interested in how exactly the swapping of Smuggler NPCs between Arrakeen-Pyons and Tuono-Pyons can be achieved, resulting the one at the latter location to never haggle over the price, or perhaps, there's a way to set that up separately for the existing Tuono-Pyons NPC, without the necessity to switch the traders between locations? The data associated with the Smugglers in the place from where character allocation & dialogues display information is taken doesn't seem to have anything related to every Smuggler in particular, providing a generic specification of "0C00023080006F93".
4) Is there a chance someone could elaborate on the detailed description of character data which follows the definition of Troops, the one Hugslab has already briefly touched upon in his reply there? Would be nice to know which bytes control a character's willingness to follow the player and at which offsets are the ones responsible for designation of accompanying NPCs.
So far, my own brief description of corresponding data consists of this:
The first byte is sprite identificator of the character.
The third byte is location of the room within the place.
The fourth byte is type of the place the character stays in (that byte is specified in field C of sietch data).
The 6th byte is used to determine whether a character is active (it's hidden when it's set to FF). Also serves as a pointer to the exact place the character is at.
The 7th byte refers to the NPC the player will have a dialogue with upon clicking the sprite, it's also linked with the last byte (either 92 or 93).
5) As we know, somewhere there's a byte which determines Game Stage (or, how Rémi Herbulot called it - Phase) variable, directly influencing player's discovering capabilities or the course of events that are about to happen after it has reached certain value. Where exactly is that byte defined? And, no-less interestingly, is Harkonnens' intent to attack is directly linked with it, or it's treated as a separate variable which gets turned on upon reaching of military Game Stage? I'm asking since internal development console seems to allow to activate the option named "HARKO ATTACK".
6) Finally, of a much lower priority, and yet, no-less interest of being aware about for an extra occasion lies the question regarding specification of offsets and the description of bytes responsible for depiction of Controlled Areas on the strategical planetary map, provided through "See Results". I'll be surprised if someone extensively researched that, however, nothing prevents us from thinking & investigating the subject a bit further, right?
Thanks for answering any of this, and, if some of you will be willing to assist or exchange ideas further, I can be reached either as cyber_smoke in Skype or Smoke Nightvogue#1044 on Discord. Alternatively, you can simply dispatch a private message here to discuss anything related to the topic or the world of Dune novels in general.