bscotch / stitch

Tools and apps for GameMaker development: a CLI for pipeline development, a VSCode extension for coding, and more.
Other
119 stars 13 forks source link

"Error reading file" during project load (minimum audio bitrate?) #121

Closed ThereforeGames closed 1 year ago

ThereforeGames commented 1 year ago

Hi,

Love the idea of using VSCode for my GameMaker projects, but unfortunately I'm having some trouble getting it to work. I'm encountering the following error related to one of my game's audio files:

ERROR 01:32:06.141 Error loading project demoncrawl.yyp Error: Error reading file: t:/code/gamemaker/demoncrawl/sounds/snd_halloween_secret_a/snd_halloween_secret_a.yy
[
  {
    "code": "too_small",
    "minimum": 128,
    "type": "number",
    "inclusive": true,
    "exact": false,
    "message": "Number must be greater than or equal to 128",
    "path": [
      "bitRate"
    ]
  }
]

The .yy file is attached. Any idea what's causing this?

Thanks!

snd_halloween_secret_a.zip

EDIT: Oh duh, it's the bitrate of this particular audio file. Why is < 128 throwing an error? The GM IDE generated this yy file and has no trouble compiling at 96 bitrate.

adam-coster commented 1 year ago

Whoops! That's an easy fix, though it may be a bit before I get the chance to make it.

Long story short:

ThereforeGames commented 1 year ago

I see, no worries! Thanks for taking the time to explain.

adam-coster commented 1 year ago

Fixed in the source, will be resolved in the next published versions (might be a day or so before those go out).