scratchattach cloud requests in goboscript
This is a implementation of the scratchattach cloud request framework as of August 2025 which is built for goboscript. It is designed to be used with inflator and scratchattach
There are 2 broadcasts that are called by the cloud request api.
sa_on_server_response
when a server response to a request arrivessa_on_server_message
when the server sends a message to the client
There is a variable and a list for accessing the data provided on a request or server message:
- To access response data, use the
sa_response
list - The request status code is stored in the
sa_request_status
, and will be a member of theSAStatuses
enum.
- Timmccool for scratchattach
Make sure you have inflator installed
inflate install https://github.com/FAReTek1/cloud_requests
add cloud_requests to your inflator.toml
config:
[dependencies]
# ...
cloud_requests = "https://github.com/FAReTek1/cloud_requests"
Important
You will need to %include the inflate/time, inflate/char, and inflate/string modules before %including inflate/cloud_requests. This is due to a strange goboscript bug. If conditional compilation is added to these libraries, this might be resolved
use inflate install -e .
:
- clone the respository:
git clone https://github.com/FAReTek1/cloud_requests
cd cloud_requests
inflate install -e .
cd test
inflate
goboscript build
- open
test.sb3