Home › Forums › Bug Reports and Feature Requests › Plugins User Manual Documentation Issue (Plug.provide syntax)
- This topic has 3 replies, 2 voices, and was last updated 3 years, 9 months ago by GLiFTeK.
-
AuthorPosts
-
2021-02-10 at 9:28 pm #38375GLiFTeKCustomer
Hi,
on the documentation for the Mitigating Code Bloatfunction code(block) { const fun = Plug.provide('myFunction', function(a, b, c) { console.log(a, b, c); });
it’s put as
${fun}(1, 2, 3)
when should be:
${fun}(${a}, ${b}, ${c})
(a,b,c instead of 1,2,3 and also curly braces and $’s)
also a big point is that when using:
output = "String Object3D"
(Example, ANY “output” type for output type puzzles.)
the Plugin.provide ending return should be:
(a return variable up here)
end of provide function brackets });
then…i think these are really important for the documentation to show.
Edit: thanks for the Plug.provide .
It seriously helps in using VS Code formatting readability!!IMPORTANT EDIT!…
the SEMICOLON at the end of the parenthesis around the argument needs to NOT be there.
this is a project-breaker, and your puzzles’ return output will not be able to be plugged into a receiving puzzle.it should be like this…
(Notice the diff of the 2 images… NO semicolon.. )Attachments:
You must be logged in to view attached files.Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2021-02-11 at 6:54 am #38406Yuri KovelenovStaff2021-02-12 at 3:24 am #38461GLiFTeKCustomerwe’ll check it out! thanks!
Just a note on this…
I use ORDER_MEMBER because I copypasta-ed it from somewhere and it worked.
But…
I don’t understand why, but probably will need to in the future for more complex plugins, or to solve current problems.
In researching,
I found the blockly rundown on ORDER.In the end of that page,
It’s said:Math is hard
Still don’t understand? No problem. Just use ORDER_ATOMIC as the order on every call to valueToCode, and-
use ORDER_NONE as the order for the final return statement
on every value block. The resulting code will be infested with needless parentheses, but is guaranteed to be correct.
Just for posterity, anyone searching this issue.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2021-02-16 at 1:48 am #38571GLiFTeKCustomeran important edit to the above post i made..
NO semicolon after arguments parenthesis!
link to that post…Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature! -
AuthorPosts
- You must be logged in to reply to this topic.