Home » PLAYER'S HQ 1.13 » v1.13 General Gameplay Talk » Changing difficulty settings midgame (Changing nr of IMP characters after game start)
icon1.gif  Changing difficulty settings midgame[message #352258] Thu, 01 February 2018 11:25 Go to next message
Slugg087

 
Messages:10
Registered:February 2017
Location: Sweden
So I want to change the major traits of my IMP character after i´ve started the game. I was thinking the easiest way to do that is to change the number of IMP mercs allowed to two and then creating the one I want and simply dismissing the old character? Of course any way that makes me able to change my IMP major traits is a good way
Re: Changing difficulty settings midgame[message #352260 is a reply to message #352258] Thu, 01 February 2018 11:46 Go to previous messageGo to next message
silversurfer

 
Messages:2407
Registered:May 2009
You can't change the number of traits or the max number of IMPs during a campaign.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Re: Changing difficulty settings midgame[message #352262 is a reply to message #352260] Thu, 01 February 2018 14:00 Go to previous messageGo to next message
townltu

 
Messages:274
Registered:December 2017
Location: here
silversurfer wrote on Thu, 01 February 2018 11:46
You can't change the number of traits or the max number of IMPs during a campaign.

Scnr, nothing personal, its only the use of the term [can't] respectively the absoluteness it puts into the message,
which literally forces me to reply ;)

It took ~ 2 minutes to find the corresponding byte in RAM, based on binary compare of 2 saves with differnt max imps,
after changing it to 02h the message "you have already reached the maximum of IMP characters"
did not pop up anymore and the game allowed me to create the 2nd IMP, despite the setting of max IMPs = 1

Max number of traits is admittedly harder for me to find out,
though someone with deep insight into JA2 bits&bytes could probably also manage that.
But the required effort may not be justified ;)



@Slugg087: In case you want to change settings:
Make a binary compare of 2 saves with settings that differ only in the desired point,
and locate the decisive difference(there will be many;)
Most likely a change in the save will have no effect(value stored elsewhere?)
so copy a string(8+) of bytes which include the suspect,
run the game, load related save, and search for that string in RAM(hex editors allow that, e.g. hxd)
change the suspected byte to desired value and check in game if succcesful,
if so save in game to transfer the change from RAM into that specific savegame.
If not succesful, close JA2 and run it again, as your action may have corrupted the program,
and the flaw may become persistant for the current playthrough if it finds its way into the save.



btw, the exe appears not to store the group of values for the game start settings always at the same offset,
so forget the offset i mentioned in message 351939.
Re: Changing difficulty settings midgame[message #352267 is a reply to message #352262] Fri, 02 February 2018 10:11 Go to previous messageGo to next message
silversurfer

 
Messages:2407
Registered:May 2009
Well, my statement was meant for the average player who doesn't know how to memory edit or use a debugger. Also if you make such memory edits and there are side effects, you are on your own. That's why I won't recommend any such actions to anyone who can't fix it himself.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Re: Changing difficulty settings midgame[message #352355 is a reply to message #352262] Sun, 11 February 2018 16:01 Go to previous message
Slugg087

 
Messages:10
Registered:February 2017
Location: Sweden
Quote:
@Slugg087: In case you want to change settings:
Make a binary compare of 2 saves with settings that differ only in the desired point,
and locate the decisive difference(there will be many;)
Most likely a change in the save will have no effect(value stored elsewhere?)
so copy a string(8+) of bytes which include the suspect,
run the game, load related save, and search for that string in RAM(hex editors allow that, e.g. hxd)
change the suspected byte to desired value and check in game if succcesful,
if so save in game to transfer the change from RAM into that specific savegame.
If not succesful, close JA2 and run it again, as your action may have corrupted the program,
and the flaw may become persistant for the current playthrough if it finds its way into the save.


btw, the exe appears not to store the group of values for the game start settings always at the same offset,
so forget the offset i mentioned in message 351939.


Hmm I read your post and I barely understand what you´re saying. Then there is the task of actually doing it too, i´m guessing you need some sort of debugging program? which I don´t have. But it doesn´t matter that much in my savegame i´m not past omerta yet so I can just restart no prob. Thanks for the extensive response though
Previous Topic: Check on mods
Next Topic: Devin, Tanks, and other questions
Goto Forum:
  


Current Time: Fri Oct 19 07:52:53 EEST 2018

Total time taken to generate the page: 0.01068 seconds