[Defconapi] Loading debug symbols without user intervention
Chong-U Lim
cl2006 at doc.ic.ac.uk
Sun Mar 29 17:08:11 CDT 2009
Hmm,
In Visual Studio, make sure you are in release mode too.
I'm pasting the arguments which I'm feeding into Command Arguments in
VS2008 under Configuration Properties->Debugging:
playername=chonges host debug ai="AI/rpo/ICBot4.dll" territory=5
repeat=1 internalaiterritory=1 maxgametime=2700
-Chong-U
Luke Meyers wrote:
> Yeah, I've tried that too -- with and without the leading backslash.
> Also tried forward slashes. No love.
>
> On Sun, Mar 29, 2009 at 6:27 AM, Chong-U Lim <cl2006 at doc.ic.ac.uk> wrote:
>
>> Hey Luke,
>>
>> For the AI path, could you try using the relative path and see if it works?
>>
>> e.g. "\AI\regolith\regolith.dll"
>>
>>
>> -Chong-U
>>
>> Luke Meyers wrote:
>>
>>> Tried it tonight with the new version, still no dice. Same behavior
>>> as before. Here are the command-line parameters I'm using:
>>>
>>> host nowan ai="D:\Program Files\Defcon\AI\regolith\regolith.dll" debug
>>> limitedinformation playername="[Bot]Regolith" servername="Regolith Bot
>>> Test" numplayers="1"
>>>
>>> Running under VS 2008.
>>>
>>> I've noticed that even though the bot gets used (with no debug symbols
>>> loaded) if I don't click anything, its name is not shown as the
>>> selection in the dropdown box. Is that what you see on your system,
>>> except that in your case debug symbols do load even when the bot's
>>> name is not shown in the UI?
>>>
>>> Luke
>>>
>>> On Thu, Mar 26, 2009 at 1:05 PM, Robin Baumgarten
>>> <robin.baumgarten at gmail.com> wrote:
>>>
>>>
>>>> Hi Luke,
>>>>
>>>> I'm not quite sure how that problem appears, it does work normally for
>>>> me.
>>>> I've now uploaded the newest beta to the website (see my other post on
>>>> this
>>>> list), please have a look if that fixes your problem. If not, please post
>>>> again and I'll have a closer look as well.
>>>>
>>>> Robin
>>>>
>>>> 2009/3/26 Chong-U Lim <cl2006 at doc.ic.ac.uk>
>>>>
>>>>
>>>>> Hi Luke!
>>>>>
>>>>> Hmm,t t's strange, however, because I've been able to get the Debug
>>>>> symbols to load up in Visual Studio.
>>>>> So are you saying that in order for the Debug symbols to load you have
>>>>> to reselect the bot from the Drop down menu?
>>>>> It could actually be due to a fault with the executable of the bot,
>>>>> which Robin and myself have come across, in which the DLL is actually
>>>>> loaded twice when launched from the command line. The executable has
>>>>> been fixed internally, but I think Robin has yet to make any updates
>>>>> officially.
>>>>>
>>>>> -Chong-U
>>>>>
>>>>> Luke Meyers wrote:
>>>>>
>>>>>
>>>>>> Hi Chong-U,
>>>>>>
>>>>>> Thanks for your reply. I have been using the command-line option to
>>>>>> specify my AI DLL, and it works as far as loading up the bot. It's
>>>>>> just the debug symbols that fail. I guess it's not such a huge deal
>>>>>> since in any truly automated runs I wouldn't care about hitting
>>>>>> breakpoints and such, but it's still odd (and a little bit of a hassle
>>>>>> to race against that 5-second timer). I'll probably learn to live
>>>>>> with it though, unless someone else has an idea.
>>>>>>
>>>>>> Good luck on your project!
>>>>>>
>>>>>> Cheers,
>>>>>> Luke
>>>>>>
>>>>>> On Thu, Mar 26, 2009 at 5:52 AM, Chong-U Lim <cl2006 at doc.ic.ac.uk>
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Hey Luke,
>>>>>>>
>>>>>>> I'm writing a bot for my final year BEng individual project, hehe, and
>>>>>>> I
>>>>>>> happen to be focusing quite a bit on genetic algorithms ;) I don't
>>>>>>> have
>>>>>>> any formal write up and my wiki is quite out of date ( as it's
>>>>>>> examinations period now ), but I'm always happy to discuss anything
>>>>>>> regarding the bot.
>>>>>>>
>>>>>>> Pertaining to your question, there should be a command-line argument
>>>>>>> that goes something like AI="<path to dll here>" which should automate
>>>>>>> the selection of the AI bot automatically, rather than relying on you
>>>>>>> to
>>>>>>> select it from the drop down box. I, personally, have used that quite
>>>>>>> a
>>>>>>> fair bit, so I'm pretty sure it works... though it's important to get
>>>>>>> the relative directory path correct.
>>>>>>>
>>>>>>> Do follow up if anything doesn't work.
>>>>>>>
>>>>>>> All the best!
>>>>>>>
>>>>>>> -Chong-U
>>>>>>>
>>>>>>> Luke Meyers wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Okay, writing again a little sooner than I thought :)
>>>>>>>>
>>>>>>>> I've got a skeleton for my own bot now, based on simplebot. I played
>>>>>>>> around with the command line args and have been able to launch the
>>>>>>>> game with debugger attached and set breakpoints and such. However,
>>>>>>>> there's one snag -- Visual Studio doesn't load the symbols unless I
>>>>>>>> physically click and select my bot from the dropdown on the battle
>>>>>>>> lobby. This kind of puts a chink in my plans for fully touchless
>>>>>>>> world domination.
>>>>>>>>
>>>>>>>> I can understand why the symbols wouldn't be loaded right at launch,
>>>>>>>> since it's choosing an AI DLL to load at runtime, but once it's
>>>>>>>> actually got the game up and running it's obviously got the bot
>>>>>>>> loaded
>>>>>>>> because I can see the bot's behavior. The command line option to
>>>>>>>> choose the AI performs the same function and should make twiddling
>>>>>>>> this UI widget unnecessary, but it fails to load the debug symbols.
>>>>>>>>
>>>>>>>> Anyone else have this problem? Any solutions?
>>>>>>>> _______________________________________________
>>>>>>>> Defconapi mailing list
>>>>>>>> Defconapi at lists.introversion.co.uk
>>>>>>>> http://lists.introversion.co.uk/listinfo/defconapi
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Defconapi mailing list
>>>>>>> Defconapi at lists.introversion.co.uk
>>>>>>> http://lists.introversion.co.uk/listinfo/defconapi
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>> _______________________________________________
>>>>> Defconapi mailing list
>>>>> Defconapi at lists.introversion.co.uk
>>>>> http://lists.introversion.co.uk/listinfo/defconapi
>>>>>
>>>>>
>>>>
>>
More information about the Defconapi
mailing list