@casual-simulation/aux-vm
Advanced tools
Changelog
V0.11.3
three-vrcontroller-module
to use the three
package instead of three-full
so we don't duplicate Three.js.webrtc-adapter
).lodash
imports to directly import the modules that are used.
server.saveFile(filename, data, options)
filename
is a string and should start with /drives/
.data
is a string of the data to store.options
is an object with the following properties:
callbackShout
A shout that should happen on the server when the file is done saving.overwriteExistingFile
A boolean that indicates if existing files should be overwritten. (defaults to false)server.loadFile(filename, options)
filename
is a string and should start with /drives/
.options
is an object with the following properties:
callbackShout
A shout that should happen on the server when the file is done loading.onAnyAction()
listener.
if (that.action.type === 'device') {
if (
['save_file', 'load_file'].indexOf(
that.action.event.type
) >= 0
) {
action.perform(that.action.event);
}
}
/drives
directory and the USB drives themselves are numbered starting with 0.
server.loadFile("/drives/0/myFile")
.server.saveFile("/drives/1/myFile", data)
.removeTags()
function from working when given an array of bots.Changelog
V0.11.27
auxBuilder
dimension and can be woken up by clicking it... [name]
- Wakes Builder with the given name. If the name is omitted, then the b001
Builder will be woken..sleep
- Puts Builder to sleep..sheet [dimension]
- Opens the sheet to the given dimension. If the dimension is omitted, then the sheet will be opened for the current dimension..new bot
- Creates a new bot in the current dimension..download
- Downloads the entire universe..upload
- Shows the upload dialog..goto {dimension}
- Redirects the page portal to the given dimension..new universe {universeName}
- Creates a new universe with the given name and opens it in a new tab..show history
- Loads the history and goes to the auxHistory
dimension..mark history
- Creates a new history mark for the current state..show docs
- Opens the documentation website in a new tab..summon
- Summons the Builder helper into the current dimension..new builder {name}
- Creates a clone of the current builder with the given name..summon
command.~
key to show the char bar.3342
finger tap code on mobile to show the chat bar.5
finger tap on mobile to hide the chat bar.Changelog
V0.11.19
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.10
Changelog
V0.10.5
player.showHtml(html)
function that shows a modal with the given HTML.
Changelog
V0.10.4
onAnyAction()
action tag to intercept and change actions before they are executed.
onAnyAction()
runs for every action, including when a bot is created, changed, or deleted.type
property.
type
property is a string that indicates what the action does.add_bot
: A bot should be added (i.e. created).remove_bot
: A bot should be removed (i.e. deleted).update_bot
: A bot should be updated.apply_state
: The given bot state should be applied. (i.e. a set of bots should be created/updated)shout
: A shout should be executed.show_toast
: A toast message should be shown on the device.show_barcode
: A barcode should be shown.tween_to
: The camera should be tweened to show a bot.that
is an object with the following properties:
action
: The action that is going to be executed.onAnyAction()
on the config bot.
action.reject(action)
: Prevents the given action from being performed. Returns the rejection action.action.perform(action)
: Adds the given action to the performance queue so it will be performed. This can be used to re-enable an action after it has been rejected (you can also reject the rejection action). Returns the action that will be performed.local
bot which is stored in the browser's local storage.
local
bot is a bot that is unique to the device and channel.getBot("#id", "local")
.onShout()
to onAnyListen()
.onListen()
which is an alternative to onAnyListen()
that is only called on the targeted bots.plater.toast("message", durationNum)
.Changelog
V0.10.3
aux.context.pannable
: Controls whether the main camera is able to be panned.aux.context.zoomable
: Controls whether the main camera is able to be zoomed.aux.context.rotatable
: Controls whether the main camera is able to be rotated.player.moveTo()
to instantly tween the camera to a bot.
onCombineExit
action will now fire alongside the onCombine
action.remote(webhook())
.player.tweenTo()
to not change the zoom level when it is not specified.onPlayerEnterContext
action.Changelog
V0.10.2
player.goToContext()
.Changelog
V0.10.10