{"id":1137,"date":"2026-03-09T00:05:58","date_gmt":"2026-03-09T00:05:58","guid":{"rendered":"https:\/\/sites.wsagames.com\/theverdanttrail\/?p=1137"},"modified":"2026-05-12T16:49:57","modified_gmt":"2026-05-12T16:49:57","slug":"debug-log-dialogue-display","status":"publish","type":"post","link":"https:\/\/sites.wsagames.com\/theverdanttrail\/debug-log-dialogue-display\/","title":{"rendered":"Debug Log &#8211; Dialogue Display"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In the second half of last week, I fixed the issue where the range detection triggers &#8220;Press E&#8221;, as well as the start and end of the dialogue. Now I&#8217;ve started working on branching and choice-related content.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before I started, it was basically like this: you could press Space to end the dialogue, but no choices were displayed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"544\" src=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-6-1024x544.png\" alt=\"\" class=\"wp-image-1144\" srcset=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-6-1024x544.png 1024w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-6-300x159.png 300w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-6-768x408.png 768w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-6-1536x816.png 1536w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-6.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After I built part of the UI and bound it to the DialogueManager, the following error appeared. Nothing related to choices was printed in the Console at all. I guess this means DisplayChoices() was never executed, or story.currentChoices.Count == 0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But &#8220;Hi there this is a test dialogue&#8221; was displayed normally, so I suspected the issue might be that there are actually no choices in the .ink file, or that there&#8217;s something wrong with my export format and it&#8217;s not being read properly\u2026<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-1024x768.jpeg\" alt=\"\" class=\"wp-image-1145\" srcset=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-1024x768.jpeg 1024w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-300x225.jpeg 300w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-768x576.jpeg 768w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-1536x1152.jpeg 1536w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-2048x1536.jpeg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So I modified the code.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"649\" src=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-2-1024x649.png\" alt=\"\" class=\"wp-image-1140\" srcset=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-2-1024x649.png 1024w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-2-300x190.png 300w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-2-768x487.png 768w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-2.png 1401w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"649\" src=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-3-1024x649.png\" alt=\"\" class=\"wp-image-1141\" srcset=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-3-1024x649.png 1024w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-3-300x190.png 300w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-3-768x487.png 768w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-3.png 1401w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"649\" src=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-4-1024x649.png\" alt=\"\" class=\"wp-image-1142\" srcset=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-4-1024x649.png 1024w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-4-300x190.png 300w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-4-768x487.png 768w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-4.png 1401w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I modified the Continue part inside DialogueManager so that when it detects there are upcoming choices, it loads the choices directly instead of ending the dialogue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sorry that this part of the log is really messy, I only came back to write it some time after making the changes, and I kind of forgot what my thought process was at the time. Anyway, in the end I didn&#8217;t manage to solve anything. I even checked my Ink JSON file and confirmed it wasn&#8217;t an Ink issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then I suddenly remembered: debug logs are actually a really great thing. So I added a debug log here.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"166\" src=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-1.png\" alt=\"\" class=\"wp-image-1139\" srcset=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-1.png 937w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-1-300x53.png 300w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-1-768x136.png 768w\" sizes=\"(max-width: 937px) 100vw, 937px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After that, the following error appeared:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"209\" src=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-5-1024x209.png\" alt=\"\" class=\"wp-image-1143\" srcset=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-5-1024x209.png 1024w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-5-300x61.png 300w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-5-768x157.png 768w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-5.png 1385w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"490\" height=\"145\" src=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image.png\" alt=\"\" class=\"wp-image-1138\" srcset=\"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image.png 490w, https:\/\/sites.wsagames.com\/theverdanttrail\/wp-content\/uploads\/sites\/86\/2026\/03\/image-300x89.png 300w\" sizes=\"(max-width: 490px) 100vw, 490px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Alright!!! This doesn&#8217;t look like it&#8217;s because of my Ink file. It looks more like my code is treating Ink&#8217;s choices as normal text and continuing them forward. Although the choices also didn&#8217;t appear as text, judging from the error message there seems to be that tendency.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Maybe the UI didn&#8217;t have time to display the choices before my ContinueStory() pushed it to the next step. After all, it does show Choices Count=3, which means it reached the choice step. It froze because the UI didn&#8217;t display, so I couldn&#8217;t continue selecting.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the second half of last week, I fixed the issue where the range detection triggers &#8220;Press E&#8221;, as well as the start and end of the dialogue. Now I&#8217;ve started working on branching and choice-related content. Before I started, it was basically like this: you could press Space to end the dialogue, but no [&hellip;]<\/p>\n","protected":false},"author":61,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,7],"tags":[],"class_list":["post-1137","post","type-post","status-publish","format-standard","hentry","category-dev","category-meeting"],"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-json\/wp\/v2\/posts\/1137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-json\/wp\/v2\/users\/61"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-json\/wp\/v2\/comments?post=1137"}],"version-history":[{"count":1,"href":"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-json\/wp\/v2\/posts\/1137\/revisions"}],"predecessor-version":[{"id":1146,"href":"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-json\/wp\/v2\/posts\/1137\/revisions\/1146"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-json\/wp\/v2\/media?parent=1137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-json\/wp\/v2\/categories?post=1137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wsagames.com\/theverdanttrail\/wp-json\/wp\/v2\/tags?post=1137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}