Skip to content

Commit

Permalink
gamejolt: major update (#1106)
Browse files Browse the repository at this point in the history
### Changes

- Added docs.
- Replaced some blocks with more efficient ones, replaced blocks marked
as deprecated.
- Added batch blocks.
There isn't any way to independently test them without a game so we'll
need people that are devs on GJ,
here are the [api docs](https://gamejolt.com/game-api/doc), they cover
what fields and params namespaces have, and the extension got rest of
the URL construction covered.
- Added debug mode and debug blocks, debug mode solves error messages
being interpreted as a valid response, on by default to prevent
significant block behaviour change.
- Unwrapped some resolves to put the error message into `err.last` for
the `Last API error` block to work properly, solves people improperly
using non-returning blocks and telling me that the extension is not
working instead of opening the console to see the errors. Thought of
doing this with alerts but that would significantly change most existing
projects' behaviour.
- Changed text on blocks and some error messages to be more readable.
- Changed GameJolt to Game Jolt because apparently Game Jolt with a
space is their actual name, didn't check if this breaks something
because it shouldn't (IDs and ID-like stuff untouched)

### And most importantly
- The `bool` object is now just `trueStr`.

### Wrapping up

Lint will probably complain about `data.stuff = undefined;`.
It is there to make blocks not skip errors.
![scratchblocks
(2)](https://github.com/TurboWarp/extensions/assets/100989385/9b28ec3a-1d30-4d09-898d-7091a40d9320)

Should be it.

---------

Co-authored-by: Muffin <[email protected]>
  • Loading branch information
softedco and GarboMuffin authored Nov 1, 2023
1 parent e9a5fb8 commit 396de07
Show file tree
Hide file tree
Showing 2 changed files with 3,498 additions and 2,228 deletions.
Loading

0 comments on commit 396de07

Please sign in to comment.