[Tool] ChoiceScript Development Environment

Thank you so much @CJW for making this, I might actually be able to find errors in my coding attempts!
On a side note, is it possible to insert pictures into the editor?

@Theodor14
:slight_smile:

You can’t insert pictures into the editor, you can use the *image command as usual but you’ll need to use full url’s to some images somewhere, you won’t be able to use the relative ones.


*comment this should work.
*image http://www.mywebsite.com/images/myimage.jpeg

*comment this currently won't, for fairly obvious reasons.
*image myimage.jpeg

Is there a version of this tool that we can use offline?

@fantom
Not currently, but you’re the second person to ask that, so it might be something to look into.

@CJW Personally I think that CoG should license it from you or just hire you and make it into an app on IOS and Android.

I second @fantom if you want make a Android or Ios version please do it i just couldn’t be online all time . I already pay for worse programs than this for android to code and published it in dropbox auto sync. i
ay 3 or 4 euros happpil.

@fantom @MaraJade
Whilst I won’t rule the idea out entirely, iOS and Android applications are not something I’ve currently got any plans for, sorry about that :confused:

@CJW maybe that can be next year’s Christmas present :wink:

@Redgrave
Ahahah! Maybe!
But who said THIS was this year’s Christmas present? :wink:

@CJW LOL

@CJW
Ok have been working on the hangman puzzles, the first two work fine. I use
*script temps.ans = temps.ans.toLowerCase();
So the next three have a problem with this same script.
So I went to use the IDE tool and *script commands are not allowed message. Is this something that you will be able to add in the tester later.

@lordirishdas
I’m not overly sure on the best approach here.
Allowing the use of *script gives the IDE users free access to JavaScript and through that, the page’s (the IDE’s) core functionality. I want to (eventually) allow the sharing of IDE snippets via link, as you can imagine this can lead to security issues at worst and broken functionality at best.

On top of this Dan hasn’t made it clear how far support for *script goes in published games, so I’d rather not encourage its widespread use at present.

Understandable. Thanks.

@fantom “Is there a version of this tool that we can use offline?”

Just curious, really: what do you see as the main benefits of that over the online approach?

@fantom I ask @CJW the same question when I started testing it, as I only have so much data in a month I can use. However, I used it for a full day fairly heavy. Only used .03 in data, so it does not require much in the way of data usage if that is the concern.

*edit
NM lol 1 looks like and small case L

@Vendetta For me it’s mainly because my internet connection can be spotty sometimes.

@Vendetta i havent pc so i depend wifi. Im my home i have it, but in my grandma or away not, so maybe 60% of my time i work offline. that is why I ask for it, I dont wanna switch half code one half code in my actual apps.

@fantom @lordirishdas @MaraJade
You MAY be able to get some limited functionality by navigating to the web page and using your browsers’ equivalent of file->save as->Web Page (Complete).

I haven’t tested this, but it’s worth a shot…

There are numerous issues with it being offline though. For starters you can’t use Dropbox (when it’s integrated) for obvious reasons and even localStorage as IE (at least) doesn’t like allowing its use on file// protocols, Chrome doesn’t like AJAX on file// protocols, so you can’t ‘grab’ proper files like you can on Firefox.

Generally speaking all the browsers have their own offline quirks that makes it really difficult for me to produce consistent and predictable behaviour in an offline environment.

  • I can’t rely on localStorage for saving because of IE disallowing its use
  • I can’t use AJAX on local files because only FF supports it
  • You can’t save to Dropbox because you’re offline

Writing two or three more different routines just to manage offline saving functionality is not in the least bit attractive, and the IDE becomes pretty redundant if you can’t save your work :confused:

As and when the FILE API methods become better supported, maybe I can review this.

@CJW I I am NOT concerned with off line save feature. I will just copy and paste the code notepad Plus and save it there.