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 IDE replace all function messes up story #675

Closed egaskrad closed 2 years ago

egaskrad commented 4 years ago

Version last tested: 2.3.7 with sugercube 2.31.1

Description: Wrote a story. Wanted to change a variable name from $GameData to setup.gamedata. Made the mistake of using the replace all function that came with the IDE. When the replace dialogue box popped up, I unchecked the include passage name checkbox and pressed replace all.

When the replacement was done, at least half of the passages had their names went missing. Little doubt everything failed to work.

Deleted the whole story, loaded from an archive a few seconds ago and the problem was temporarily solved. At least I do not have to reinstall the whole Twine 2 IDE like the other issue reporter.

loopernow commented 4 years ago

Version 2.3.9 with Chapbook 1.2.0 Version 2.3.8 with Chapbook 1.1.0

This happens to me too. I'm a new user who's exclusively interested in Chapbook, so that's the only story format I've been using. Don't know if that has any bearing on anything. But I can confirm the same thing happens to me too. I uncheck the include passsage name checkbox, but still, when I run the replacement, certain passages are missing their titles. And it's not a matter of just putting them back. The ones with missing titles all have the content from only one passage, so I've lost the passage contents too. It's very weird.

I think it's the passages that have text that should be replaced, that lose their titles.

I should mention, the erased passage titles don't match the string value of the text being replaced.

klembot commented 4 years ago

The plan is to rework this dialog completely in 2.4.

klembot commented 2 years ago

This looks like a bug with Twine 2.3 or earlier, and because of that I'm closing it. Please re-open or create a new issue if you find this is still a problem in 2.4.