Page 1 of 3

ZScript Language Documentation (WIP)

PostPosted: Sat Mar 10, 2018 10:47 pm
by Marrub
Hi, I've been working on documenting ZScript's core language and API for a month or so (more like a week of actual work) so here you go.

here is thing

This isn't on the wiki because I really don't like writing wikitext and because it isn't finished yet. The core language documentation is mostly done but the API needs lots of work as it is rather gigantic and makes up most of anyone's usage of ZScript. I'm putting this here because even in its currently unfinished state it's still useful and has lots of things that are not documented anywhere else. Feel free to ask questions, suggest edits, &c.

If you'd like to contribute (and acknowledge that this documentation is public domain and so your contributions will as well be,) don't hesitate to get at me on Discord, in the "#eldritch-rust" channel on my public server.

Re: ZScript Language Documentation (WIP)

PostPosted: Sat Mar 10, 2018 11:13 pm
by ZippeyKeys12
This should get pinned, it's great! Is this information going to eventually be migrated to the wiki?

Re: ZScript Language Documentation (WIP)

PostPosted: Sat Mar 10, 2018 11:56 pm
by nazakomu
@Marrub I honestly cannot thank you enough for this!
I believe that the documentation on ZScript, over a year later, is frankly insufficient, and that this kind of documentation is what we really need so that people can document it on the wiki for everybody else.
I have a couple friends who'd love to start using ZScript, but then I end up feeling a sense of guilt when telling them to start using ZScript instead of DECORATE, because I know they are nowhere near capable enough of using it. And without ample, adequate documentation in the wiki, it becomes tacky and rough swiftly for them. The best they can do is convert DECORATE to ZScript, but then they get lost from there when they are interested in making their own functions and doing some of the intermediate things.
So seriously, please keep doing what you're doing! <3

ZippeyKeys12 wrote:This should get pinned, it's great! Is this information going to eventually be migrated to the wiki?

I wholeheartedly agree that this is great information, and that it may be migrated to the wiki, but I'm sure that Marrub doesn't wanna plot this all into the wiki for the same reason that Major Cooke didn't wanna contribute very much before (i.e. making mistakes or accidentally giving out erroneous information).

Re: ZScript Language Documentation (WIP)

PostPosted: Sun Mar 11, 2018 12:24 am
by Kinsie
ZippeyKeys12 wrote:This should get pinned, it's great! Is this information going to eventually be migrated to the wiki?
nazakomu wrote:I wholeheartedly agree that this is great information, and that it may be migrated to the wiki, but I'm sure that Marrub doesn't wanna plot this all into the wiki for the same reason that Major Cooke didn't wanna contribute very much before (i.e. making mistakes or accidentally giving out erroneous information).

Reading is FUNdamental!
Marrub wrote:This isn't on the wiki because I really don't like writing wikitext and because it isn't finished yet.

Re: ZScript Language Documentation (WIP)

PostPosted: Sun Mar 11, 2018 12:37 am
by Marrub
Yeah, when it's done I'll migrate it to the wiki. Anyone is free to use this information to further the wiki of course, but again, it's not finished, so a lot of it either needs verification, rewording, or generally improvement before it's suitable for that.

Re: ZScript Language Documentation (WIP)

PostPosted: Sun Mar 11, 2018 2:33 am
by Jimmy
I need to read this cover to cover because so much of Programming Languages 101 (that isn't ACS) still eludes me.

Top stuff, Marrub.

Re: ZScript Language Documentation (WIP)

PostPosted: Sun Mar 11, 2018 5:04 am
by Graf Zahl
Thanks for taking the effort. I've been hoping for all that time that someone would take on the task. I am simply a shitty docs writer, like probably most programmers so I'd never be able to write comprehensive docs myself.

Re: ZScript Language Documentation (WIP)

PostPosted: Sun Mar 11, 2018 9:04 am
by Caligari87
Would it be okay if I added a link to this on the wiki at least? That way it's not lost in the forums or Discord chat in the meantime.

Meh, added at the bottom of the page. Better to beg forgiveness than ask permission, yada yada.

8-)

Re: ZScript Language Documentation (WIP)

PostPosted: Sun Mar 11, 2018 11:16 am
by Matt
Dang, this is good.

Re: ZScript Language Documentation (WIP)

PostPosted: Sun Mar 11, 2018 12:12 pm
by gwHero
This is really appreciated. Not easy at all to write good documentation.

Re: ZScript Language Documentation (WIP)

PostPosted: Sun Mar 11, 2018 1:28 pm
by JPL
This is incredibly valuable, thank so much for putting in the time and effort for this.

Re: ZScript Language Documentation (WIP)

PostPosted: Sun Mar 11, 2018 8:50 pm
by Eliot_L
Thanks for sharing this! It's an awesome resource.

Re: ZScript Language Documentation (WIP)

PostPosted: Wed Mar 21, 2018 2:59 pm
by Zen3001
Looks way more useful then the zdoom wiki

Re: ZScript Language Documentation (WIP)

PostPosted: Fri Mar 30, 2018 11:24 am
by Major Cooke
Graf Zahl wrote:Thanks for taking the effort. I've been hoping for all that time that someone would take on the task. I am simply a shitty docs writer, like probably most programmers so I'd never be able to write comprehensive docs myself.


I know what you mean.

Though in my case, things were confusing when it came to such parts like the menus and due to my lack of understanding on how certain things function, I didn't want to repeat what happened with the acceptable sound formats when (G)Zdoom still had FMOD and give people the wrong idea.

Big thanks, Marrub!

Re: ZScript Language Documentation (WIP)

PostPosted: Sat Mar 31, 2018 1:07 pm
by Major Cooke
Quick note about properties, you can only use int, double, bool, class<name>, strings and names. I haven't had any luck using vectors.