Breakpoint 1, train (ch=0x8c46e20, argument=0x8c460b4 "") at movelib.c:1765
1765 statcap = 54321;
(gdb) print buf
$1 = long string of garbage data
1766 sprintf(buf,"You have %d experience points and a %d statcap.\n\r",ch->exp,statcap);
(gdb) print buf
$2 = long string of garbage data
1767 stc(buf,ch);
(gdb) print buf
$4 = "You have 1515898647 experience points and a 0 statcap.\n\r*LONG STRING OF GARBAGE DATA*"
sprintf(buf,"You have %d experience points and a %d statcap.\n\r",ch->exp,statcap);
snprintf( buf, sizeof( buf ), "You have a statcap of %d and %d experience points.\r\n", statcap, ch->exp );
snprintf(buf,sizeof(buf),"You have %d experience points and a %d statcap.\n\r",ch->exp,statcap);
snprintf(buf,sizeof(buf),"You have %d experience points and a %d statcap.\n\r",statcap,ch->exp);
Here's the highlights, my full log is playing with BP's is available at http://games.gotr00t.us/vortex/files/gdb...
Lines in reference:
BP Output:
So the value is changing properly…So should I be looking at the contents of the buffer itself? Or is it already known, due to the in-game output?