[CSIDE] The ChoiceScript IDE (v1.3.3 Now Available — 05/09/2022)

Thank you so much, I appreciate it!

1 Like

Choicescript IDE it’s great. I was working with it on my game just fine until today but now i can’t open anymore the program. When i try to open it, a new window called “nw.js” appears and it doesn’t do anything. Is there a fix?
Edit: Sorry it seems it was just a problem of my PC not having enough free space lol

2 Likes

So I want to change the names since I keep using the wrong pronouns. (Yes, I write at 3-4 am while drunk on caffeine) so is there an easier way to find out a specific name? For example, If I search “Blaine” It’ll also give me $!{Blaine_name}

2 Likes

Using Notepad++ makes searching easier for me. There’s also an option to search on multiple dlopen text files as well.

1 Like

Oh, I’m using Choice Script IDE since it’s much easier to use.

You can use regexes in the search functionality. This is a rather complicated use-case, so it’s not documented. But if you click the “*” icon in the search bar, you should then be able to write something like:

   \bBlaine\b

Which should only show results for Blaine that is surrounded by word boundaries (e.g. a space).

You can Google about regexes quite easily if you wish to know more.

Don’t forget to toggle this off afterwards so you don’t get weird search results later.

Unfortunately the current public version of CSIDE doesn’t have project-wide find and replace, but the beta version does. So if you’re interested in trying that out, please join the Discord: ChoiceScript IDE

Or try it online via ChoiceScript IDE.

3 Likes

Oh! Thank you so very much! This will help a lot <3

2 Likes

Is there a way we can undo using this
image
I was trying to mess around and explore the new update, and tried to click on that, But now all the indentation of If and Else along with fake_choice and choices are nulled

If you use undo (ctrl+z) straight after I believe it’s possible. Otherwise if you’ve closed the program or otherwise cleared the undo stack, I think you’ll be out of luck.

I’d be interested to have an example of choicescript code that it messes up though, as this sounds like buggy behaviour.

I kind of had a back up available thankfully but if you click on “Convert all indentation to space” and then “Conveet all space to indentation” it just removes all the spaces and the if and the words below it become the same

1 Like

Just downloaded on my new computer and was unable to update to the latest version of CSIDEx64, see screen snip below.

Check your PMs :slight_smile:

I have a question, does CSIDE flag bad formatting outside of commands? It looks like it only catches ${this and @{this, but not $this, $this}, or {this}.

The current release has minimal syntax highlighting patterns that can help detect some mistakes, but it’s definitely not all encompassing. The version currently in development improves a lot in this area.

2 Likes

I hope you dont mind if i ask you another question, i thought it better to ask here than make a new topic. I’ve come across a bit of a problem. Using your solution worked perfectly, except for the fact that one of my variables seems to increase everytime i enter and exit the stat screen. Now, i’ve done some testing and noticed that it only happens when using CSIDE and not when running the game through a web app. Do you know if this is a known bug or if i’m doing something wrong?

1 Like

There was some cases where this little bug also happened in the compiled game as well. Its the famous “reroll” glitch.

I believe you can fix it by adding a command like a *page_break or a *goto just after the increment line but I may be wrong.

I moved your question to the CSIDE thread, so that @CJW or another can help figure out what is going on.

1 Like

I’m sorry if this is a stupid question but could you explain what you mean by ‘increment line’? I am pretty new to coding and not quite sure what that expression means. And thank you for taking the time to try and help.

1 Like

I don’t have anything to add here currently, it does sound like the reroll glitch to me (though should be equally present everywhere). “Increment line” here is referring to your *set command which is “incrementing” (posh word for increasing) your variable value.

1 Like

Thank you so much for taking the time to explain. It seems to have solved the issue.