#BGME Framework - Failed to parse music script

6 messages · Page 1 of 1 (latest)

cunning snow
#

Hello! I'm trying to make a music script with BGME framework, but it keeps failing to load my music script:

[14:18:59] [BGME.Framework] [ERR] Failed to parse music script.
The given key 'Mini Bosses' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at PersonaMusicScript.Types.MusicCollections.EncounterMusic.Add(EncounterEntry encounter)
   at PersonaMusicScript.Library.MusicSource.AddEntry(BaseEntry entry)
   at PersonaMusicScript.Library.Parser.CommandBlockVisitor.VisitCommandBlock(CommandBlockContext context)
   at SourceParser.CommandBlockContext.Accept[TResult](IParseTreeVisitor`1 visitor)
   at Antlr4.Runtime.Tree.AbstractParseTreeVisitor`1.Visit(IParseTree tree)
   at PersonaMusicScript.Library.Parser.StatementVisitor.VisitStatement(StatementContext context)
   at SourceParser.StatementContext.Accept[TResult](IParseTreeVisitor`1 visitor)
   at Antlr4.Runtime.Tree.AbstractParseTreeVisitor`1.Visit(IParseTree tree)
   at PersonaMusicScript.Library.Parser.SourceVisitor.VisitSource(SourceContext context)
   at SourceParser.SourceContext.Accept[TResult](IParseTreeVisitor`1 visitor)
   at Antlr4.Runtime.Tree.AbstractParseTreeVisitor`1.Visit(IParseTree tree)
   at PersonaMusicScript.Library.MusicParser.Parse(String musicScriptText, MusicSource existingSource)
   at BGME.Framework.Music.MusicService.OnMusicScriptsChanged(String[] newMusicScripts)

From what I can tell, it's not finding the "Mini Bosses" collection, even though I've copied it exact from this list of collections, so I'm not sure what I'm doing wrong. I'm calling the collection like so:

encounter["Mini Bosses"]:
  music = 112
end

Is there a more up-to-date collection list I'm supposed to be using? I'm using version 4.1.2 of BGME Framework.

sour verge
#

should be Minibosses

cunning snow
#

Thank you! Should I assume that's the formatting for all the collections? After changing it, I'm getting a similar error with another collection:

The given key 'Persona Awakenings' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at PersonaMusicScript.Types.MusicCollections.EncounterMusic.Add(EncounterEntry encounter)
   at PersonaMusicScript.Library.MusicSource.AddEntry(BaseEntry entry)
   at PersonaMusicScript.Library.Parser.CommandBlockVisitor.VisitCommandBlock(CommandBlockContext context)
   at SourceParser.CommandBlockContext.Accept[TResult](IParseTreeVisitor`1 visitor)
   at Antlr4.Runtime.Tree.AbstractParseTreeVisitor`1.Visit(IParseTree tree)
   at PersonaMusicScript.Library.Parser.StatementVisitor.VisitStatement(StatementContext context)
   at SourceParser.StatementContext.Accept[TResult](IParseTreeVisitor`1 visitor)
   at Antlr4.Runtime.Tree.AbstractParseTreeVisitor`1.Visit(IParseTree tree)
   at PersonaMusicScript.Library.Parser.SourceVisitor.VisitSource(SourceContext context)
   at SourceParser.SourceContext.Accept[TResult](IParseTreeVisitor`1 visitor)
   at Antlr4.Runtime.Tree.AbstractParseTreeVisitor`1.Visit(IParseTree tree)
   at PersonaMusicScript.Library.MusicParser.Parse(String musicScriptText, MusicSource existingSource)
   at BGME.Framework.Music.MusicService.OnMusicScriptsChanged(String[] newMusicScripts)
#

Ah, actually, is it just the formatting of the files in BGME.Framework\P5R_PC\collections? If so, that makes things easier

sour verge
#

yeah Naonod

#

ig maybe i renamed some at some point