Home » MODDING HQ 1.13 » v1.13 Coding Talk » Learning how the tactical AI works
Re: Semi-Success , and question re: working directory[message #277480] Fri, 08 April 2011 00:53 Go to previous messageGo to next message
wanne (aka RoWa21) is currently offline wanne (aka RoWa21)

 
Messages:1961
Registered:October 2005
Location: Austria
@morglum: You can ignore that "warning". The exe builds fine.

Report message to a moderator

Sergeant Major

Re: Semi-Success , and question re: working directory[message #277482] Fri, 08 April 2011 02:28 Go to previous messageGo to next message
MorgluM is currently offline MorgluM

 
Messages:24
Registered:March 2004
Location: Qu
hey..
it's working ! (the debug mode, with break point and variable changing, at least)

thanks everyone. Now to try and do something useful.

Report message to a moderator

Private 1st Class
Re: Semi-Success , and question re: working directory[message #277484] Fri, 08 April 2011 03:06 Go to previous message
MorgluM is currently offline MorgluM

 
Messages:24
Registered:March 2004
Location: Qu
lol...
I know this is a very naive way to be messing around, but here it goes:
Every time the enemy tries to punch/knife me, line 726 of "Strategic Mines.cpp" (INT32 PredictIncomeFromPlayerMines( BOOLEAN fIncludeFacilities )) gets called a few times.
Funny.


How I got there:

-I started a new campaign.
-Went to the first sector.
-CTRL-GABBI to enable cheats
-add lots of mercs (Alt-G) so I dont get wiped out.
-showed all soldiers (Alt-E)
-Killed all soldiers (Alt-O)
-Added 1 soldier next to my soldiers (Alt-B)

Then I put a breakpoint when the soldier attacks (Decide Action line 4380). Then I continue using F11, and when it choose "case AI_ACTION_KNIFE_MOVE:", it will soon go to the Strategic Mines.cpp ..



Report message to a moderator

Private 1st Class
Previous Topic: Doubling image size
Next Topic: RII - Resolution Independent Interface [UPDATE :RII v4f]
Goto Forum:
  


Current Time: Tue Feb 18 22:20:54 GMT+2 2025

Total time taken to generate the page: 0.00874 seconds