• Hello Guest!

    We have recently updated our Site Policies regarding the use of Non Commercial content within Paid Content posts. Please read the new policy here.

    An offical announcement about this new policy can be read on our Discord.

    ~The VaMHub Moderation Team
  • Hello Guest!

    We posted an announcment regarding upcoming changes to Paid Content submissions.

    Please see this thread for more information.

Scripter

Plugins Scripter v1.5.0

- Array functions: push, splice, pop, remove, join
- String functions: substring, substr, split
- Support arrow functions with more than one argument: (arg1, arg2) => {}
- split and trim functions added to strings
- atom.GetStorable() now allows using "endswith", so you can do .GetStorable("Glance") for example.
- Add support for color params (getColorParam), uses html color codes
- Fix arrays not working when using a float (e.g. list[myFloat])
- Using console.log on an Error will not print the message and stack trace
- New File System API (fs.readSceneFileSync(), fs.writeSceneFileSync(), fs.unlinkSceneFileSync()) - This allows for machine and scene-specific files.
- JSON.parse and JSON.stringify (only flat, string-only objects)
- Ternary operators (condition ? true : false)
- Support isNaN
- Breaking change: .val now really calls .val instead of .valNoCallback, triggering onChange
- Added .valNoCallback on all storables
- Fix !value only working with booleans
- Fix Scripter not attached to storables anymore when reloading plugins
- Support string escaping (\n, \t)
- Fix setTimeout receiving seconds instead of ms
- Fix crash using scene.getAtoms()
- Fix crash with storable.getAllParamNames, stringChooserParam.choices
- Fix crash in code input in some circumstances when pressing home
-Crash on unsupported string templates (``)
-Fix reverse selections crashing the code editor when using Tab
- Fix doc errors (thanks Harry15)
- Change the license to CC BY-ND
- Fix Math.max and min not working (now supports either a list of values or an array) (thanks @notgivingitout for the report)
- Support underscores in variable and function names (thanks @notgivingitout for the report)
- Report errors in callbacks (on update, on float param value changed, etc.) and Stop listening to callbacks when one fails (scripter callbacks) (thanks @jaked for the contribution)
- String literal support in property names (thanks @jaked for the contribution)
- Implemented module (%) (thanks @jaked for the contribution!)
- Implemented Math functions: clamp, clamp01, inverseLerp, lerp, lerpAngle, lerpUnclamped, pingPong, smoothStep (thanks @jaked for the contribution!)
- Fix Vector3.y and z updating x instead of their respective values (thanks @jaked for the report!)
- Add scripter.containingAtom
- Add position, localPosition, eulerAngles and localEulerAngles on Transform and Controller (you can read and set the x, y and z values and use position.set(0, 0, 0))
- When loading a scene, wait at the end of the frame before running the script
- Fix lookAt and moveTowards not working unless physics is frozen
- scripter.onLateUpdate, onEnable, onDisable, onDestroy
- Ability to assign to properties returned by function calls (e.g. storable.getFloatParam("x").val = 1)
- Prevent controllers from being moved (lookAt, moveTowards) when physics is frozen
- Stop the running module when parsing errors are detected (e.g. onUpdate steps if an error is found after change)
- Fix crash when using atom.getStorableIds
- Distance now supports any transforms, not only controllers (e.g. player.head)
- Fix error in script created in the "+" tab
- Add string functions: length, startsWith, endsWith, contains
- Support single-quote strings
The very first official version of Scripter! You can check out the documentation here, but I'll create a few guides to get people started pretty soon :)

Back
Top Bottom