 |
|  |
 |
|
Fromafar
|
|
FWIW, I have "nointromovie nonexclusive" as program arguments for debugging.
The first one should not really matter - apart from saving you some time at start-up.
Without the second one, I used to lose control at the end of ui_Initialize in civ3_main.cpp. With it, 2 cursors (the usual Windows one and the CTP2 hand) will appear, and I am able to switch between the application and the debugger. However, the debugger is a bit slow when switching. It takes about 1 or 2 seconds to get responsive. But apart from that, it works fine.
If your video card supports it, and you have a second monitor, you may want to try out the "multimon" option instead. I can't use it, because my video card does not support more than 1 monitor.
When stepping through one of the files that have been generated by Lex and Yacc, you may get confused somewhat. Guided by the generated #line-statements, the debugger will sometimes switch to the input file (ldl.y in your case). Unless you really want to debug these specific files, you may avoid this by simply not stepping into ldlparse/yyparse when debugging.
|
|
|  |
 |
|
Lui2
|
 |
Saarbruecken
May 2004 time: 06:36
|
|
Thanks that you took the time to answer my question.
Meanwhile I also added the parameter "notimeslice" and the debugging now works nearly perfect, also without a second monitor.
EDIT:
And it's also a good idea to deactivate virus scanning on the directories the c++ compiler writes to.
Last edited by Lui2 on 13-06-2004 at 13:26
|
|
|  |
 |
|
drulius
|
|
Lubbock, Tx USA
Jan 1970 time: 23:36
|
|
I have successfully compiled and built a _dbg.exe with the 2004.06.05.CTP2.All.zip code compilation.
Should I be able to execute the _dbg.exe immediately after the build completes? The way I got it to work was to copy the _dbg.exe and a .dll (anet2?) to the directory where my playtest game is installed. Then I changed the project/debug path setting to the game dir path from the code dir path. Now I can start the game by pressing F5 in vc++. I have played about 50 turns this way. With 23 AI civs, I saw the "NO_CONTACT_DECLARE_WAR" assertion failure on about 35 of the turns.
I added the "nointromovie nonexclusive notimeslice" program arguments, and I can sometimes see the two cursors. But I can never use either one independantly, and most attempts to force vc++ to the top hang both programs. If an assertion pops up, I can click retry and go to vc++ or click ignore and go back to the game. But otherwise, once the game starts going I'm locked into playing unless an assertion pops up. Is there a way to toggle between the game and the debugger with a keypress or something?
I was able to load a saved game started with the playtest build from early May (the last one posted in .zip format) Once it loaded, I noticed the movement delay bug mentioned in the playtest thread, this behavior did not exist when I originally saved the playtest game.
When I ended the first turn, it took about 50 minutes for it to be my turn again (about 30 civs). During that time at least half of the AI civs threw an assertion failure at gs/slic/sliccmd.cpp line 414 where it seems a certain struct sliccmdExpValue (v) has a ->type but not a ->sym
code:
Assert(v->type == EXP_VAL_SYM || v->type == EXP_VAL_TEMP_SYM);
SlicSymbolData *sym = (SlicSymbolData *)v->sym;
Assert(sym); // line 414
if(!sym) {
strcpy(sliccmd_output, "");
return;
}
I also saw a couple of "NO_REFUEL_BASE" (not exact) assertion failures before AI fighters dropped out of the skies. (couldn't see them, heard them crash)
When I ended the next turn, both programs hung during the second or third AI's turn. But since I had walked away, the hang might be because my computer went into sleep mode while I was away. (I had to completely reboot through "ctrl-alt-delete shutdown" to get back)
What's the best way to configure my system to assist the project? I get lost in the code pretty easily, but I can accurately report what happens when things act up. I plan to update as soon as the next .all code changes pack is issued, and then to stay up to date as each new change is posted. Any other suggestions?
|
|
|  |
 |
|
calvitix
|
|
Strasbourg (North-Est France)
Jun 2003 time: 05:36
|
|
Hello,
Question about Logs :
I can get the diplomacy logs, main logs civ3logsxxx.txt, but I didn't manage to get the AI logs. could anyone help me ?
I try several Playtest commands
(god to see the entire map,
armyText to see the army goal on the screen,
...)
but the command ailog debug_level team_idx doesn't seems to work :
I saw in source code 4 levels of log (OFF -> Detailled)
but the command ailog in C3Cmdlines seems to be empty.
the command aidebug goal_type player didn't succes as well.
|
|
|  |
All times are GMT. The time now is 05:36. Apolyton Time is 00:36. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|