I’m updating previously published code in which *text_image worked. Now when I run Quicktest and select the correct directory, I receive an error.
Error: chapter5 line 241: File does not exist: chapter5.png
My code looks like this:
*text_image chapter5.png center CHAPTER FIVE—Escape Into Apocalypse
Like I said, this worked before when this was published, and I haven’t changed anything related to images. In fact when I comment this, all images produce an error.
I have searched for a fix on these forums and can’t find anything, and I read about the recent firefox changes.
I downloaded the last version and my text image works both in-text in Dashingdon too. But i have a old version of Firefox in my Pc so i don’t know if that is a factor. With a modern firefox i have errors all over the place
Usually that indicates the headers haven’t been saved in /mygame. You sure you’ve got them saved there and are running QT in the right CS package with them saved in it?
Yes. They are all in the same spot under /mygame
This is the same setup from the published game. Truly bizarre.
And does it work with all Choicescript.? Because I myself to avoid problems have version in both old and new. I have problems with new that i haven’t with older
Hmm. Is this running it in the browser or the command line?
Old versions of CS don’t work at all.
Browser (Firefox and Chrome). I’ve not been able to get command line to work for a while.
I can confirm, quicktest with latest CS produces this error exclusively on firefox 68. FF 67 and chrome work fine.
@JimD Contrary to @anon8836198 you get this error in Chrome as well?
Yes, in Chrome Version 75.0.3770.100 (Official Build) (64-bit)
Sigh. I’m not sure why this is happening, and unfortunately Dan is out this week. Things have been messed up since the Firefox upgrade last week and we are working on it. Beg your patience; pardon our dust. Things may be messed up for a few days more.
It is not anyone here fault. So I think that everyone will be patient with Cog I thankfully work well with old versions for me. So far I am cross fingers.
I just uploaded a version of ChoiceScript to github that skips testing images. It will print out a warning like this:
startup line 33: WARNING 2019 July 17 temporarily not testing images: chapter5.png
That should allow you to use quicktest for now, while I work out a way to fix this “properly,” probably next week.
(I note with some chagrin that randomtest has apparently never tested images. )
The latest version of ChoiceScript on GitHub can quicktest images again. Like randomtest, quicktest now requires you to “upload” the entire ChoiceScript folder, not just the scenes folder, because the images don’t live in the scenes folder; they live one folder up from there.
I’m still not getting the editor or anything else to work…this is my error message for the editor:
You’re describing two different problems. You say that you can’t get the editor to work “or anything else.”
The editor hasn’t been updated in years; I didn’t know people still used it! CSIDE and Chronicler are much more popular at this point. If you really want to use the editor, you can jump through some hoops to get it to work using the new
node serve command I built last night. If you run
node serve and then replace
web/mygame/index.html in your browser with
editor.html, it will work in the very latest ChoiceScript from a few minutes ago.
(I notice that your screenshot shows that you’re using version
1cfa72f which is from July 17. You’ll want the very latest version.)
As for “anything else,” in the version you have, the game itself should open and display images if you open
index.html, QuickTest should work if you open
quicktest.html, RandomTest should work if you open
randomtest.html, and game compiling should work if you open
compile.html. If you’re having trouble with anything except the editor, I’d need more detail about the problem.
Ok…take it slow with me I’m really behind on the tech having basically been writing away in my little hermit hole over here. How does one “run” something? I realize this is probably a reeeeeeaaaalllly dumb question but as said I’m really behind.
That being said, I also have no idea what CSIDE or Chronicler are.
Don’t bother with running
node serve in your case. Use CSIDE, instead.
CSIDE is the ChoiceScript IDE. You can use it online here; it may remind you of using the editor.
Click the links in the side bar to learn how to use it.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.