Jump to content

Unlocked some modding helpers


Capyvara

Recommended Posts

Nice find trolcia.

Some of the commands described in there are not recognized or don't work as advertised though, I suspect the "documentation" is not up to date.

 

I feel like we are still missing something, possibly the "console command window" as it's called in the changelist description. For now all help, list and other dumping commands return nothing although they should (no error in the log must mean that the commands themselves are recognized). I'm still looking for a way to show that missing window, any help appreciated.

 

I noticed that AIdebugAI and showdebug are mutually exclusive, so bear that in mind when testing (you need to switch one off to see the other)

AIdebugAI will show unit names (XGUnit_[number]) which are useful for manipulation (needed for named kill or teleport commands for ex). The class for both soldiers and aliens is XGUnit.

Link to comment
Share on other sites

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

Anything that may help in taking control of an alien or editing a soldier to be an alien?

 

 

try this one verry funny especially if you swap sectopod.lol

 

 

 

SwapTeamsOnNearestUnit - u can swap all teams

Edited by trolcia
Link to comment
Share on other sites

When things go wrong and the console still works, try Exit command.

 

AIDebugModifiers - enhanced AiDebugAi showing abilities and actionque info.

AITextVerbose - adds lines to the above about AI behavior (it is mostly hunt even when falling back).

 

http://i.imgur.com/VMVYZ.jpg

XGUnit_0's abilities after run&gun

Obj Dump XGUnit_INT where INT is a number of the unit - dumps loads of info into the log, including team name (eTeam_XCom, eTeam_Alien; had no luck with ChangeTeam though).

 

Is there any way of logging Showlog output to a file?

Edited by Drakous79
Link to comment
Share on other sites

Hi, there.

 

I have found out that, for the LowerPanic command to work, the country must be entered with the first letter capped and the other in lower-case (i.e. Australia, not australia or AUSTRALIA).

 

Has anyone found a command to takeover aliens (except SwapTeamsOnNearestUnit) ?

Link to comment
Share on other sites

True, but if you're familiar with doing changes in hex editor, here's how to.

 

Sure, actually is a very simple change, here's my notes:

 

Engine.upk

Class Engine

native static final function bool IsRetailGame();

 

* Changed to return false instead of true

 

XComGame.exe

 

Changes:

0x3C8F15 | 01 > 00

0X3C8F22 | 01 > 00

 

Before:

003C8F10 | 44 24 08 C7 00 01 00 00 00 C2 08 00 8B 4C 24 08

003C8F20 | C7 01 01 00 00 00 C2 08 00 CC CC CC CC CC CC CC

 

After:

003C8F10 | 44 24 08 C7 00 00 00 00 00 C2 08 00 8B 4C 24 08

003C8F20 | C7 01 00 00 00 00 C2 08 00 CC CC CC CC CC CC CC

 

I think it's a good idea to backup and delete you config/save files, at "Documents\My Games\XCOM - Enemy Unknown"

Link to comment
Share on other sites

But I bet you can use open file, search and replace, save.

 

1. Backup the exe file.

 

2. Get some hex editor like HxD, install, run it, File | Open the exe.

 

3. Time for changes. Search | Replace or CTRL+R, switch Datatype to Hex-values, tick Search direction all and input:

Search for: 44 24 08 C7 00 01 00 00 00 C2 08 00 8B 4C 24 08
Replace with: 44 24 08 C7 00 00 00 00 00 C2 08 00 8B 4C 24 08

Click Replace all. Should return: Replaced 1 ocurrences.

 

Replace again:

Search for: C7 01 01 00 00 00 C2 08 00 CC CC CC CC CC CC CC
Replace with: C7 01 00 00 00 00 C2 08 00 CC CC CC CC CC CC CC

Click Replace all. Should return: Replaced 1 ocurrences.

 

Or you can just search for using CTRL+F, then hit F3 to make sure there are no more similar entries and change just one byte you see is different. 01 to 00.

Edited by Drakous79
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...