{"id":435,"date":"2026-03-09T00:44:57","date_gmt":"2026-03-09T00:44:57","guid":{"rendered":"https:\/\/sites.wsagames.com\/jz15n24\/?p=435"},"modified":"2026-05-13T00:05:12","modified_gmt":"2026-05-13T00:05:12","slug":"debug-log-option-display","status":"publish","type":"post","link":"https:\/\/sites.wsagames.com\/jz15n24\/2026\/03\/09\/debug-log-option-display\/","title":{"rendered":"Debug Log &#8211; Option 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\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-9-1024x544.png\" alt=\"\" class=\"wp-image-440\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-9-1024x544.png 1024w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-9-300x159.png 300w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-9-768x408.png 768w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-9-1536x816.png 1536w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-9.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\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-1024x768.jpeg\" alt=\"\" class=\"wp-image-444\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-1024x768.jpeg 1024w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-300x225.jpeg 300w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-768x576.jpeg 768w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-1536x1152.jpeg 1536w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/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\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-12-1024x649.png\" alt=\"\" class=\"wp-image-442\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-12-1024x649.png 1024w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-12-300x190.png 300w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-12-768x487.png 768w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-12.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\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-10-1024x649.png\" alt=\"\" class=\"wp-image-441\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-10-1024x649.png 1024w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-10-300x190.png 300w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-10-768x487.png 768w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-10.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\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-8-1024x649.png\" alt=\"\" class=\"wp-image-439\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-8-1024x649.png 1024w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-8-300x190.png 300w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-8-768x487.png 768w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-8.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\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-7.png\" alt=\"\" class=\"wp-image-438\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-7.png 937w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-7-300x53.png 300w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-7-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\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-6-1024x209.png\" alt=\"\" class=\"wp-image-437\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-6-1024x209.png 1024w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-6-300x61.png 300w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-6-768x157.png 768w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-6.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\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-11.png\" alt=\"\" class=\"wp-image-443\" srcset=\"https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-11.png 490w, https:\/\/sites.wsagames.com\/jz15n24\/wp-content\/uploads\/sites\/70\/2026\/03\/image-11-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":[26],"tags":[],"class_list":["post-435","post","type-post","status-publish","format-standard","hentry","category-weekly-development"],"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/posts\/435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/users\/61"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":1,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/posts\/435\/revisions"}],"predecessor-version":[{"id":445,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/posts\/435\/revisions\/445"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/media?parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/categories?post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wsagames.com\/jz15n24\/wp-json\/wp\/v2\/tags?post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}