Changing character with sprites is not working

Just started to developing my game, filled up a characters.yaml and game.narrat and find out that on this change of lines
talk Nadya idle "..."
talk lesha idle "..."
Only the first character image appears on screen, that’s not a problem with the image since if i swap the entire line that starts with idle: nadya\sp1.png image from lesha would load just fine

Character defined as:

  Nadya:
    name: "НАДЕЖДА ТЕМНОВА"
    style:
      color: green
    sprites:
      idle: nadya\надяСпокойная1.png

  lesha:
    name: "АЛЕКСЕЙ ЗАХАРОВ"
    style:
      color: green
    spriters:
      idle: lesha\ЛёшаСпокойный1.png

Browser console after executing document.getElementsByClassName("dialog-picture") shows that while Nadya’s dialogue is last image box appears on page, but after changing to lesha’s line it returns empty HTMLcollection
And dev tools shows that his image does not started to load:
zen_GiNT1TVEqB

Tried:

  • moving images out of folders(from img/characters/nadya to just img/characters/)
  • swapping character images kinda works but Lesha in any case unable to load it’s image

Browser: tested on Zen(Firefox) and Yandex(Chromium), both having same issue
OS: Windows 10 21H2 19044.4894
npm list: https://pastebin.com/gH6dX7JK

You have a typo in lesha’s config above, spriters instead of sprites, is it the same in your files ?

aw yes that was the problem, but that seems a little bit like a flaw that engine not threw an exception, thanks you!

1 Like