ImpowerGames / impower

An all-in-one, community-powered indie development platform that gives creative people the tools they need to bring their ideas to life.
https://www.impower.app
2 stars 1 forks source link

Various problems if you don't have a first section header before you have dialogue or programming - Cannot advance the game #162

Open Broderick-Colin opened 2 years ago

Broderick-Colin commented 2 years ago

Describe the bug Declare variable before first section header - Cannot advance the game

Steps To Reproduce

  1. Go to engine.
  2. Declare a variable before the first section header.
  3. Create a section header with some character dialogue behind it.
  4. See error.
var BitchInstincts = true

# BACK_TO_THE_FLAT

MEPHAN STOFAT
[[Mister Stomes]]
(SHOUTING OUT THE DOOR)
DONT WORRY, WE'RE JUST GOING TO DO SOME HEROINE! I PROMISE THAT WE WILL NOT EXPERIENCE ANY CHARACTER GROWTH!

Expected Result Mephan Stofat talks if you press game preview

Actual Result Only Mephan Stofat's photo appears. Cannot advance game previewer

Screenshots image

Broderick-Colin commented 2 years ago

Also happens if you have character dialogue before the first section header

image

Broderick-Colin commented 2 years ago

If you add a choice statement allowing you to progress from the first section (without a section header) to the next section, then the first time that you encounter an empty choice statement (no section header) followed by a repeat ^ the game freezes.

This issue goes away if you contain the first part of the script in a section header.

MEPHAN STOFAT
I CANT BELIEVE I LISTENED TO YOUR BITCH INSTINCTS
_
+ SHOW HUMILITY OR A SHRED OF EMPATHY > SAY_PLEBIANS

# SAY_PLEBIANS

AN ENTHUSIASTIC ORPHAN
PLEBIANS

MEPHAN STOFAT
CLOSE THE DOOR URCHIN.

+ CRY FOR HELP > 

^

# BAD_TIMES

MEPHAN STOFAT
POOR, BRING ME MY HEROINE. I NEED TO WATCH OVER SOME CONTRACTORS AT MY MIND PALACE. CALL THIS NUMBER IF I OVERDOSE.

image

lovelle-cardoso commented 2 years ago

@LemBurnstein Fixed by 927aee34