Xcom 2 War of the Chosen

DrummerIX

RCE Fanatics
Talents
Fearless Donors
Mar 22, 2017
739
120
43
#1
I modified Zanzer's original table for Xcom2 to make the unit pointers work with War of the Chosen. I haven't touched the Resource options yet, but I believe I have stats working for the unit pointers. Not sure about skills and the like. Some offsets have changed between versions.

I incorporated options for minimum stats of the first character selected. I've only tested this in the fighting map. You select a character in-game and then enable the Soldier Stats option. This sets minimum stats on the one you selected. I then select another soldier and then disable and re-enable the Soldier Stats option to set minimum stats on that soldier.

Zanzer's table made hacking this expansion easier. Just had to find new injection point and change some offsets of things that moved around. Many thanks to him.

EDIT1: Forgot to edit some other things to make it work. Disregard first file posted.

EDIT2: Attempted to modify the Skill options. I haven't tested them, but most things moved offsets by 0x24, so I just added that to everything. Hope it works for you if you need to use them. I'm not sure what else I will do. You can enable the console to cheat many things also.

EDIT3: I reworked the table to allow for disabling the automatic setting of minimum stats when you enable the Soldier Stat option per many requests. To enable the setting of minimum stats for everything, I put in an option that turns everything on; otherwise adjust as you see fit and enable/disable the Soldier Stat option as necessary. You can use the console for many cheats including setting resources.

EDIT4: Uploaded an incorrect table. Try things with this one.

EDIT5: I found the issue when trying to set stats from the Armory. It appears the pointers are always the same order of the list of soldiers in the armory, so you have to use this EDIT5 file and then there is an option for Selected Unit. Change this to the unit you want to edit along with the correct settings of the variables controlling which stats you want to set minimums too. It might take a few seconds for variables to update, but it will update that soldier when doing it from the Armory screen.

EDIT6: I changed a few things and hopefully this one doesn't crash for you. It wasn't crashing for me, but I now save the code registers in better manner.
 

Attachments

  • XCom2.CT

    Initial file (Modified Zanzer's Xcom2 table for War of the Chosen)

    413.9 KB Views: 6,541
  • XCom2.CT

    EDIT2 file (Fixed Skill options offsets but haven't tested them. Also added Armor to Minimum Stats that can be set)

    413 KB Views: 3,244
  • XCom2.CT

    EDIT4 file (reworked table to disable setting of minimum stats unless you want to)

    41.8 KB Views: 1,579
  • XCom2.CT

    EDIT5 file (reworked setting minimums from Armory (use Selected Unit))

    41.8 KB Views: 3,772
  • XCom2.CT

    EDIT6 file (reworked option to account for crashing)

    41.9 KB Views: 16,641
Aug 29, 2017
7
0
1
#3
Anyway to remove the automatic change to soldier stats when you open it so it the soldier dosent become god-like with crit chance, detection etc?
I just wanna give 2 soldiers health, aim, dodge, and mobility buffs. I dont want them to crit every shot and see the whole map. :D

Btw awesome you got it up so quick, go you! :D
 

Las0mbra

Novice Cheater
Mar 17, 2017
22
2
3
#4
Wolfman217 post_id=16302 time=1504021544 user_id=8169 said:
Anyway to remove the automatic change to soldier stats when you open it so it the soldier dosent become god-like with crit chance, detection etc?
Double click <script> to open it. Lines 69 to 110 contain the starting values for the variables the script uses. dd 1 means it's enabled when activating the script dd 0 means it's disabled.

I forgot to mention you have to click "OK" for the change to take effect the next time the script is activated. And don't forget to save the table unless you want the table to revert to the authors default values.

An example:
Code:
enabled by default:
bEnableMinFlankingCritChance:
dd 1

disabled by default:
bEnableMinFlankingCritChance:
dd 0
You can also change the minimum Value to your liking.
 

gear2002

What is cheating?
Aug 29, 2017
2
0
1
#5
Thanks for the updates! Really appreciate it.

I'm having issues updating stats on soldiers. Tried it from Avenger view and in the fighting map and I can't get it to pull up soldiers' data. Any tips?

Thanks!
 

DrummerIX

RCE Fanatics
Talents
Fearless Donors
Mar 22, 2017
739
120
43
#6
gear2002 post_id=16319 time=1504028654 user_id=8173 said:
Thanks for the updates! Really appreciate it.

I'm having issues updating stats on soldiers. Tried it from Avenger view and in the fighting map and I can't get it to pull up soldiers' data. Any tips?

Thanks!
I would make sure you are on the latest Cheat Engine (6.7). It's working for me and some others it appears. The first file I posted had some problems, but I re-uploaded a good file soon after.
 

Las0mbra

Novice Cheater
Mar 17, 2017
22
2
3
#7
@gear2002

Here's how I use the script:

First I edited the script as described 3 posts back. Disabling the options I don't want and changing the values to my liking.
Then I set a hotkey to toggle the script. This is optional but safes a lot of clicking and alt-tabing.

On the Avenger having the list of soldiers in front of me I activate the script and click on the soldier I like to edit. The changes are immediately apparent. I deactivate the script and am done. At least if I want to change only one soldier. Otherwise I go back to the list, activate the script and click on the next one. Rinse and repeat.

As far as I can tell the script (at the moment at least) triggers only on the first soldier it registers. Scrolling through the troops didn't seem to change wich soldier the table showed me. So deactivating and reactivating the script seems to be a necessity.
 
Aug 29, 2017
7
0
1
#8
Las0mbra post_id=16311 time=1504025908 user_id=1280 said:
Wolfman217 post_id=16302 time=1504021544 user_id=8169 said:
Anyway to remove the automatic change to soldier stats when you open it so it the soldier dosent become god-like with crit chance, detection etc?
Double click <script> to open it. Lines 69 to 110 contain the starting values for the variables the script uses. dd 1 means it's enabled when activating the script dd 0 means it's disabled.

An example:
Code:
enabled by default:
bEnableMinFlankingCritChance:
dd 1

disabled by default:
bEnableMinFlankingCritChance:
dd 0
You can also change the minimum Value to your liking.
Disabling them didn't work, it still did it anyway, but I edited the values to my liking :D So sorted hopefully.

Cheers :D

OP, Hows the skill script coming along? I want my Super Soldier Ranger and Specialist with alllll the SKills :D Thats what I meant my the 2 soldiers, I give my self a Ranger and Specialist with 8 health, 24 mobility, 100 aim, 100 will, 50 dodge and all da skills (of their respective classes) then the rest and everything else normal, so i've got a Super Soldier Duo ( 1 male 1 female) for important missions and emergencies. They're not God-like, but my Super Soldier Shepard Twins.
 

Las0mbra

Novice Cheater
Mar 17, 2017
22
2
3
#9
Wolfman217 post_id=16324 time=1504029958 user_id=8169 said:
Disabling them didn't work, it still did it anyway, but I edited the values to my liking :D So sorted hopefully.

Cheers :D
I'm confused that one worked and the other one didn't but doesn't really matter as long as you are happy. :)
 

gear2002

What is cheating?
Aug 29, 2017
2
0
1
#10
Las0mbra post_id=16323 time=1504029592 user_id=1280 said:
@gear2002

Here's how I use the script:

First I edited the script as described 3 posts back. Disabling the options I don't want and changing the values to my liking.
Then I set a hotkey to toggle the script. This is optional but safes a lot of clicking and alt-tabing.

On the Avenger having the list of soldiers in front of me I activate the script and click on the soldier I like to edit. The changes are immediately apparent. I deactivate the script and am done. At least if I want to change only one soldier. Otherwise I go back to the list, activate the script and click on the next one. Rinse and repeat.

As far as I can tell the script (at the moment at least) triggers only on the first soldier it registers. Scrolling through the troops didn't seem to change wich soldier the table showed me. So deactivating and reactivating the script seems to be a necessity.
Yes that worked! You really do have to deactivate and reactivate so definitely do that step.

Thanks!
 

Las0mbra

Novice Cheater
Mar 17, 2017
22
2
3
#11
I tried to find a way to cheat ActionPoint but didn't have any luck ingame. Instead I found a config file containing "AbilityPointCosts" and "StartingValueAbilityPoints".

So you can if you want start the game with as many XCom Ability Points as you want or change how much the Abilities of each rank cost.


The file is "DefaultGameData.ini" in the folder ".\XCOM 2\XCom2-WarOfTheChosen\XComGame\Config".
The necessary lines start at 547 and 1170 and may change with future updates. It's best to search for the terms I put in quotation marks at the top.
 

SlipperyEel

What is cheating?
Aug 30, 2017
1
0
1
#12
DrummerIX post_id=16291 time=1504003134 user_id=1466 said:
I'm not sure what else I will do.
Would it be possible to simply expose the current values for the soldier stats rather than automatically changing them? That way people could directly edit individual values as they see fit without needing to edit the script.

Being able to set the values of intel, supplies, alloys, elerium crystals, and elerium cores while in the base would be handy as well.
 

Renegadewolf

What is cheating?
Aug 30, 2017
1
0
1
#13
So I'm having quite a bit of trouble figuring out what I'm doing wrong.
When I attempt to activate the "Soldier Profile" script by checking the box, it doesn't open at all.. let alone readout my soldier's stats.

I have gotten it to work before, for sure, but I don't know what I was doing differently then.
 

DrummerIX

RCE Fanatics
Talents
Fearless Donors
Mar 22, 2017
739
120
43
#14
Renegadewolf post_id=16411 time=1504122234 user_id=8196 said:
So I'm having quite a bit of trouble figuring out what I'm doing wrong.
When I attempt to activate the "Soldier Profile" script by checking the box, it doesn't open at all.. let alone readout my soldier's stats.

I have gotten it to work before, for sure, but I don't know what I was doing differently then.
My Edit3 table was incorrect. Try things with my EDIT4 table.
 

Verltei

What is cheating?
Aug 30, 2017
1
0
1
#15
Is it possible to add in individual character ability points? The stuff you can use in the training center to max out the skill tree?
 

whscorbin

What is cheating?
Aug 30, 2017
1
0
1
#16
Any chance on finding a way to freeze world timer or edit the world timer?

Thanks for all of your work BTW!
 

ArthurLi

What is cheating?
Aug 30, 2017
1
0
1
#17
Help me please. I used your script and only a few soldiers upgraded their stats. I do not understand how to make the script work for everyone (even for SPARK).
 

rpgweb

What is cheating?
Aug 31, 2017
2
0
1
#18
The Edit 5 seems to be crashing my Xcom 2 War of the Chosen game. Whenever i browse the armory, the game stops working :-(
Dunno if it's related but i have the following DLCs installed:
-Alien hunters
-Anarchy's children
-Reinforcement pack
-Shen's last gift
-War of the chosen
-Resistance warrior pack
 

DrummerIX

RCE Fanatics
Talents
Fearless Donors
Mar 22, 2017
739
120
43
#19
I am using EDIT5 file fine without crashing and I think I have all the DLC also.

I noticed if you use some console commands, the game gets unstable (the ones for TakeNoDamage or PowerUp for instance)

The way the file works, is you have to enable the options you want to set minimum stats (it defaults to nothing). Then if you're in the Armory, you have to enable the Soldier Stats and move through the list using the Selected Unit option. If you're in the fighting map, you can just select the soldier and enable/disable the Soldier Stats option to edit that particular soldier.
 
Aug 31, 2017
5
0
1
#20
Attached is an empty table with an updated soldier structure. I would have uploaded the structure but this site, like the old one, doesn't recognize .csx files...

Notable Offsets from base:
+158 Current AP
+788 Combat int
There appear to be different values for hero units vs soldiers. Haven't done much testing so far, was just super happy to find it finally. It is very out of place from where it should have been.
Soldiers (4 byte hex):
00000000 - sometimes used for standard on soldiers and heroes
00010000
00010001
00010002
00010003
00010004 - savant
Heroes (4 byte hex):
00010600
00010601
00010602
00010603
00010604 - savant
+A38 Soldier bonds, still need to figure out the specifics of this
+A6C Ability tree
The entire ability tree is now copied into a unit's structure upon creation, this is to support the randomized abilities on heroes.
+C78 The AWC pointer is now all the way down here
+C80 # of awc abilities
 

Attachments

  • wotc struct.CT

    Just contains the soldier structure, no scripts.

    739 KB Views: 692
Top Bottom