@casual-simulation/crypto
Advanced tools
Changelog
V1.5.0
#portalCameraRotationX
and #portalCameraRotationY
tags to use radians instead of degrees.cameraZoom
and cameraZoomOffset
tags.os.focusOn(botOrPosition, options?)
function.
os.tweenTo()
and os.moveTo()
except that it takes an options object instead of a bunch of parameters.os.focusOn()
and os.tweenTo()
now use quadratic easing by default.
os.focusOn()
supports specifying the easing type just like animateTag()
.os.tweenTo()
and os.moveTo()
are now deprecated and should no longer be used. They will be removed in a future release of CasualOS.
experiment.beginAudioRecording()
and experiment.endAudioRecording()
functions to experiment with audio recording.
cameraMovementExample
) has been updated to reflect this change (version 2 and later).Changelog
V1.4.4
crypto.asymmetric.keypair(secret)
- Creates a keypair that can be used for asymmetric encryption and decryption.crypto.asymmetric.encrypt(keypair, data)
- Encrypts some data using the given keypair.crypto.asymmetric.decrypt(keypair, secret, data)
- Decrypts some data using the given keypair and secret.dimension
bot form as a preferred alias to portal
.Changelog
V1.2.21
MONGO_USE_UNIFIED_TOPOLOGY
environment variable to control whether the driver uses the new unified topology layer.Changelog
V1.2.0
:rocket: Improvements
MONGO_USE_NEW_URL_PARSER
environment variable parameter to control whether CasualOS uses the new MongoDB URL Parser. (Defaults to false)crypto.sha256(data)
data
is the data to calculate the hash of.crypto.sha512(data)
data
is the data to calculate the hash of.crypto.hmacSha256(key, data)
crypto.encrypt(password, data)
password
is the password to use for encrypting the data.data
is the data that should be encrypted.crypto.decrypt(password, data)
crypto.encrypt()
.password
is the password that was used to encrypt the data.data
is the data that should be decrypted.:bug: Bug Fixes
Changelog
V1.0.24
:rocket: Improvements
auxError
must be true
auxErrorBot
must be the ID of the bot whose script is in the editor.auxErrorTag
must be the name of the tag that is being edited.auxErrorName
is the name of the error that occurred.auxErrorMessage
is the message that the error contained.:bug: Bug Fixes
Changelog
V1.0.0
.summon
command to .
..new builder
command to .clone builder
ab-1
.list commands
command to show a HTML popup with a list of available commands.Changelog
V0.11.20
auxContext*
tags have been renamed to auxDimension*
.@onDrop
, @onModDrop
, @onClick
, etc. now have a dimension
property in the data
argument instead of context
.@onPlayerEnterContext
listener has been renamed to @onPlayerEnterDimension
._auxUserContext
, _auxUserMenuContext
, _auxUserInventoryContext
, and _auxUserChannelsContext
have been renamed to use dimension instead of context.auxChannel*
tags have been renamed to auxUniverse*
._auxUserChannelsContext
tag has been renamed to _auxUserUniversesDimension
._auxUserChannel
tag has been renamed to _auxUserUniverse
.player.setupChannel()
function has been renamed to player.setupUniverse()
.player.loadChannel()
and player.unloadChannel()
functions have been renamed to player.loadUniverse()
and player.unloadUniverse()
.player.getCurrentChannel()
function has been renamed to player.getCurrentUniverse()
.setup_channel
action type has been renamed to setup_universe
.@onChannel*
listen tags have been renamed to @onUniverse*
.
channel
property in the data
argument has been renamed to universe
.auxDimensionRotation
(auxContextRotation
) tags to auxDimensionOrientation
.auxDimensionConfig
tag (renamed from auxContext
).*
in front of the dimension name in the URL.
https://auxplayer.com/*home/example
if you wanted to view the home
dimension in the sheet from the example
universe.*
will show all bots in the universe in the sheet. (which is very slow at the moment)player.isDesigner()
function.auxShape
to auxForm
.auxImage
to auxFormAddress
.player.showChat()
and player.hideChat()
functions.
@onChatUpdated
shout with the text in the chat bar.@onChatEnter
shout with the text in the chat bar.@onChat
shout listener.
that
is an object with the following properties:
message
- The message that was sent.@onChatTyping
shout listener.
that
is an object with the following properties:
message
- The message that is in the chat bar after the user edited it.player.run(script)
function.
script
is the script text that should be executed.run_script
action. This allows @onUniverseAction()
listener to intercept and prevent scripts.player.downloadBots(bots, filename)
function.
player.showUploadUniverse()
function.
.aux
files.auxIframe
now supports URLs with *
characters in them.Changelog
V0.11.8