Home » MODDING HQ 1.13 » v1.13 Coding Talk » Learning how the tactical AI works
Semi-Success , and question re: working directory[message #277418] Thu, 07 April 2011 15:26 Go to previous messageGo to previous message
MorgluM is currently offline MorgluM

 
Messages:24
Registered:March 2004
Location: Qu
1: Semi-Success
I managed to get JA2 to compile and run (for some time) with DEBUGDECISIONS. It posts the AI decision in aidebug.txt (most important noise heard at grid #XX, soldier #XX moving to gridno YY, Soldier ZZ offering to surrender etc...) and works fine, until, I believe, the AI tries to attack. Then, it crashes somewhere in output.c (a file related to the sprintf function, which is used to create the string that is printed to the aidebug.txt file).
Basically, I started definining tempstr as char tempstr [250]="";


2: I can't link VS2010 to JA2 the way JMich described here:
JMich
to get F5 (Start Debugging) to work in VS2010, right click on project ja2, click properties, and then select Configuration Properties->General. The first field is called "Output Directory", which is where the executable will be built. Set this to your JA2 testing directory, for example "C:\JA2\Debug build\".
Then go to Configuration Properties->Debugging and set the "Working Directory" to the directory you set before. These 2 directories mean that any time you build your solution, you will built it in the directory it should go (instead of copying it afterwards) and you can also use F5 (Start Debugging) to run your build, whether it's a debug build or not.


Here is what I see when I go to the properties of the JA2 project. Nothing for "General":
Selecting Properties of the project
No "General" tab
However, when I select the properties of a part of the project, say TacticalAI, then I can see General/Working directory:
TacticalAI properties has a general tab

Any tip would be greatly appreciated

[Updated on: Thu, 07 April 2011 15:27] by Moderator

Report message to a moderator

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


Current Time: Fri Feb 14 10:02:15 GMT+2 2025

Total time taken to generate the page: 0.01079 seconds