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

[FEATURE REQUEST] A documentation with full Syntax for scripting #825

Closed
GeAd23 opened this issue Jul 31, 2023 · 4 comments
Closed

[FEATURE REQUEST] A documentation with full Syntax for scripting #825

GeAd23 opened this issue Jul 31, 2023 · 4 comments

Comments

@GeAd23
Copy link

GeAd23 commented Jul 31, 2023

Got a great idea on how to improve GodMode9?
Manny people needs a document with the full syntax of the script language gm9.

Describe the feature you'd like
I can’t see how I can use math operations (+ - * /) or if I can read the size of an file or folder. Also I need to move a folder and rename it.
Can I use a variable to store an int or only strings/chars. Can I use an array or a while/for loop. The goto loop is normally only a workaround. Also I want to create a file (txt) and want to read and write to it.
This makes a full syntax documentation for scripting necessary.

Describe alternatives you've considered
Read existing scripts. But that is dangerous and really hard without a documentation.

Thank you for your help and time.

@GeAd23 GeAd23 changed the title [FEATURE REQUEST] A documentation with full Syntax [FEATURE REQUEST] A documentation with full Syntax for scripting Jul 31, 2023
@danny8376
Copy link
Contributor

danny8376 commented Jul 31, 2023

resources/sample is pretty much the document for scripting
for arithmetic operations and array, that simply doesn't exist

@GeAd23
Copy link
Author

GeAd23 commented Jul 31, 2023 via email

@d0k3
Copy link
Owner

d0k3 commented Aug 1, 2023

@GeAd23 - if you want a full scripting documentation, make one, and do a pull request. I think most of the questions you have can be answered via the sample script, and then there's also the Discord and the discussion forum here on Github. Here's the wrong place for asking all those questions, and I guess you will also need to be a little more specific.

Here's some answers:
Using newlines in strings works (why didn't you just try?)
You always need to specify a size when creating a file, but that size can be zero
Getting the size of a folder doesn't work - folders don't have a "size", and even modern OSes need to traverse the full folder structure to give you the combined size of all included items, this would take very long on a 3DS
Getting the size of a file has no command (afaik it wasn't useful for anything so far).

Closing this because wrong place. If you're interested in doing a proper documentation, I would still take pull request.

@d0k3 d0k3 closed this as completed Aug 1, 2023
@GeAd23
Copy link
Author

GeAd23 commented Aug 1, 2023 via email

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

No branches or pull requests

3 participants