Jump to content

R&D Multiple Alien Bases / Retaking Lost Countries


Amineri

Recommended Posts

These are some fixes to the base code Amineri provided me for LW 2.0:

XGStrategy.PostCombat // Remove alien base destruction cinematic and other junk	(causing CTD)	

original hex:
07 36 11 9A 19 00 5F 41 00 00 09 00 35 37 00 00 00 01 35 37 00 00 2C 06 16 07 33 11 2D 00 5D 41 00 00 19 1B 12 22 00 00 00 00 00 00 16 0A 00 00 00 00 00 00 1B 46 11 00 00 00 00 00 00 16 19 1B 12 22 00 00 00 00 00 00 16 29 00 66 FF FF FF 00 1B 27 2B 00 00 00 00 00 00 20 F7 48 00 00 4A 43 00 22 00 00 00 00 00 00 00 00 00 00 4A 4A 4A 4A 16 A1 35 DF 02 00 00 F3 02 00 00 00 01 19 00 5B 41 00 00 09 00 90 23 00 00 00 01 90 23 00 00 26 16 19 1B 69 0E 00 00 00 00 00 00 16 20 00 00 00 00 00 00 1B B5 22 00 00 00 00 00 00 00 5F 41 00 00 2D 00 5D 41 00 00 4A 4A 4A 16 04 27 

new hex:
07 36 11 9A 19 00 5F 41 00 00 09 00 35 37 00 00 00 01 35 37 00 00 2C 06 16 07 33 11 2D 00 5D 41 00 00 A1 35 DF 02 00 00 F3 02 00 00 00 01 19 00 5B 41 00 00 09 00 90 23 00 00 00 01 90 23 00 00 26 16 19 1B 69 0E 00 00 00 00 00 00 16 20 00 00 00 00 00 00 1B B5 22 00 00 00 00 00 00 00 5F 41 00 00 2D 00 5D 41 00 00 4A 4A 4A 16 00 5B 41 00 00 00 5B 41 00 00 00 5B 41 00 00 00 5B 41 00 00 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 
XGStrategyAI.AddToAssets (change to prevent multiple bases from appearing in same country)

original hex:
header:
A4 44 00 00 AB 1F 00 00 00 00 00 00 A1 44 00 00 00 00 00 00 00 00 00 00 A4 44 00 00 00 00 00 00 01 0E 00 00 24 AD 01 00 A1 00 00 00 81 00 00 00 

body:
07 41 00 81 1B 18 14 00 00 00 00 00 00 00 A4 44 00 00 48 A3 44 00 00 16 16 55 48 A3 44 00 00 14 00 1B 8A 0E 00 00 00 00 00 00 00 A4 44 00 00 16 16 07 9E 00 84 9A 38 3A 00 A4 44 00 00 38 3A 24 08 16 18 12 00 9A 38 3A 00 A4 44 00 00 38 3A 24 10 16 16 07 9E 00 81 1B 18 14 00 00 00 00 00 00 24 11 48 A3 44 00 00 16 16 55 48 A3 44 00 00 0D 00 1B 8A 0E 00 00 00 00 00 00 24 11 16 16 04 0B 53 

new hex:
header:
A4 44 00 00 AB 1F 00 00 00 00 00 00 A1 44 00 00 00 00 00 00 00 00 00 00 A4 44 00 00 00 00 00 00 01 0E 00 00 24 AD 01 00 B1 00 00 00 81 00 00 00 

body:
0F 01 10 42 00 00 38 3A 00 A4 44 00 00 58 19 1B 69 0E 00 00 00 00 00 00 16 6D 00 94 2F 00 00 00 01 94 2F 00 00 00 EF 42 00 00 00 4A 98 00 07 97 00 9A 19 00 EF 42 00 00 09 00 35 37 00 00 00 01 35 37 00 00 2C 06 16 07 97 00 9A 19 00 EF 42 00 00 09 00 37 37 00 00 00 01 37 37 00 00 01 10 42 00 00 16 0B 30 04 0B 31 30 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 1B 5B 06 00 00 00 00 00 00 16 04 0B 53 

Also, you'll want to undo this change and make sure the vanilla code is in your upk (as the change was causing a CTD):

XGSatelliteSitRoomUI.UpdateContinent

original hex (vanilla):
0F 00 8A 3B 00 00 00 8A 3B 00 00 07 12 06 96 00 8A 3B 00 00 19 00 8D 3B 00 00 0A 00 DC 23 00 00 00 1B D9 0F 00 00 00 00 00 00 16 16 07 02 05 82 9A 00 8A 3B 00 00 19 00 8D 3B 00 00 09 00 8D 23 00 00 00 01 8D 23 00 00 16 18 1E 00 2D 35 F4 3A 00 00 F5 3A 00 00 00 00 01 61 3B 00 00 16 0F 35 D8 F9 FF FF 66 FA FF FF 00 01 00 89 3B 00 00 70 1B 29 10 00 00 00 00 00 00 92 00 8A 3B 00 00 26 16 16 1F 3A 00 16 0F 35 54 FB FF FF 66 FA FF FF 00 01 00 89 3B 00 00 2C 04 55 35 FE 3A 00 00 02 3B 00 00 00 00 00 8E 3B 00 00 0A 00 00 89 3B 00 00 16 0F 35 D8 F9 FF FF 66 FA FF FF 00 01 00 89 3B 00 00 1B 54 04 00 00 00 00 00 00 92 00 8A 3B 00 00 26 16 00 8D 3B 00 00 16 0F 35 54 FB FF FF 66 FA FF FF 00 01 00 89 3B 00 00 2C 04 55 35 FF 3A 00 00 02 3B 00 00 00 00 00 8E 3B 00 00 0A 00 00 89 3B 00 00 16 0F 35 FD 3A 00 00 02 3B 00 00 00 01 00 8E 3B 00 00 00 8A 3B 00 00 06 04 06 0F 35 D8 F9 FF FF 66 FA FF FF 00 01 00 89 3B 00 00 70 1B 29 10 00 00 00 00 00 00 92 00 8A 3B 00 00 26 16 16 1F 3A 00 16 0F 35 54 FB FF FF 66 FA FF FF 00 01 00 89 3B 00 00 26 55 35 FE 3A 00 00 02 3B 00 00 00 00 00 8E 3B 00 00 0A 00 00 89 3B 00 00 16 0F 35 D8 F9 FF FF 66 FA FF FF 00 01 00 89 3B 00 00 1B 54 04 00 00 00 00 00 00 92 00 8A 3B 00 00 26 16 00 8D 3B 00 00 16 0F 35 54 FB FF FF 66 FA FF FF 00 01 00 89 3B 00 00 26 55 35 FF 3A 00 00 02 3B 00 00 00 00 00 8E 3B 00 00 0A 00 00 89 3B 00 00 16 A5 00 8A 3B 00 00 16 06 5A 03 

new hex (Long War 2.0 beta):
07 12 06 96 00 8A 3B 00 00 19 00 8D 3B 00 00 0A 00 DC 23 00 00 00 1B D9 0F 00 00 00 00 00 00 16 16 14 2D 00 A4 3B 00 00 82 82 82 9A 00 8A 3B 00 00 19 00 8D 3B 00 00 09 00 8D 23 00 00 00 01 8D 23 00 00 16 18 1E 00 2D 35 F4 3A 00 00 F5 3A 00 00 00 00 01 61 3B 00 00 16 18 11 00 9B 01 5A 3B 00 00 1D FF FF FF FF 16 16 18 2C 00 81 19 1B 45 06 00 00 00 00 00 00 01 5A 3B 00 00 16 0A 00 41 24 00 00 00 1B B6 16 00 00 00 00 00 00 16 16 16 0F 35 D8 F9 FF FF 66 FA FF FF 00 01 00 89 3B 00 00 70 1B 29 10 00 00 00 00 00 00 92 00 8A 3B 00 00 26 16 16 1F 3A 00 16 0F 35 54 FB FF FF 66 FA FF FF 00 01 00 89 3B 00 00 45 2D 00 A4 3B 00 00 02 00 2C 04 01 00 26 55 35 FE 3A 00 00 02 3B 00 00 00 00 00 8E 3B 00 00 0A 00 00 89 3B 00 00 16 0F 35 D8 F9 FF FF 66 FA FF FF 00 01 00 89 3B 00 00 1B 54 04 00 00 00 00 00 00 92 00 8A 3B 00 00 26 16 00 8D 3B 00 00 16 0F 35 54 FB FF FF 66 FA FF FF 00 01 00 89 3B 00 00 45 2D 00 A4 3B 00 00 02 00 2C 04 01 00 26 55 35 FF 3A 00 00 02 3B 00 00 00 00 00 8E 3B 00 00 0A 00 00 89 3B 00 00 16 0F 35 FD 3A 00 00 02 3B 00 00 00 01 00 8E 3B 00 00 00 8A 3B 00 00 A5 00 8A 3B 00 00 16 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 00 8A 3B 00 00 06 47 03 

Link to comment
Share on other sites

  • Replies 43
  • Created
  • Last Reply

Top Posters In This Topic

Wow that's a lot of hex changes. I'll put together a ToolBoks mod and test it ASAP.

 

@Krazyguy75, yes I pretty much missed all that. Thanks.

 

@johnnylump, thanks for the code updates, much appreciated.

Link to comment
Share on other sites

@FogGene, Feel free to PM me with any questions you have about the changes when putting together the ToolBoks Custom Mod file

 

I ended up pretty much designing the mod around Long War, although most of it should work in a vanilla install. I'm really not sure about how the balance would work out in a vanilla game.

Link to comment
Share on other sites

Hey Amineri,

 

I just put it together and did some initial testing. I tried it in a previous save with three countries lost. I had a skeleton key thanks to your code I previously installed and I had already completed the story-mission base assault. This is what I've got so far:

 

- I was able to launch a satellite over each country, which triggered an alien base assault once I got coverage.

- I launched one assault for testing purposes and was able to regain the country. Yay!

- Upon finding the abduction pods inside the base, Dr. Vahlen dialogue about knowing what happened to the abductees was replayed (I think this was played the first time I assaulted the base, during the story). No other dialogues were played.

- On mission completed I retrieved a Hyperwave Beacon, which was added to my storage.

- Somehow my localization strings are not updated. I tried editing both XComStrategyGame.int files (one in XComGame folder, other in My Documents\blah...) to no avail.

- Not relevant, but something I found interesting: Inside the base there were heavy and elite versions of the enemies, in concordance with the enemies I'm finding now during my regular missions.

 

I have included johnnylump fixes, except for the change to XGSatelliteSitRoomUI.UpdateContinent, which I kept vanilla (I couldn't find these change in your posts though, maybe I missed that?).

 

Edit: And I forgot to say, thank you so so much for sharing this. I should get that virtual goat now :D

 

 

Also, for science, some discrepancies between your original hex and mine.

XGCountry.SetSatelliteCoverage // Prevent satellite coverage over occupied countries from granting bonuses - Body

Amineri
07 1B 00 F2 2D 01 32 24 00 00 2D 00 78 24 00 00 16 04 0B 14 2D 01 32 24 00 00 2D 00 78 24 00 00 19 1B 23 06 00 00 00 00 00 00 35 5D 1E 00 00 64 1E 00 00 00 00 01 34 24 00 00 16 30 00 00 00 00 00 00 1B F1 23 00 00 00 00 00 00 35 63 1E 00 00 64 1E 00 00 00 00 01 34 24 00 00 2D 00 78 24 00 00 16 07 D5 00 2D 00 78 24 00 00 1B B3 00 00 00 00 00 00 00 12 20 6D FE FF FF 09 00 D5 FB FF FF 00 02 D5 FB FF FF 4A 16 1B 64 03 00 00 00 00 00 00 16 06 F5 00 1B 64 03 00 00 00 00 00 00 16 40 01 2D 24 00 00 25 36 01 2D 24 00 00 16 04 0B 53

Fog.Gene
07 1B 00 F2 2D 01 32 24 00 00 2D 00 78 24 00 00 16 04 0B 14 2D 01 32 24 00 00 2D 00 78 24 00 00 19 1B 23 06 00 00 00 00 00 00 35 5D 1E 00 00 64 1E 00 00 00 00 01 34 24 00 00 16 30 00 00 00 00 00 00 1B F1 23 00 00 00 00 00 00 35 63 1E 00 00 64 1E 00 00 00 00 01 34 24 00 00 2D 00 78 24 00 00 16 07 D5 00 2D 00 78 24 00 00 1B B3 00 00 00 00 00 00 00 12 20 6D FE FF FF 09 00 D5 FB FF FF 00 02 D5 FB FF FF 4A 16 1B 64 03 00 00 00 00 00 00 16 06 F5 00 1B 20 27 00 00 00 00 00 00 16 40 01 2D 24 00 00 25 36 01 2D 24 00 00 16 04 0B 53
XGStrategyAI.CreateAlienBase // Body

Amineri
0F 00 05 43 00 00 1C A3 FD FF FF 20 75 37 00 00 4A 4A 4A 4A 4A 4A 4A 16 0F 19 00 05 43 00 00 09 00 31 37 00 00 00 01 31 37 00 00 1C A3 FD FF FF 20 7A FE FF FF 4A 4A 4A 4A 4A 4A 4A 16 05 6C FC FF FF 00 A7 2C 05 16 0A C5 00 25 0F 19 00 05 43 00 00 09 00 36 37 00 00 00 01 36 37 00 00 25 0F 19 00 05 43 00 00 09 00 39 37 00 00 00 01 39 37 00 00 1C B9 FD FF FF 1E BE 9F 9A 3E 1E 5E BA C9 3E 16 06 36 02 0A 20 01 26 0F 19 00 05 43 00 00 09 00 36 37 00 00 00 01 36 37 00 00 2C 04 0F 19 00 05 43 00 00 09 00 39 37 00 00 00 01 39 37 00 00 1C B9 FD FF FF 1E BE 9F 1A 3F 1E 10 58 F9 3E 16 06 36 02 0A 7C 01 2C 02 0F 19 00 05 43 00 00 09 00 36 37 00 00 00 01 36 37 00 00 2C 02 0F 19 00 05 43 00 00 09 00 39 37 00 00 00 01 39 37 00 00 1C B9 FD FF FF 1E 2F DD E4 3E 1E 29 5C 0F 3E 16 06 36 02 0A D8 01 2C 03 0F 19 00 05 43 00 00 09 00 36 37 00 00 00 01 36 37 00 00 2C 03 0F 19 00 05 43 00 00 09 00 39 37 00 00 00 01 39 37 00 00 1C B9 FD FF FF 1E 58 39 54 3F 1E 96 43 0B 3E 16 06 36 02 0A 33 02 2C 04 0F 19 00 05 43 00 00 09 00 36 37 00 00 00 01 36 37 00 00 26 0F 19 00 05 43 00 00 09 00 39 37 00 00 00 01 39 37 00 00 1C B9 FD FF FF 1E 2B 87 96 3E 1E C5 20 F0 3E 16 06 36 02 0A FF FF 0F 19 19 00 05 43 00 00 09 00 31 37 00 00 00 01 31 37 00 00 09 00 C1 F9 FF FF 00 01 C1 F9 FF FF 1B C4 07 00 00 00 00 00 00 16 0F 10 2C AC 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 2C 32 0F 10 2C B3 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 2C 03 0F 10 2C AB 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 38 44 AB 10 19 1B 4C 0E 00 00 00 00 00 00 16 0A 00 43 41 00 00 00 1B F6 0E 00 00 00 00 00 00 16 12 20 6D FE FF FF 09 00 CA FF FF FF 00 02 CA FF FF FF 38 3F 10 2C B3 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 16 0F 10 2C B2 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 2C 04 0F 10 2C B0 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 2C 0F 0F 10 2C AF 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 2C 0A 0F 10 2C AE 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 26 0F 10 2C B4 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 26 19 1B 69 0E 00 00 00 00 00 00 16 14 00 AC 2F 00 00 00 1B A9 00 00 00 00 00 00 00 00 05 43 00 00 4A 16 04 0B 53

Fog.Gene
0F 00 05 43 00 00 1C A3 FD FF FF 20 75 37 00 00 4A 4A 4A 4A 4A 4A 4A 16 0F 19 00 05 43 00 00 09 00 31 37 00 00 00 01 31 37 00 00 1C A3 FD FF FF 20 7A FE FF FF 4A 4A 4A 4A 4A 4A 4A 16 05 6C FC FF FF 00 A7 2C 05 16 0A C5 00 25 0F 19 00 05 43 00 00 09 00 36 37 00 00 00 01 36 37 00 00 25 0F 19 00 05 43 00 00 09 00 39 37 00 00 00 01 39 37 00 00 1C B9 FD FF FF 1E BE 9F 9A 3E 1E 5E BA C9 3E 16 06 36 02 0A 20 01 26 0F 19 00 05 43 00 00 09 00 36 37 00 00 00 01 36 37 00 00 2C 04 0F 19 00 05 43 00 00 09 00 39 37 00 00 00 01 39 37 00 00 1C B9 FD FF FF 1E BE 9F 1A 3F 1E 10 58 F9 3E 16 06 36 02 0A 7C 01 2C 02 0F 19 00 05 43 00 00 09 00 36 37 00 00 00 01 36 37 00 00 2C 02 0F 19 00 05 43 00 00 09 00 39 37 00 00 00 01 39 37 00 00 1C B9 FD FF FF 1E 2F DD E4 3E 1E 29 5C 0F 3E 16 06 36 02 0A D8 01 2C 03 0F 19 00 05 43 00 00 09 00 36 37 00 00 00 01 36 37 00 00 2C 03 0F 19 00 05 43 00 00 09 00 39 37 00 00 00 01 39 37 00 00 1C B9 FD FF FF 1E 58 39 54 3F 1E 96 43 0B 3E 16 06 36 02 0A 33 02 2C 04 0F 19 00 05 43 00 00 09 00 36 37 00 00 00 01 36 37 00 00 26 0F 19 00 05 43 00 00 09 00 39 37 00 00 00 01 39 37 00 00 1C B9 FD FF FF 1E 2B 87 96 3E 1E C5 20 F0 3E 16 06 36 02 0A FF FF 0F 19 19 00 05 43 00 00 09 00 31 37 00 00 00 01 31 37 00 00 09 00 C1 F9 FF FF 00 01 C1 F9 FF FF 1B C4 07 00 00 00 00 00 00 16 0F 10 2C AC 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 2C 4B 0F 10 2C B3 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 2C 03 0F 10 2C AB 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 38 44 AB 10 19 1B 4C 0E 00 00 00 00 00 00 16 0A 00 43 41 00 00 00 1B F6 0E 00 00 00 00 00 00 16 12 20 6D FE FF FF 09 00 CA FF FF FF 00 02 CA FF FF FF 38 3F 10 2C B3 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 16 0F 10 2C B2 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 2C 04 0F 10 2C B0 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 2C 0F 0F 10 2C AF 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 2C 0A 0F 10 2C AE 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 26 0F 10 2C B4 19 00 05 43 00 00 09 00 32 37 00 00 00 01 32 37 00 00 26 19 1B 69 0E 00 00 00 00 00 00 16 14 00 AC 2F 00 00 00 1B A9 00 00 00 00 00 00 00 00 05 43 00 00 4A 16 04 0B 53

Shamed to say I don't have any questions regarding your changes, I just apply them with blind faith. At some point I should learn more about UE3 coding, but I'm not there yet. For now, just a tester :smile:

Edited by FogGene
Link to comment
Share on other sites

Those UI Satellite Launch changes I thought I had listed up as "optional" as they pretty much require the "All Countries Contribute" modlet to be installed in order to work properly. Maybe I didn't end up posting them, though...

 

The original change was a purely cosmetic change (attempting to prevent the yellow/orange highlighting of the sci/eng line when launching a satellite over an occupied country). However, for some reason it ended up causing CTDs when launching sats in some cases.

 

The descrepency in SetSatelliteCoverage is probably because mine was built upon the All Countries Contribute Mod, which calls BeginPaying under all circumstances (whether satellite is gained or lost -- just the amount is lower with no satellite). In vanilla the BeginPaying is within the satellite launched branch of the conditional.

 

CreateAlienBase difference was probably a Long War thing where JL must have adjusted some of the Alien Base mission rewards.

Link to comment
Share on other sites

  • 4 months later...

Hey,

 

I have the ToolBoks custom mod I used for EU and I'd have no problem sharing it with you, Pukix. Thing is, I've been away for quite a while and I'm a bit reluctant to share anything that could break your game.

 

I don't think these changes have been updated to work with Enemy Within, and maybe not even with any recent patches. Does anybody know what are the current instructions for players that don't have EW? Have any recent patches screwed old EU mods, such as this one?

 

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

 

Edit: Heh, I just saw a thread regarding this that might be an interesting read, to whoever it may concern: http://forums.nexusmods.com/index.php?/topic/1235585-downgrade-enemy-unknown-to-patch-4-356266-r-d/

 

Pukix, it seems you can downgrade to Patch 4 (see link above) and use old mods. Not sure if this is needed for this mod, though. I'd suggest to ask around before doing anything.

 

In the meantime, I'm leaving here the custom mod I used to play with (see attachment). It should have all the relevant changes Amineri shared in this thread. Still, use at your own risk (and it probably wouldn't hurt if you double checked the hex code in your files, in case there are discrepancies like the ones I posted some time ago in this same thread).

Edited by FogGene
Link to comment
Share on other sites

To chime in quickly on this ...

 

I did some early experimenting with UPKmodder to update the Alien Bases mod (as I call it) to EU patch 6 (the latest), but I didn't do any in-game testing with it -- it was primarily done just as a test to see whether UPKmodder could find the references and convert them from one patch version to another.

 

It's definitely on my to-do list, but I haven't updated the mod for Enemy Within yet. I'm pretty much working in terms of "when the player encounters a feature" order, and the alien bases generally come a bit later than other things.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...