[Tool] - Online Choicescript Tester

@CJW It would be good if the code was shown on the bottom and the game opened above it.

@archene There’s a side-by-side version here now. I’m not sure having the text below it would look as good, if you had a lot of lines of code you’d be constantly scrolling back and forth.

This is fabulous.

Way easier to test ideas with this. And map out ChoiceScript stuff in general.

Bookmarking it for sure.

@Caddmuss - Thanks! Glad you like it.
Please let me know if you have any suggestions for improvement! :slight_smile:

I love this tool.

@FairyGodfeather
I’m really glad people are finding this useful! I thought for a while that I was the only one… x)
Again, please do let me know if you think of any potential improvements!

Without really thinking, I’d say something like integrating your syntax highlighter into it, but that would be like gilding a lily. This is perfect the way it is.

@Caddmuss That’s definitely something I’ll consider, thanks for the feedback! :slight_smile:

I’m bumping this because it’s such a useful tool. I find it extremely helpful for doing small sections of code.

The side by side version isn’t working anymore though. Can that be fixed?

My bad, I restructured my dropbox a while back and never updated the link! Here you go :slight_smile:
https://dl.dropboxusercontent.com/u/7840892/CJW/choicescript/tools/online-cs-tester-side-by-side/mygame/input.html

Thanks for the bump, always good to know when things are proving useful! :smiley:

Edit: The side by side one seems borked, I’ll look into (sorry!)…
Edit2: And fixed, though I’m not sure how up-to-date the testers are so if anyone experiences any problems using the new commands, please let me know and I’ll update them!

Yay, the 2nd version’s fixed. I noticed it went offline a while back, but since the original was working, I just used that one.

Bumping this thread back to the main page since I just linked it to a couple of people. The choicescript tester is amazing! I think it’s one of the most valuable tools for coding out there.

@CJW
This is amazing! Thank you for creating it! It’s a lot easier than having to copy my game folder, edit it, test it, then copy and paste the changes in to the actual game folder!

Always glad to hear thing’s are helping people, thanks guys :slight_smile:
As always, please do let me know if you think of any way in which I could improve it!

This makes testing so much easier. Thank you.
Could I ask something? goto doesn’t work, but gosub does in this tester, right?

*goto will work as long as the referred label is there.

Well i havent a pc could i use it? also what is the main difference with the quicktext.html ?

@Mystjerne
Glad you like it!
But *goto should work just fine, all the commands should… :o

@MaraJade Sadly that’s one thing that I’m still struggling with, even if I could format it for phones, I tend to find they struggle/lag running anything above a small amount of JavaScript.

It’s not really anything like quicktest.html, you just copy and paste code into it and it runs it like a game. It just saves you having to download copies of the language to test small snips of code.

Looks like it supports global vars now? (Perhaps update the first post, cuz I almost didn’t check this out cuz of this.) It seems we can use this for whole scenes now, not just snippets? That’s cool!

Found a bug: If I’m using it for one scene, then paste in a whole new scene. “Run” still runs the old one, and I had to reload the page to get it to run the new.

Suggestions:

  1. Use graphvis to make a visual flowchart, possibly with the values of select variables on each node, tracking how they change over different branches. Clicking on a node jumps to that place in the code.

  2. Keep track of loose ends in a list and let the user jump to any of them.

  3. I second the suggestion to highlight the code.

I made some PHP that you might be able to modify to speed production of the above two suggestions. Let me know if you want it.

A few more things:

  1. Hitting the tab key doesn’t put in a tab
  2. I tried to go to the settings a second time, but hitting the button didn’t do anything. If I hit “Raw” and then “Settings,” then I could go to settings.