blurymind / YarnClassic

A tool for writing interactive dialogue in games!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Save doesn't save in the origin format

m21-cerutti opened this issue · comments

When saving a yarn script, put instead a json syntax inside the file by default.
Also after closing, it freeze the editor because of the bad formatting and need to delete the roaming folder.

On Version 0.4.124.

i have meet the same problem

We have the same issue on Windows version 0.4.124 (on Mac we don't have this issue). Steps to reproduce:

  • Open a file, for example dialogue.yarn, in the YarnEditor
  • Save it using the shortcut Ctrl->s (or go File -> Save)
  • The file is now saved with the .yarn extension but in json format and thus can't be read by Yarnspinner in our Unity project (currently we're on version 1.2.7)

The only workaround we've found is to manually do File -> Save as Yarn every time

@blurymind or any other YarnEditor devs, do you know if there's a fix for this bug in the pipeline?

commented

Same issue, but save as yarn doesnt work.

commented

Do you get some error in the console?

On Wed, 30 Jun 2021, 19:19 Yulovery, @.***> wrote: Same issue, but save as yarn doesnt work. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#257 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRRWVNOV6ZA3J7LPJ7BJY3TVNNZRANCNFSM43DJ226Q .

Not during saving. You know it doesnt work becuase you cant open it any longer and it doest have the green yarn icon in unity, the white yarn icon if it is saved in yarn fromat but currpted. The unity consel does some sya error at line 1 "[" or just
completely ignore the yarn file.

I do not have or use unity btw :) Have no way of replicating whats happening specifically with unity

I fixed the ctrl+s bug via YarnSpinnerTool/YarnEditor@a7075bd -now it should save with the same file format as is used. Please open a separate issue for anything else

Was this tested? I'm seeing the same problem, but where my .yarn file is saved in JSON format. I don't think this fix fixed what it was supposed to fix.