klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 295 forks source link

Twine 2.1.0b1: Cannot Update/Delete Story Format #275

Closed klembot closed 6 years ago

klembot commented 8 years ago

Originally reported by: Ngurah Bagus (Bitbucket: storymasterq, GitHub: storymasterq)


I've added SugarCube 2 Offline 2.8.0, and now that 2.10.0 is out, I want to add it, but I can't since the name is the same [SugarCube 2 (local/offline)].

I tried to delete the old version, but the trashcan icon does nothing and return no error message.

I ended up changing the title in format.js so it'll add into the Formats list.

Perhaps it should have a prompt about whether or not I want to update a format with the same name, or at least have the delete function work :grinning:

I see the commit 9bbf6a3 about story format, but I'm not sure it's related to this bug.


klembot commented 8 years ago

Original comment by Chris Klimas (Bitbucket: klembot, GitHub: klembot):


Fix bug with removing formats in dialog

Resolves #275

klembot commented 8 years ago

Original comment by Ngurah Bagus (Bitbucket: storymasterq, GitHub: storymasterq):


Alright, that worked.

Unfortunately, I unzipped the ZIP download into its own folder, sugarcube-2.8.0-for-twine-2-local, and added the SugarCube-2 folder inside that.

Being unable to delete this reference, I had to copy the new SugarCube-2 folder, containing SugarCube 2.10.0 into a folder called SugarCube 2.8.0. Now that's a misnomer :laughing:

klembot commented 8 years ago

Original comment by Thomas M. Edwards (Bitbucket: tmedwards, GitHub: tmedwards):


The files will be wherever you placed them. Installation is a bit of a misnomer, Twine 2 only references the files located at the path you gave it when you manually add a story format—it does not make copies of the files or perform any kind of traditional installation.

klembot commented 8 years ago

Original comment by Ngurah Bagus (Bitbucket: storymasterq, GitHub: storymasterq):


copy the files of the new version over the files of your old installation

Oh, I wanted to do that too, but I couldn't be bothered to try finding out where the format.js file should be copied to for Twine 2. I did a cursory look, but I only found the targets folder for Twine 1.

klembot commented 8 years ago

Original comment by Thomas M. Edwards (Bitbucket: tmedwards, GitHub: tmedwards):


I ended up changing the title in format.js so it'll add into the Formats list.

Due to the way Twine 2 works, you're really better off not doing that.

In this case, you also do not have to. While not a fix for this bug, you may simply copy the files of the new version over the files of your old installation. I do that myself when testing new builds of SugarCube.