Author Topic: Improve AI of vanilla Mech Commander 2  (Read 2087 times)

0 Members and 1 Guest are viewing this topic.

Improve AI of vanilla Mech Commander 2
Hey all!
I recently rediscovered my old Mech Commander 2 CD, and I even managed to get it working! However, the AI is still as terrible as I remember it, locking on to the first mech it sees..

Now I have seen that there's a ton of great new things in OmniTech (thanks a lot for all the work!), and I can't wait to try that out. I would like to play through the original game first though - and nostalgia demands I stick to my german version too! Therefore I wanted to ask if there's a simple way to improve the AI of the vanilla game, and if anyone could give me some hints on how to do this. Any help would be much appreciated. :)

Thanks a lot!

 

Offline magic

  • Moderator
  • 211
Re: Improve AI of vanilla Mech Commander 2
Copy corebrain.abx from omnitech/data/missions folder to your Mc2/data/missions folder.
Should be compatible even with old MC2...

 
Re: Improve AI of vanilla Mech Commander 2
Hey Magic, thanks a lot for your reply! I tried doing that, but sadly whenever the map loads the game crashes with the following error. Any idea what might be missing?

Quote
STOP      : SYNTAX ERROR data\missions\corebrain.abx [line 569] - (type 13) Undefined identifier "gettargetrelativeposition"

Address   : 0x0047648C
Location  : ablFatalCallback()+0xC
File      : C:\mc2build\mechcmd2\Code\ablmc2.cpp(6565)

Call Stack
==========
0x00567260 ABL_Fatal()+0x10                 C:\mc2build\mechcmd2\MCLib\Ablerr.cpp(146)
0x005672CF syntaxError()+0x4F               C:\mc2build\mechcmd2\MCLib\Ablerr.cpp(166)
0x0058686C searchAndFindAllSymTables()+0x1C C:\mc2build\mechcmd2\MCLib\Ablsymt.cpp(110)
0x0058954F statement()+0x3F                 C:\mc2build\mechcmd2\MCLib\Ablstmt.cpp(500)
0x0055CC36 routine()+0xF6                   C:\mc2build\mechcmd2\MCLib\Ablrtn.cpp(1290)
0x00588249 declarations()+0x69              C:\mc2build\mechcmd2\MCLib\Abldecl.cpp(165)
0x0055BDBF ABLi_preProcess()+0x1CF          C:\mc2build\mechcmd2\MCLib\Ablrtn.cpp(648)
0x0055C5D6 ABLi_loadLibrary()+0x76          C:\mc2build\mechcmd2\MCLib\Ablrtn.cpp(969)
0x0047C2A3 Mission::init()+0x11A3           C:\mc2build\mechcmd2\Code\mission.cpp(2252)
0x73696D5C                                 

Processor Registers EAX=0x00000000 EBX=0x00000000 ECX=0x00000000 EDX=0x00000000 Flags=0x00000000
=================== ESI=0x00000000 EDI=0x00000000 EBP=0x0018C0EC ESP=0x0018BB84   EIP=0x0047648C
EIP (0x0047648C) 83 C4 04 85 C0 74 01 CC 5D C2 08 00 90 90 90 90 90 90 90 90 8B 0D B4 5D 6D 00 81 EC 0C 01 00 00
ESP (0x0018BB84) 0018C0E0 137E26C2 76A4D354 137E2886 00000000 00000002 0E27CDB8 0E5F8980
                 01040048 0002000C 075B08B8 00C80150 0000000F 00C80000 00C80150 000004A0
                 0036408C 00C80150 02000002 00022CC0 40000040 00000040 00003BF8 000007FF

Machine details
===============
Executable name           : C:\Program Files (x86)\Microsoft Games\MechCommander2\Mc2Rel.exe
Executable time, date     : 22:40:08 Monday 3/11/2002
Command line              :
Current directory         : C:\Program Files (x86)\Microsoft Games\MechCommander2
Current time, date        : 18:01:08 Thursday 9/21/2017
GameOS build version      : Version 1.1 11/2/2000
Software rasterizer       : c:\program files (x86)\microsoft games\mechcommander2\assets\binaries\blade.dll (Size 286,786 bytes)
User name                 : Chris
Machine name              : CHRIS-PC
Processor                 : 2594MHz Intel Unknown (0x6d0) MMX SSE Model=13, Type=6, Stepping=4 (Four Processors)
Cache Information         : L1: 0K code / 0K data  L2: 0K
L2 r/w/rw speed           : 1 cycles 83008MB/s, 5 cycles 16601MB/s, 2 cycles 41504MB/s
Main memory r/w/rw speed  : 6 cycles 13834MB/s, 11 cycles 7546MB/s, 3 cycles 27669MB/s
Video memory r/w/rw speed : 1 cycles 83008MB/s, 3 cycles 27669MB/s, 2 cycles 41504MB/s
AGP memory r/w/rw speed   : 1 cycles 83008MB/s, 4 cycles 20752MB/s, 2 cycles 41504MB/s
Operating system          : Windows 2000 (5.1.2600)  Service Pack 3
DirectX version           : 9.04.00.0904
Time since booted         : 0h 12m 39s
Time in game logic        : 0h 0m 20.32s (on frame 599)
Time app running          : 0h 0m 20.32s
Physical memory           : 1,073,741,823 bytes (1024 Meg)
Available physical memory : 1,073,741,823 bytes (1024 Meg)
Swapfile size             : 2,147,483,647 bytes (2048 Meg)
Swapfile available        : 1,073,741,823 bytes (1024 Meg)
Virtual memory            : 2,147,352,576 bytes (2048 Meg)
Available virtual memory  : 1,525,256,192 bytes (1455 Meg)
Amount of stack used      : 17756 bytes
Memory load               : 63%
Desktop video mode        : 1920,1080 32bpp
Mode when crash occured   : Full Screen 1280x1024x32 Refresh=60Hz (dgVoodoo DirectX Wrapper)
Networked Machine         : No
Executable version        : 00.01.06.2522
PCI Chipset               : Unknown

               Processes  Pri Threads Path
==========================================
             TPONSCR.EXE :  8 :   7 : C:\PROGRA~1\Lenovo\HOTKEY\TPONSCR.EXE
           NvBackend.exe :  8 :   8 : C:\Program Files (x86)\NVIDIA Corporation\Update Core\NvBackend.exe
            TpKnrres.exe :  8 :  11 : C:\Program Files\Lenovo\Communications Utility\TpKnrres.exe
            iusb3mon.exe :  8 :   4 : C:\Program Files (x86)\Intel\Intel(R) USB 3.0 eXtensible Host Controller Driver\Application\iusb3mon.exe
               vpnui.exe :  8 :   8 : C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\vpnui.exe
             Dropbox.exe :  8 : 119 : C:\Program Files (x86)\Dropbox\Client\Dropbox.exe
             Dropbox.exe :  8 :   7 : C:\Program Files (x86)\Dropbox\Client\Dropbox.exe
             Dropbox.exe :  8 :   5 : C:\Program Files (x86)\Dropbox\Client\Dropbox.exe
        QuickControl.exe :  8 :  11 : C:\Program Files (x86)\Lenovo\QuickControl\QuickControl.exe
             firefox.exe :  8 :  76 : C:\Program Files (x86)\Mozilla Firefox\firefox.exe
             firefox.exe :  8 :   9 : C:\Program Files (x86)\Mozilla Firefox\firefox.exe
             firefox.exe :  8 :  56 : C:\Program Files (x86)\Mozilla Firefox\firefox.exe
               avgnt.exe :  6 :   7 : C:\Program Files (x86)\Avira\Antivirus\avgnt.exe
       Avira.Systray.exe :  8 :  25 : C:\Program Files (x86)\Avira\Launcher\Avira.Systray.exe
              pidgin.exe :  8 :  11 : C:\Program Files (x86)\Pidgin\pidgin.exe
           LSCNotify.exe :  6 :   2 : C:\Program Files\Lenovo\Lenovo Solution Center\LSCNotify.exe
              Mc2Rel.exe :  8 :  33 : C:\Program Files (x86)\Microsoft Games\MechCommander2\Mc2Rel.exe
            AdobeARM.exe :  6 :   9 : C:\Program Files (x86)\Common Files\Adobe\ARM\1.0\AdobeARM.exe
           Reader_sl.exe :  6 :   3 : C:\Program Files (x86)\Adobe\Reader 11.0\Reader\Reader_sl.exe

DLL Version numbers
===================
msvcrt.dll    - Version 6.00.8337.0 - Found in C:\Program Files (x86)\Microsoft Games\MechCommander2
msvcrtd.dll   - Version 6.00.8337.0 - Found in C:\Program Files (x86)\Microsoft Games\MechCommander2
msvcirt.dll   - Version 6.00.8168.0 - Found in C:\Program Files (x86)\Microsoft Games\MechCommander2
msvcirtd.dll  - Version 6.00.8168.0 - Found in C:\Program Files (x86)\Microsoft Games\MechCommander2
amstream.dll  - Version 6.6.7600.16385
quartz.dll    - Version 6.6.7600.16385
Ir50_32.dll   - Version R.5.10.15.2.55
dsound.dll    - Version 6.1.7600.16385
dinput.dll    - Version 6.1.7600.16385
d3dim.dll     - Version 6.1.7600.16385
ddraw.dll     - Version 2.5.4.0
dplayx.dll    - Version 6.1.7600.16385

Sound device 0 (Current) - (HW Mixing Disabled)
==============
Description        : Speaker/HP (Realtek High Definition Audio)
Driver file        : {0.0.0.00000000}.{499379d1-6c71-4385-af82-2243d2ce5662}
Driver file data   : Cannot find driver file
CERTIFIED          : No
EMULDRIVER         : No
CONTINUOUSRATE     : Yes
PRIMARYMONO        : Yes
PRIMARYSTEREO      : Yes
PRIMARY8BIT        : Yes
PRIMARY16BIT       : Yes
SECONDARYMONO      : Yes
SECONDARYSTEREO    : Yes
SECONDARY8BIT      : Yes
SECONDARY16BIT     : Yes
MinSecondarySampleRate      : 100
MaxSecondarySampleRate      : 200000
PrimaryBuffers              : 1
MaxHwMixingAllBuffers       : 1
MaxHwMixingStaticBuffers    : 1
MaxHwMixingStreamingBuffers : 1
FreeHwMixingAllBuffers      : 0
FreeHwMixingStaticBuffers   : 0
FreeHwMixingStreamingBuffers: 0
MaxHw3DAllBuffers           : 0
MaxHw3DStaticBuffers        : 0
MaxHw3DStreamingBuffers     : 0
FreeHw3DAllBuffers          : 0
FreeHw3DStaticBuffers       : 0
FreeHw3DStreamingBuffers    : 0
TotalHwMemBytes             : 0
FreeHwMemBytes              : 0
MaxContigFreeHwMemBytes     : 0
UnlockTransferRateHwBuffers : 0
PlayCpuOverheadSwBuffers    : 0

Video device 0
==============
Description        : dgVoodoo DirectX Wrapper
Driver file        : dgVoodoo
Driver file data   : Cannot find driver file
Version            : 0.0.0000
Hardware ID        : 0000.0000 (Rev 0, Subsys 0x0)
Video memory       : 67,108,864 bytes (64 Meg)
Card texture mem   : 67,108,864 bytes (64 Meg)
AGP texture memory : 67,108,864 bytes (64 Meg)
FourCC modes       : DXT1 DXT2 DXT3 DXT4 DXT5                                                       
Texture formats    : 8bit 555 1555 4444 565 0888 8888 Bump map DuDv (8,8) Bump map DuDv (5,5) Bump map DuDv (8,8) FourCC (1TXD) FourCC (2TXD) FourCC (3TXD) FourCC (4TXD) FourCC (5TXD) 8 bit Luminance
Z Buffer formats   : 16 bit Z 24 bit Z (Z=32 (0xffffff) Stencil=8 (0xff000000)) 32 bit Z 32 bit Z
16 bit modes       : 512x384 640x400 640x480 800x600 1024x768 1280x720 1280x768 1280x800 1280x1024 1360x768 1366x768 1400x1050 1440x900 1600x900 1680x1050 1920x1080
32 bit modes       : 512x384 640x400 640x480 800x600 1024x768 1280x720 1280x768 1280x800 1280x1024 1360x768 1366x768 1400x1050 1440x900 1600x900 1680x1050 1920x1080
CERTIFIED          : No
DRAWPRIMITIVES2    : Yes
DRAWPRIMITIVES2EX  : Yes
DRAWPRIMTLVERTEX   : Yes
FLIPINTERVAL       : Yes
FLIPNOVSYNC        : Yes
NO2DDURING3DSCENE  : No
NONLOCALVIDMEM     : Yes
NOPAGELOCKREQUIRED : No
CALIBRATE GAMMA    : No
PRIMARYGAMMA       : Yes
ZBuffer            : 16 24
Render Depth       : 16 32
Texture Size       : 1x1 to 2048x2048
Maximum u,v coords : 8192.0
Guard Band Clipping: -1048576,-1048576 to 1048576,1048576
AlphaTest NotEqual : Yes
Missing Src blend  :
Missing Dest blend :
AGP Texture        : Yes
Texture Coords     : 8
Blend Stages       : 8
Max Textures       : 8
Hardware T&L       : Yes
Vertex Blending    : 4
Maximum Lights     : 8
Clip Planes        : 6
Blend Lightmap     : Ok
Blend Specularmap  : Ok
Blend Detail       : Ok
Linear vid memory  : Yes
SELECTARG1         : Yes
SELECTARG2         : Yes
ADD                : Yes
ADDSIGNED          : Yes
SUBTRACT           : Yes
MODULATE           : Yes
MODULATE2X         : Yes
MODULATE4X         : Yes
BLENDCURRENTALPHA  : Yes
BLENDDIFFUSEALPHA  : Yes
BLENDTEXTUREALPHA  : Yes
BUMPENVMAP         : Yes
BUMPENVMAPLUMINANCE: Yes
DOTPRODUCT3        : Yes
ANISOTROPY         : Yes
ANTIALIASSORTINDEP : No
FOGTABLE           : Yes
FOGVERTEX          : Yes
FOGRANGE           : Yes
WFOG               : Yes
WBUFFER            : No
MIPMAPLODBIAS      : Yes
WBUFFER            : No
ZBUFFERLESSHSR     : No
MIPNEAREST         : Yes
LINEARMIPLINEAR    : Yes
DONOTSTRIPELEMENTS : Yes
TEXTURE CLAMP      : Yes
TEXTURE BORDER     : Yes
TEXTURE MIRROR     : Yes
ALPHAGOURAUDBLEND  : Yes
SQUAREONLY         : No
COLORFLATMONO      : No
COLORGOURAUDMONO   : Yes
COLORFLATRGB       : Yes
COLORGOURAUDRGB    : Yes
SPECULARFLATRGB    : Yes
SPECULARGOURAUDRGB : No

Video device 1
==============
Description        : dgVoodoo DirectX Wrapper
Driver file        : dgVoodoo
Driver file data   : Cannot find driver file
Version            : 0.0.0000
Hardware ID        : 0000.0000 (Rev 0, Subsys 0x0)
Video memory       : 67,108,864 bytes (64 Meg)
Card texture mem   : 67,108,864 bytes (64 Meg)
AGP texture memory : 67,108,864 bytes (64 Meg)
FourCC modes       : DXT1 DXT2 DXT3 DXT4 DXT5                                                       
Texture formats    : 8bit 555 1555 4444 565 0888 8888 Bump map DuDv (8,8) Bump map DuDv (5,5) Bump map DuDv (8,8) FourCC (1TXD) FourCC (2TXD) FourCC (3TXD) FourCC (4TXD) FourCC (5TXD) 8 bit Luminance
Z Buffer formats   : 16 bit Z 24 bit Z (Z=32 (0xffffff) Stencil=8 (0xff000000)) 32 bit Z 32 bit Z
16 bit modes       : 512x384 640x400 640x480 800x600 1024x768 1280x720 1280x768 1280x800 1280x1024 1360x768 1366x768 1400x1050 1440x900 1600x900 1680x1050 1920x1080
32 bit modes       : 512x384 640x400 640x480 800x600 1024x768 1280x720 1280x768 1280x800 1280x1024 1360x768 1366x768 1400x1050 1440x900 1600x900 1680x1050 1920x1080
CERTIFIED          : No
DRAWPRIMITIVES2    : Yes
DRAWPRIMITIVES2EX  : Yes
DRAWPRIMTLVERTEX   : Yes
FLIPINTERVAL       : Yes
FLIPNOVSYNC        : Yes
NO2DDURING3DSCENE  : No
NONLOCALVIDMEM     : Yes
NOPAGELOCKREQUIRED : No
CALIBRATE GAMMA    : No
PRIMARYGAMMA       : Yes
ZBuffer            : 16 24
Render Depth       : 16 32
Texture Size       : 1x1 to 2048x2048
Maximum u,v coords : 8192.0
Guard Band Clipping: -1048576,-1048576 to 1048576,1048576
AlphaTest NotEqual : Yes
Missing Src blend  :
Missing Dest blend :
AGP Texture        : Yes
Texture Coords     : 8
Blend Stages       : 8
Max Textures       : 8
Hardware T&L       : Yes
Vertex Blending    : 4
Maximum Lights     : 8
Clip Planes        : 6
Blend Lightmap     : Ok
Blend Specularmap  : Ok
Blend Detail       : Ok
Linear vid memory  : Yes
SELECTARG1         : Yes
SELECTARG2         : Yes
ADD                : Yes
ADDSIGNED          : Yes
SUBTRACT           : Yes
MODULATE           : Yes
MODULATE2X         : Yes
MODULATE4X         : Yes
BLENDCURRENTALPHA  : Yes
BLENDDIFFUSEALPHA  : Yes
BLENDTEXTUREALPHA  : Yes
BUMPENVMAP         : Yes
BUMPENVMAPLUMINANCE: Yes
DOTPRODUCT3        : Yes
ANISOTROPY         : Yes
ANTIALIASSORTINDEP : No
FOGTABLE           : Yes
FOGVERTEX          : Yes
FOGRANGE           : Yes
WFOG               : Yes
WBUFFER            : No
MIPMAPLODBIAS      : Yes
WBUFFER            : No
ZBUFFERLESSHSR     : No
MIPNEAREST         : Yes
LINEARMIPLINEAR    : Yes
DONOTSTRIPELEMENTS : Yes
TEXTURE CLAMP      : Yes
TEXTURE BORDER     : Yes
TEXTURE MIRROR     : Yes
ALPHAGOURAUDBLEND  : Yes
SQUAREONLY         : No
COLORFLATMONO      : No
COLORGOURAUDMONO   : Yes
COLORFLATRGB       : Yes
COLORGOURAUDRGB    : Yes
SPECULARFLATRGB    : Yes
SPECULARGOURAUDRGB : No



 

Offline magic

  • Moderator
  • 211
Re: Improve AI of vanilla Mech Commander 2
Sorry, looks like you cant use it.

Old MC2 does not have many of the new abl functions I made...

You will have to find an old magics MC2 unofficial expansion (and use corebrain from it), if it exists somewhere on the net. I dont have it any more.

  
Re: Improve AI of vanilla Mech Commander 2
Ok too bad, but thanks for the help nonetheless!