Jump to content

Photo

Unlock All Second Wave Options modlet


  • Please log in to reply
58 replies to this topic

#1
Amineri

Amineri

    Resident poster

  • Premium Member
  • 3,927 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:

Spoiler

 

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

 

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:

Spoiler

 

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



#2
johnnylump

johnnylump

    Resident poster

  • Supporter
  • PipPipPipPipPip
  • 7,425 posts

To clarify,  UIGameplayToggles.UpdateData is in XComGame.upk.

 

Do you know if it matters if the player has completed the game at all to unlock second wave?



#3
Amineri

Amineri

    Resident poster

  • Premium Member
  • 3,927 posts

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

 

According to Ufopaedia (http://www.ufopaedia...d_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.



#4
Zybertryx

Zybertryx

    Regular

  • Members
  • PipPip
  • 73 posts

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.



#5
Amineri

Amineri

    Resident poster

  • Premium Member
  • 3,927 posts

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, 13 November 2013 - 02:17 AM.


#6
Anbar

Anbar

    Enthusiast

  • Members
  • PipPip
  • 186 posts

FWIW - confirmed this works

 

xcom-ew.jpg


Edited by Anbar, 13 November 2013 - 04:35 PM.


#7
ManiaCCC

ManiaCCC

    Stranger

  • Members
  • Pip
  • 4 posts

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, 13 November 2013 - 04:31 PM.


#8
osito2dancer

osito2dancer

    Enthusiast

  • Supporter
  • PipPip
  • 111 posts

FWIW - confirmed this works

 

xcom-ew.jpg

 

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.



#9
Amineri

Amineri

    Resident poster

  • Premium Member
  • 3,927 posts

 

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...nd_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.



#10
Amineri

Amineri

    Resident poster

  • Premium Member
  • 3,927 posts

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.






IPB skins by Skinbox
Page loaded in: 1.033 seconds