Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New user experience is poor #247

Open
Daomephsta opened this issue Feb 16, 2020 · 13 comments
Open

New user experience is poor #247

Daomephsta opened this issue Feb 16, 2020 · 13 comments

Comments

@Daomephsta
Copy link

Daomephsta commented Feb 16, 2020

The Getting Started page explains how to create a ZenScript file in excellent detail. Then it just gives the reader the code for Hello World, and explains none of it beyond where to find the output.
Imports and variables are mentioned by name, but not explained. Instead further information on them is hidden in the Advanced Functions category.

The page (perhaps there should be an entire category) should contain the following or link to it:

  • Creating a new ZenScript file
  • Hello World in ZenScript
  • Imports
  • Methods
    • What they are
    • How to call them
  • Comments
  • Fundamental data types. These are everything on this page.
  • Some practical things users might do with ZenScript. Linking to the docs on recipe modification would be good, it's simple and practical.
  • Debugging
    • Where the log file is
    • Common errors, and how to fix them
    • That the parser may give the wrong location for a syntax error if there are many syntax errors
    • Maybe how to make a good help request? What files to include, etc.
@InQuognito
Copy link

I am currently working on rewriting a lot of the docs to make it more user friendly, especially for new or otherwise inexperienced users. Please be patient with the devs, and other contributors working to change this.

@ZariusCane
Copy link

I agree. I used crafttweaker a whole lot in 1.12. I noticed the mod was released for 1.15.2 and no documentation is listed outside of 1.12 and 1.14. Did nothing change from 1.14? Do we use 1.14 documentation for 1.15.2?

@deathbutton1
Copy link

deathbutton1 commented Aug 1, 2020

Another thing that I can't find in the documentation that I would really want to know is: how do I test if a variable can be casted to a type? Like let's say I want to do something whenever an EntityMob is hurt, but if I add a function to the onEntityHurt event it will get called for any entity that is hurt, so I need some way to test if the entity is an EntityMob.

Edit: I figured it out. Zenscript has Java's instanceof operator.

@Daomephsta
Copy link
Author

This is still a huge issue.

@InQuognito
Copy link

Yeah, I kinda gave up on the docs, the only way to fix it was to rebuild everything from the group up which was what I was trying to do but the devs never pushed it so I gave up.

@jaredlll08
Copy link
Member

jaredlll08 commented Nov 19, 2020

Yea...
I have negative free time right now, gotta prioritize things unfortunately.

the devs never pushed it

@justinrusso who isn't a dev, but has also helped out in the docs gave you feedback on the PR in June.

I asked the status in August.
#263 (comment)

I'm not sure what more we were meant to push, all I saw was a PR that had unaddressed feedback and no replies to me asking for the status.

As for the docs in general, I don't mind rebuilding from the ground up, I know they aren't the best right now, but like I said, I really do have negative free time, so the only free time I get I gotta prioritize on other things.

@InQuognito
Copy link

Yeah I agree, I planned on addressing the feedback but life got in the way. If I get free time this summer I may pick it back up again but I think i’m going to wait until CT gets updated to 1.16 (unless it already is)

@jaredlll08
Copy link
Member

CraftTweaker is already on 1.16

@InQuognito
Copy link

InQuognito commented Nov 20, 2020

well then that answers that question. yeah i might dedicate some time to it over the break. Is my PR still open where I could pick up where I left off? I might fork the entire wiki repo and just start rebuilding it and if you like what you see you could add it as a new branch

@InQuognito
Copy link

InQuognito commented Nov 20, 2020

jaredlll08 , how would you feel about making a script library similar to the way coding language websites document their functions? I could start work on it

@jaredlll08
Copy link
Member

Do you have an example of what you mean?

@InQuognito
Copy link

InQuognito commented Nov 25, 2020

Do you have an example of what you mean?

image

We could have all of the functions available to users in a sorted, neat list and then upon clicking them, redirects to the proper area that details parameters and proper usage and explanations and examples, etc.

@jaredlll08
Copy link
Member

Hey, sorry it took me long to get back to this.

I would be open to that, @kindlich do you think we could get the auto docs doing that?
Like generate a method list at the top, and have it link to the methods down below

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants