Difference between revisions of "Talk:Exercising The AI"

From UFOpaedia
Jump to navigation Jump to search
Line 1: Line 1:
Looks like the developers left some debug code behind. The code is activated depending on a variable which of course, is always set to 0. However if you manage to change it to 1, you get full map disclosure at startup, every alien movement is visible, and as an added bonus you are able to select the alien units at the end of their turn to see their stats and equipment. And the icing on the cake: you can even control them with what's left of their TUs! Hope this'll help further analysis of game ;-). Here is a patch for the CE edition to activate the sleeping code.
+
Looks like the developers left some debug code behind. The code is activated depending on a variable which of course, is always set to 0. However if you manage to change it to 1, you get full map disclosure at startup, every alien movement is visible, and as an added bonus you are able to select the alien units at the end of their turn to see their stats and equipment. And the icing on the cake: you can even control them with what's left of their TUs! Hope this'll help further analysis of the game ;-). Here is a patch for the CE edition to activate the sleeping code.
 
At offset 025455h, replace:
 
At offset 025455h, replace:
 
  C3 90 90 90 90 90 90 90
 
  C3 90 90 90 90 90 90 90
Line 7: Line 7:
  
 
: Interesting, standard technique for manually patching out code. -- [[User:Zaimoni|Zaimoni]] 18:41, 2 May 2008 (CDT)
 
: Interesting, standard technique for manually patching out code. -- [[User:Zaimoni|Zaimoni]] 18:41, 2 May 2008 (CDT)
 +
:: Another more extensive example is here if you want to play with patches: [[Image:Ufo weight.zip]]. I hardly got any feedack from it so feel free to report problems ;-) [[User:Seb76|Seb76]] 02:40, 3 May 2008 (PDT)

Revision as of 09:40, 3 May 2008

Looks like the developers left some debug code behind. The code is activated depending on a variable which of course, is always set to 0. However if you manage to change it to 1, you get full map disclosure at startup, every alien movement is visible, and as an added bonus you are able to select the alien units at the end of their turn to see their stats and equipment. And the icing on the cake: you can even control them with what's left of their TUs! Hope this'll help further analysis of the game ;-). Here is a patch for the CE edition to activate the sleeping code. At offset 025455h, replace:

C3 90 90 90 90 90 90 90

with

66 FF 05 D2 7B 47 00 C3

Have fun! Seb76 05:55, 2 May 2008 (PDT)

Interesting, standard technique for manually patching out code. -- Zaimoni 18:41, 2 May 2008 (CDT)
Another more extensive example is here if you want to play with patches: File:Ufo weight.zip. I hardly got any feedack from it so feel free to report problems ;-) Seb76 02:40, 3 May 2008 (PDT)