@casual-simulation/crypto
Advanced tools
Changelog
V0.11.0
Improvements
Changes
action.perform()
now needs to be used to run actions on the server.
remote()
function.onAnyAction()
as that.action.type === "device"
onAnyAction()
has to detect remove events and execute the inner action via action.perform(that.action.event)
.server.grantRole()
server.revokeRole()
onAnyAction()
to handle them.
server.backupAsDownload()
server.backupToGithub()
server.shell()
server.backupAsDownload()
has been updated to accept a "session selector" which determines which session the ZIP file should be sent to.
server.backupAsDownload({ username: getTag(player.getBot(), "#aux._user") })
aux._lastEditedBy
tag.
onAnyAction()
.aux.context.zoomable.min
, aux.context.zoomable.max
aux.context.pannable.min.x
, aux.context.pannable.max.x
, aux.context.pannable.min.y
, aux.context.pannable.max.y
.Bug Fixes
Changelog
V0.10.0
webhook(options)
- options is an object that takes the following properties:
method
- The HTTP Method that should be used for the request.url
- The URL that the request should be made to.responseShout
- (Optional) The shout that should happen when a response is received from the server.headers
- (Optional) The HTTP headers that should be sent with the request.data
- (Optional) The data that should be sent with the request.webhook.post(url, data, options)
- Sends a HTTP Post request.
url
- The URL that the request should be made to.data
- (Optional) The data that should be sent with the request.options
- (Optional) An object that takes the following properties:
responseShout
- (Optional) The shout that should happen when a response is received from the server.headers
- (Optional) The headers that should be sent with the request.onWebhook()
action and send requests to https://auxplayer.com/{context}/{channel}/whatever-you-want
.
onWebhook()
is shouted to the channel that the request was made to and that
is an object with the following properties:
method
- The HTTP Method that the request was made with.url
- The URL that the request was made to.data
- The JSON data that the request included.headers
- The HTTP headers that were included with the request.onShout()
event.
onShout()
is executed on every bot whenever a shout or whisper happens.
that
is an object with the following properties:
name
is the name of the action being shouted.that
is the argument which was provided for the shout.targets
is an array of bots that the shout was sent to.listeners
is an array of bots that ran a script for the shout.responses
is an array of responses that were returned from the listeners.onChannelSubscribed()
- happens the first time a channel is loaded. Sent to every channel that is currently loaded.onChannelUnsubscribed()
- happens when a channel is unloaded. Sent to every channel that remains after the channel is unloaded.onChannelStreaming()
- happens when a channel is connected and fully synced. Sent to every channel that is currently loaded.onChannelStreamLost()
- happens when a channel is disconnected and may not be fully synced. Sent to every channel that is currently loaded.that
is an object with the following properties:
channel
- The channel that the event is for.onConnected()
onDisconnected()
aux.context.inventory.pannable
enables and disables the inventory's ability to pan, off by default.aux.context.inventory.resizable
enables and disables the inventory's drag to resize functionality, on by default.aux.context.inventory.rotatable
enables and disables the inventory's ability to rotate, on by default.aux.context.inventory.zoomable
enables and disables the inventory's ability to zoom, on by default.Changelog
V0.9.7
aux.iframe
tag.Changelog
V0.9.19
shout()
returns a list of results from every bot that ran a script for the shout ordered by bot ID.whisper()
returns a list of results from every bot that ran a script for the whisper ordered by the input bot array.return
statements. For example, to return 10
from a shout you would simply write return 10
.Create Context from Selection
.powered by CasualOS
to bthe hamburger menu and loading popup.Unselect All
from the sheets.getBots("id")
)Changelog
V0.8.10
diff
key word to merge
or mergeBall
.
aux.diff
has been changed to aux.mergeBall
and aux.diffTags
has been changed to aux.mergeBall.tags
and the diff
id tag value has been changed to merge
.Changelog
V0.8.0
actions()
section.aux.shape
set to sprite
.Changelog
V0.7.0
aux.context.grid
tag not use objects for hex heights.auxplayer.com/channel
load AUX Builder and auxplayer.com/channel/context
load AUX Player.onConnected()
and onDisconnected()
events to notify scripts when the user becomes connected for disconnected from the server.player.isConnected()
to help formulas easily determine if the player is currently connected.
aux.connected
tag on the user's file.Changelog
V0.6.5
aux.iframe
tag that allows you to embed HTML pages inside an AUX.
aux.iframe
: URL of the page to embedaux.iframe.x
: X local positionaux.iframe.y
: Y local positionaux.iframe.z
: Z local positionaux.iframe.size.x
: Width of the iframe plane geometryaux.iframe.size.y
: Height of the iframe plane geometryaux.iframe.rotation.x
: X local rotationaux.iframe.rotation.y
: Y local rotationaux.iframe.rotation.z
: Z local rotationaux.iframe.element.width
: The pixel width of the iframe DOM elementaux.iframe.scale
: The uniform scale of the iframe plane geometryChangelog
V0.6.0
Improvements
aux.progressBar
tag that generates a progressbar above the file, this tag can be set to any value form 0 to 1.
aux.progressBar.color
and aux.progressBar.backgroundColor
to color the progressbar's components.aux.progressBar.anchor
to set the facing direction of the progress bar relative to the file.aux.pickupable
to control whether files can be placed into the inventory in the player or not, will be true (able to be put in inventory) by default.
aux.pickupable
is true but aux.movable
is false, the file can still be dragged into the inventory without moving the file position. It can also be dragged out of the inventory by setting the file position only until is is placed, then not allowing position changes again as aux.movable
is still false.https://auxplayer.com/channel/context
)auxplayer.com/channel/context
)channel/context
)channel
)channels
set to the ID of the channel that you want to load.channels=abc/test
will load the abc/test
channel.https://auxplayer.com/channel/context?channels=abc/test&channels=other/channel
.superShout(event, arg)
performs a shout that goes to every loaded channel. This is the only way for channels to communicate with each other.player.loadChannel(id)
loads the channel with the given ID.player.unloadChannel(id)
unloads the channel with the given ID.onQRCodeScannerOpened()
onQRCodeScannerClosed()
onQRCodeScanned()
onTapCode()
player.getFile().aux._userSimulationsContext
.aux.channel
tag.
aux.channel
tag value is used as a channel ID and then AUX Player loads it for each file.player.unloadChannel(id)
is called, we only remove simulation files that are in the channel that the script is running in.player.loadChannel(id)
with the same ID the channel will remain loaded because at least one channel has requested that it be loaded.whisper(file, event, argument)
formula function that sends shouts to a single file.aux.version
tag to the globals file which will be used to help determine when breaking changes in the AUX file format occur.Ctrl+C
or Cmd+C
will cause the currently selected files to be copied to the user's clipboard.Ctrl+V
or Cmd+V
will cause the currently selected files to be pasted into the world where the user's cursor is."Copy"
option in the context menu.
Ctrl+V
keybinding after copying the worksurface will paste a duplicate worksurface with duplicates of all the files that were on the surface..aux
files into AUX Builder.
player.hasFileInInventory(file)
formula function that determines if the given file or list of files are in the current player's inventory.
handlePointerEnter
and handlePointerExit
function logic to only work in PlayerInteractionManager
.handlePointerDown
to PlayerInteractionManager
so down events in general can be collected on the player.Raise
and Lower
options on the workspace dropdown will now effect the entrire workspace if it has been expanded.Changelog
V0.5.2
onDragAny/onDropAny
actions to be onAnyDrag/onAnyDrop
.formula-lib.ts
has changed isPlayerInContext
export to player.isInContext
.formula-lib.ts
has changed makeDiff
export to diff
.openQRCodeScanner()
and closeQRCodeScanner()
functions.
onQRCodeScanned()
event is triggered with the that
variable bound to the scanned QR code.onQRCodeScannerOpened()
event is triggered whenever the QR Code Scanner is opened.onQRCodeScannerClosed()
event is triggered whenever the QR Code Scanner is closed.