Help needed debugging text adventures!

1 post / 0 new
Offline
Last seen: 3 weeks 4 days ago
Joined: Nov 12 2022 - 16:50
Posts: 201
Help needed debugging text adventures!

Hi!  I'm working on a text adventure for the C64 and two text adventure codes for cc65 around which others can build text adventures.  The latter includes a version for the Apple3enh.  I fixed the bug with the former while optimizing, but the latter still have the bug.  :(   The bug is mainly displaying garbage for room descriptions and some other texts.  The programs are called AdvSkel65 and AdvSkelVic65 and can be found at c65 additions - Manage /game at SourceForge.net.  It seems to happen when the printtok() function is called.  I'm asking for help figuring out what's causing the bug.

 

BTW, using prints() instead of printtok() works, but printtok() uses compressed strings, and I want that to be an option.