Hello all, gonna release the CS2Editor I made, as I'm going to start remaking it.
Let me be clear, this editor is absolute shit. Please only use it to gain an idea on how cs2 scripts work.
It will load, edit, and properly compile some basic scripts, but does not support a lot still, so don't be surprised if whatever you're trying to do isn't compiling.
I made this in the span of about 2 weeks, hour or two a day, without really knowing anything about language parsing. With that said, please don't judge the atrocity that you may witness within this project when it comes to the attempted parsing. It is a giant mess of recursion that you can pretty easily get lost in.
The decompiler itself is mainly just this: [Only registered and activated users can see links. ]
A lot of the naming, and definition loading comes from [Only registered and activated users can see links. ]
Oh, contains a pretty basic interface editor in it as well, that allows for setting scripts to be run on certain hooks. Also put a preview in there, and allowed editing of other values. I took most of the rendering code from another project that I cannot for the life of me remember the name of. If someone can figure out which one it was, I will edit and give the credits.
Link: [Only registered and activated users can see links. ]
Client made in electron, using the ace.js editor. (Fucking awesome editor btw, would recommend to anyone building an in-browser code editor)
I will be now working on remaking this using a proper parser, and will be keeping it open source for most of the time. Progress can be followed here: [Only registered and activated users can see links. ]
Spoiler for Media:
To run: Run CS2Editor.java, then run 'npm start' in the 'client' folder. (Requires Node)