Difference between revisions of "Talk:Exercising The AI"

From UFOpaedia
Jump to navigation Jump to search
m
Line 10: Line 10:
  
 
: Finally reactivated the game in question, and used the patch to rectify some AI weirdness.  And promptly got myself into a "transfer black hole" -- purchased soldiers never arrived at the target base.  [Hex-edited my way out by setting the [[TRANSFER.DAT]] offset 0 to the target base, but that plausibly wasn't the correct way to do it.] -- [[User:Zaimoni|Zaimoni]] 21:32, 26 May 2008 (CDT)
 
: Finally reactivated the game in question, and used the patch to rectify some AI weirdness.  And promptly got myself into a "transfer black hole" -- purchased soldiers never arrived at the target base.  [Hex-edited my way out by setting the [[TRANSFER.DAT]] offset 0 to the target base, but that plausibly wasn't the correct way to do it.] -- [[User:Zaimoni|Zaimoni]] 21:32, 26 May 2008 (CDT)
 +
::I only tested this in tactical mode so yeah, there may be other side effects in geograph. Isn't there a patch to mimic DOS and have 2 binaries for geo/tactical? Maybe you can get away with patching only the tactical exe... I'll have a look and see where exactly the flag is used. [[User:Seb76|Seb76]] 04:56, 28 May 2008 (PDT)

Revision as of 11:56, 28 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)
Finally reactivated the game in question, and used the patch to rectify some AI weirdness. And promptly got myself into a "transfer black hole" -- purchased soldiers never arrived at the target base. [Hex-edited my way out by setting the TRANSFER.DAT offset 0 to the target base, but that plausibly wasn't the correct way to do it.] -- Zaimoni 21:32, 26 May 2008 (CDT)
I only tested this in tactical mode so yeah, there may be other side effects in geograph. Isn't there a patch to mimic DOS and have 2 binaries for geo/tactical? Maybe you can get away with patching only the tactical exe... I'll have a look and see where exactly the flag is used. Seb76 04:56, 28 May 2008 (PDT)