New Choicescript extension for VS Code (2.0 now runs games!)

I recently discovered a new bug that can cause recursion issues once a game is compiled. If you were to use the *text_image command, but leave out the alignment and caption, it will cause a recursion error to occur once the data URI is implemented post-compilation.

For example, the following line will cause a recursion error after compiling the game:

*text_image sample.png

The alignment and caption needs to be included in order to avoid the recursion bug:

*text_image sample.png center Sample Caption

There’s not much information surrounding the *text_image command from what I can find. Yet, I was thinking perhaps it would be a nice addition to the extension if it notified the author/developer of the improper command. To save some future headaches if possible, as I was at a lost on what was causing the recursion bug initially.

@CJW Apologies for the tag, but this may also be something that could be added to the IDE, if it hasn’t been already?

1 Like