Jump to content

Unlock All Second Wave Options modlet


Amineri

Recommended Posts

Here is a small hex change that unlocks all Second Wave options regardless of status of completing Classic / Impossible.

 

It modifies only 1 function, UIGameplayToggles.UpdateData, bypassing the completion test.

 

Hex changes:

 

 

original hex:
07 B4 00 81 19 19 2E 9D 5F 00 00 19 12 20 4F FE FF FF 0A 00 D7 F9 FF FF 00 1C F5 FB FF FF 16 0A 00 D6 F9 FF FF 00 1B 3C 34 00 00 00 00 00 00 16 09 00 4A 5F 00 00 00 01 4A 5F 00 00 15 00 FF 5F 00 00 00 1B 6D 3D 00 00 00 00 00 00 38 3D 00 D4 19 00 00 16 16 06 8F 02 

new hex:
0B 0B 0B 81 19 19 2E 9D 5F 00 00 19 12 20 4F FE FF FF 0A 00 D7 F9 FF FF 00 1C F5 FB FF FF 16 0A 00 D6 F9 FF FF 00 1B 3C 34 00 00 00 00 00 00 16 09 00 4A 5F 00 00 00 01 4A 5F 00 00 15 00 FF 5F 00 00 00 1B 6D 3D 00 00 00 00 00 00 38 3D 00 D4 19 00 00 16 16 0B 0B 0B  

 

 

 

------------------------------------------------------

 

With more significant rework it might be possible to add additional Second Wave options that are created by us modders.

 

The number of Second Wave options is hard-coded into the same function via the loop:

    if(I < 16)

If this were increased, presumably the number of second wave options displayed would be increased.

 

Unfortunately the arrays that holds the Second Wave Gameplay options' localization strings is not a dynamic array, so cannot be re-sized easily:

var const localized string m_arrGameplayToggleTitle[EGameplayOption];
var const localized string m_arrGameplayToggleDesc[EGameplayOption];

The EGameplayOption enum is defined in XGGameData:

 

 

enum EGameplayOption
{
    eGO_RandomDamage,
    eGO_RandomFunding,
    eGO_RandomRookieStats,
    eGO_RandomStatProgression,
    eGO_WoundsAffectStats,
    eGO_CritOnFlank,
    eGO_InterrogateForPsi,
    eGO_Marathon,
    eGO_PanicAffectsFunding,
    eGO_VariableAbductionRewards,
    eGO_EscalatingSatelliteCosts,
    eGO_UltraRarePsionics,
    eGO_DecliningFunding,
    eGO_DegradingElerium,
    eGO_LoseGearOnDeath,
    eGO_MorePower,
    eGO_MAX
};

 

 

 

At this point I don't have any idea if it's possible to increase the enum size.

Link to comment
Share on other sites

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

The list that is displayed will be displayed regardless of any conditions.

 

According to Ufopaedia (http://www.ufopaedia.org/index.php?title=Second_Wave_(EU2012)), there are four initial options available even without having beaten the game (Damage Roulette, New Economy, Not Created Equal, and Hidden Potential).

 

Since the list is being displayed at all, this mod should unlock the entire list even if the game has never been beaten.

 

And that is correct, the change is to XComGame.upk.

Link to comment
Share on other sites

Can confirm that a fresh first time ever install (since patch 3 I believe) unlocks the first four Second Wave Options by default as Amineri stated.

 

I was late to the ball on this game and had said Second Wave options on my very first launch.

Link to comment
Share on other sites

  • 3 months later...

Enemy Within Update:

 

As expected the various function/variable references have changed, as have some of the jump offsets.

 

The basic code is pretty much unchanged, however.

 

Here's updated hex change to unlock all Second Wave options for Enemy Within:

original hex:
07 B4 00 81 19 19 2E 98 69 00 00 19 12 20 36 FE FF FF 0A 00 9D F9 FF FF 00 1C DD FB FF FF 16 0A 00 9C F9 FF FF 00 1B A0 3A 00 00 00 00 00 00 16 09 00 F4 68 00 00 00 01 F4 68 00 00 15 00 01 6A 00 00 00 1B 9D 44 00 00 00 00 00 00 38 3D 00 CB 1C 00 00 16 16 06 7F 03 

new hex:
0B 0B 0B 81 19 19 2E 98 69 00 00 19 12 20 36 FE FF FF 0A 00 9D F9 FF FF 00 1C DD FB FF FF 16 0A 00 9C F9 FF FF 00 1B A0 3A 00 00 00 00 00 00 16 09 00 F4 68 00 00 00 01 F4 68 00 00 15 00 01 6A 00 00 00 1B 9D 44 00 00 00 00 00 00 38 3D 00 CB 1C 00 00 16 16 0B 0B 0B 

This should be applied to the /XCom-Enemy-Unknown/XEW/XComGame/CookedPCConsole/XComGame.upk

 

update:

 

I decompressed XComGame.upk and applied the above patch, and the game ran without a hitch. I had all 21 SW options available.

 

Apparently the SHA hash checking has been removed, so XSHAPE / exe changes are no longer required in order to mod upk files.

 

Good times!

Edited by Amineri
Link to comment
Share on other sites

Hello, i was looking for hours for this Amineri..I would love to know how to mod it (I found it on wiki..but it really seems like something I am really not able to do..not right now)

Amineri, would be possible to provide us edited xcomgame.upk? It would help me really really much.

Thanks for any response :wink:

Edited by ManiaCCC
Link to comment
Share on other sites

 

Cool, new options:

  • Save Scum
  • Itchy Trigger Tentacle
  • Aiming Angles
  • Mind Hates Matter
  • Training Roulette

 

What does each do? Would be cool to know from first hand experience :3.

 

 

Ufopedia has the skinny here: http://www.ufopaedia.org/index.php?title=XCOM:_Enemy_Within_DLC_(EU2012)#New_Second_Wave_options.

 

I think the two biggest in terms of impact are Aiming Angles and Training Roulette. Although Itchy Trigger Tentacle may bring back memories of being shot from the FoW in original X-COM.

Link to comment
Share on other sites

Hello, i was looking for hours for this Amineri..I would love to know how to mod it (I found it on wiki..but it really seems like something I am really not able to do..not right now)

 

Amineri, would be possible to provide us edited xcomgame.upk? It would help me really really much.

 

Thanks for any response :wink:

 

I try to not get too much in the business of providing (and hence supporting) installable mods. While it would be great I much prefer the process of discovery, and supporting mods unfortunately takes time away from the more-enjoyable (to me) process of figuring out how things work.

 

I do my best to distribute the info, and am more than happy if others take that info and create more easily installed mods.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...