Project Astrum

Project Astrum

  • Installation

›API

Getting Started

  • Installation
  • Configuration
  • Usage
  • Demonstration
  • Browser Support

Guides

  • Framework
  • VirtualElements Guide
  • Quirks

API

  • AstrumClient (Actor Component)
  • AstrumPlayerControllerBase (PlayerController)
  • AstrumPlayerCharacter (Actor)
  • VirtualElement (Object)
  • VirtualButton (VirtualElement)
  • VirtualAnalogue (VirtualElement)
  • VirtualText (VirtualElement)
  • VirtualImage (VirtualElement)

Enumerations

  • AstrumEnumHUDHorizonalAlignment (Enumeration)
  • AstrumEnumHUDVerticalAlignment (Enumeration)
  • AstrumEnumEventRecipient (Enumeration)

References

  • Software Used

AstrumClient (Actor Component)

AstrumClient

Parent - Actor Component


Connect (method)

Connect to an Astrum Server instance using the Server Address and Port string variable.

Inputs

No inputs.

Outputs

No outputs.

Note: When connecting, Astrum UE4 client will fetch players that are already on the Astrum endpoint (ip address, unless forwarded). To reinitiate the mobile clients, clients are forced to refresh. This process will take a few seconds.


Disconnect (method)

Disconnect to any Astrum Server the client is connected to.

Inputs

No inputs.

Outputs

No outputs.


Add Custom Astrum Event (method)

You may only register and use custom Astrum events if you have access to the AstrumServer/AstrumClient source code and can edit it.

Inputs

NameTypeDescription
Custom EventStringThe name of the custom event you want to register/bind an event to (case sensitive - unique).

Outputs

NameTypeDescription
SucceededBooleanIf the method call succeeded in registering the custom Astrum event (if failed, couuld be duplicate event name).

Emit Custom Event to Client Id (method)

Emit a custom event to a set of specific client ID's (or one).

Inputs

NameTypeDescription
Recipient PlayersString (array)An array of Client Ids that will recive the event.
Event NameStringThe name of the custom event you want to emit.
DataJSON ObjectAny data to be sent with the emitted event.

Outputs

No outputs.


Emit To All Clients (method)

A simple wrapper for SocketIO emit event.

Inputs

NameTypeDescription
Event NameStringThe name of the custom event you want to emit.
DataJSON ObjectAny data to be sent with the emitted event.

Outputs

No outputs.


Vibrate Controller (method)

Vibrate the controller of either a: player, group, or all clients connected.

Inputs

NameTypeDescription
Vibration TimesFloat (array)Each float representing the milliseconds of either the vibration or wait period (starting with the first vibration).
RecipientsenumEventRecipientThe subject of the emitted event.
PlayerAstrum Player ControllerThe player who will recive the emitted event.
GroupAstrum Player GroupThe group of players who will recive the emitted event.

Outputs

No outputs.

Example

Example of Vibration Times - [200.0, 100.0, 200.0, 100.0] would vibrate the controller for 200ms, pause for 100ms, vibrate for 200ms and finally pause for 100ms.


Speak (method)

Have the mobile controller speak using the SpeechSynthesis Web API on either a: player, group, or all clients connected.

Inputs

NameTypeDescription
TextStringThe text that will be said by the controllers receiving the event.
RecipientsenumEventRecipientThe subject of the emitted event.
PlayerAstrum Player ControllerThe player who will recive the emitted event.
GroupAstrum Player GroupThe group of players who will recive the emitted event.

Outputs

No outputs.


New HUD Layout (method)

Update the set of HUD elements on either a: player, group, or all clients connected.

Inputs

NameTypeDescription
HUD LayoutAstrum HUD Virtual Element (array)The text that will be said by the controllers receiving the event.
RecipientsenumEventRecipientThe subject of the emitted event.
PlayerAstrum Player ControllerThe player who will recive the emitted event.
GroupAstrum Player GroupThe group of players who will recive the emitted event.

Outputs

No outputs.


HUD Element to JSON (method)

Convert Astrum HUD Element into JSON elements readable by Astrum Client and Astrum Server (ready to send).

Inputs

NameTypeDescription
HUD LayoutAstrum HUD Virtual Element (array)The text that will be said by the controllers receiving the event.

Outputs

NameTypeDescription
JSONJSON ObjectThe JSON object containing the HUD elements (ready to be sent).

Test Connection (method)

Check if the client is connected to an instance of Astrum Server.

Inputs

No inputs.

Outputs

NameTypeDescription
ConnectedBooleanResult of the test.

← QuirksAstrumPlayerControllerBase (PlayerController) →
  • AstrumClient
  • Connect (method)
    • Inputs
    • Outputs
  • Disconnect (method)
    • Inputs
    • Outputs
  • Add Custom Astrum Event (method)
    • Inputs
    • Outputs
  • Emit Custom Event to Client Id (method)
    • Inputs
    • Outputs
  • Emit To All Clients (method)
    • Inputs
    • Outputs
  • Vibrate Controller (method)
    • Inputs
    • Outputs
    • Example
  • Speak (method)
    • Inputs
    • Outputs
  • New HUD Layout (method)
    • Inputs
    • Outputs
  • HUD Element to JSON (method)
    • Inputs
    • Outputs
  • Test Connection (method)
    • Inputs
    • Outputs
Project Astrum
Docs
Getting StartedDocsTips
This is a academic project run by William Stansfield-Tyler (U1555999@unimail.hud.ac.uk)