August 14, 2018, 06:36:11 PM

Username
Password

Pages: [1]   Go Down
Print
Author Topic: More than 10 units under player control in a single player campaign?  (Read 1185 times)
0 Members and 1 Guest are viewing this topic.
cuthalion
Campaign Creator
*
Offline Offline

Posts: 370


View Profile
« on: June 09, 2015, 04:27:08 PM »

Hi,
Olly told me that Ghabry had found where maximum of deployed troops is stored for single player campaign.
Offset 0x5CD99 in EngRel.exe
I edited that value. It was 0Ah indeed (10 decimal). However after I increased it to 0B (11 decimal) I was still unable to deploy more than 10 troops in the campaign (game was restarted of course).
Do I miss an important step?
Logged
Ghabry
Developer
*
Offline Offline

Posts: 1009



View Profile
« Reply #1 on: June 09, 2015, 05:59:20 PM »

This value is in the code segment.
The Mod Selector only copies the data segment of engrel to prevent malicious changes to the program code.
Logged

cuthalion
Campaign Creator
*
Offline Offline

Posts: 370


View Profile
« Reply #2 on: June 09, 2015, 09:14:25 PM »

Aha,
so I have to edit original EngRel for that don't I? I will try it out tomorrow.

P.S. It would be cool if this parameter were not global. Increasing it for my new campaign will shift the balance for all other campaigns including original one, if they are gathered in 1 pack. Ghabry could you read this one from mod or create a list of values that should be read from modded executable or from a text file (1 such file per mod)?
Logged
Pages: [1]   Go Up
Print
Jump to: