debugging group ai

debugging group ai

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
esromneb
Posts: 5
Joined: 12 Mar 2006, 09:36

debugging group ai

Post by esromneb »

Is it possible to debug group ai without build spring yourself? VC++ isn't happy if spring doesn't have symbols.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

huh?

recompile the groupAI in debug mode then start up spring through the debugger, then load the groupAI in spring and start using it.


*move to AI forum please*
esromneb
Posts: 5
Joined: 12 Mar 2006, 09:36

Post by esromneb »

How do I start spring thorugh the debugger? I don't have spring compiled, I just have the relase.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Look at the NTai VS project.

Yous et the working directory to your spring folder, and the command as your spring executable with the arguement script.txt, then you just do debug->start and load the groupAI in spring once you're ingame.
esromneb
Posts: 5
Joined: 12 Mar 2006, 09:36

Post by esromneb »

that doesn't work for me. I did exactly what you said, but if I try to set a breakpoint it says the breakpoint will not be hit in a tooltip.


When I start debugging it says "no symbols loaded for spring.exe do you want to continue anways" I think that's my problem. But I don't want to go through the hastle, I just want to debug my ai.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Then check you have debugging installed properly.

And have you tried continuing anyway?

Anyways it should look like this

Image
esromneb
Posts: 5
Joined: 12 Mar 2006, 09:36

Post by esromneb »

yes that's exactly how mine is configured. One question: I output the dll in a folder, then I move it via a script. Should I set my output to the real spring folder for this to work?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

If you want you can but I dont reccomend it.
Post Reply

Return to “AI”