MineTweaker3 icon indicating copy to clipboard operation
MineTweaker3 copied to clipboard

Zenscript validator?

Open Sunconure11 opened this issue 10 years ago • 2 comments

Is there a tool similar to the JSON validator I can use on these scripts to find where I'm missing a symbol, since I am having such an issue with one script, but, I cannot find the exact location, since it is in the script of a long book (minecraft-wise)?

Sunconure11 avatar Oct 07 '15 04:10 Sunconure11

It's possible to customize Notepad++ for this purpose, it doesn't come built in, but it's at least possible to manually do it. I did it to customize reading any AutoHotKey.ahk scripts I made, and it has a small variety built in. It won't test it for you though, so it won't pop up and be all like "Error! You forgot your ";" on line 236!", for something like that, you'd want something more similar to AutoHotKey, but you'll still need to set that up yourself (it has it's own help file that comes with the installation), and it's a lot more work, but they're both free either way.

Blue64 avatar Dec 09 '15 08:12 Blue64

I could probably create a simple script that can select all, copy, do some editing of what you tell it to look for, and paste it… actually I already have it, but I need to add a better GUI because currently it's just a bunch of yes/no/cancel boxes with an optional text box to replace stuff with other stuff. I could easily make it a single GUI screen with check boxes, and ok/cancel buttons. At least that way you can simply tell it to look for a "," and replace it with a new line and a tilde "~" so when you find the missing comma, you can simply add a new line, and the tilde "~" symbol (it's above Tab Key) and then just tell it to turn a new line and tilde into a comma. Also a good use: turn

)
[Line return]

into

) ~ 

which would locate any missed semicolons at the end of a line, since

);
[Line return]

doesn't Match, it'll be a shorter line.

P.S. if I make the script, and you're on windows, you won't need to install the AutoHotKey program, as I can compile it into a .exe file.

Blue64 avatar Dec 09 '15 08:12 Blue64