Saffith wrote:If you see nothing at all, it'd be a good idea to trace some other things to be sure it's doing what you think it's doing.
If, for example, you have this:
if (condition)
{
int ScrnNPCs = Screen->NumNPCs();
Trace(ScrnNPCs);
// ...
}
else
{
// ...
}
... You might try this instead:
if (condition)
{
int ScrnNPCs = Screen->NumNPCs();
Trace(1111);
Trace(ScrnNPCs);
// ...
}
else
{
Trace(2222);
// ...
}
I tried doing another Trace (Using "2101", since I'm REALLY into AYB stuff now. XD), but... It never appeared in Allegro.log. Here's the output:
SETV d2,0
SETR d3,REFFFC
PUSHR d3
PUSHR d2
SETR d4,SP
SETV d2,0
SETV d2,0.0001
COMPAREV d2,0
GOTOTRUE 133
SETR d2,gd2
PUSHR d2
SETV d2,0
POP d3
COMPARER d2,d3
GOTOTRUE 18
SETV d2,0
GOTO 19
SETV d2,0.0001
SETV d3,0
COMPAREV d2,0
GOTOTRUE 30
SETV d2,1
SETR gd1,d2
PUSHR d4
SETV d2,28
PUSHR d2
GOTO 137
POP d4
GOTO 126
SETV d3,0
SETR d2,gd2
PUSHR d2
SETV d2,1
POP d3
COMPARER d2,d3
GOTOTRUE 39
SETV d2,0
GOTO 40
SETV d2,0.0001
SETV d3,0
COMPAREV d2,0
GOTOTRUE 92
PUSHR d4
SETV d2,49
PUSHR d2
SETR d2,gd0
PUSHR d2
GOTO 150
POP d4
SETR d6,d4
ADDV d6,1
STOREI d2,d6
PUSHR d4
SETV d2,59
PUSHR d2
SETV d2,2101
PUSHR d2
GOTO 140
POP d4
PUSHR d4
SETV d2,68
PUSHR d2
SETR d6,d4
ADDV d6,1
LOADI d2,d6
PUSHR d2
GOTO 140
POP d4
SETR d6,d4
ADDV d6,1
LOADI d2,d6
PUSHR d2
SETV d2,0
POP d3
COMPARER d2,d3
GOTOTRUE 79
SETV d2,0
GOTO 80
SETV d2,0.0001
SETV d3,0
COMPAREV d2,0
GOTOTRUE 90
SETV d2,1
SETR gd1,d2
PUSHR d4
SETV d2,89
PUSHR d2
GOTO 137
POP d4
SETV d2,0
GOTO 125
SETV d3,0
SETR d2,gd2
PUSHR d2
SETV d2,3
POP d3
COMPARER d2,d3
GOTOTRUE 101
SETV d2,0
GOTO 102
SETV d2,0.0001
SETV d3,0
COMPAREV d2,0
GOTOTRUE 124
PUSHR d4
SETV d2,113
PUSHR d2
SETR d2,gd0
PUSHR d2
SETR d2,gd4
PUSHR d2
GOTO 144
POP d4
COMPAREV d2,0
GOTOTRUE 123
SETV d2,1
SETR gd1,d2
PUSHR d4
SETV d2,122
PUSHR d2
GOTO 137
POP d4
SETV d2,0
SETV d2,0
SETV d3,0
SETV d3,0
PUSHR d4
SETV d2,131
PUSHR d2
GOTO 137
POP d4
GOTO 6
SETV d2,0
SETV d3,0
POP d3
QUIT
WAITFRAME
POP d3
GOTOR d3
POP d3
TRACER d3
POP d3
GOTOR d3
POP d0
POP d3
SETR d5,d3
SETR d2,LINKITEMD
POP d3
GOTOR d3
POP d3
SETR d5,d3
SETR d2,NPCCOUNT
POP d3
GOTOR d3
Please note that for some reason, the NPCCOUNT thing seems to happen AFTER a check for a certain inventory item in Link's inventory.... What's up with that?