Code Monkey home page Code Monkey logo

scripting-api-extra's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

scripting-api-extra's Issues

Cannot find "/distconfiguration.html" in @workadventure/[email protected]

Hey!

First of all SUPER AWESOME STUFF WITH THE SCRIPTING!!!!!!!!!!!

Second of all: found a bug!

If I load the scripting api into my map using the map properties with
https://unpkg.com/@workadventure/[email protected]/dist/bundle.js

And then try to add a config screen and open it I get this error:
Cannot find "/distconfiguration.html" in @workadventure/[email protected]

I definitly see the missing slash between dist and configuration.html
I also did not test the doors with keypad but I think they would fail because of the same reason.

I have "fixed" the issue for myself by changing the asset url in default_asset_url.ts, then rebuilding and selfhosting the script on my own server. With this in place it works just as intended!

But I would assume that it should also work with the version from unpkg.com :-)
Should be fairly easy to solve I guess

Greetings,
Lukas

Keypad does not work on doors nor plays sound

Here is the error:

TypeError: Cannot read properties of undefined (reading 'entries')
    at Proxy.initVariables (state.ts:49:48)
    at iframe_api.ts:38:18

I am running a fairly old Workadventure, ~Nov 2021

I debugged in a bit. It seems, that the WA.onInit()call returns undefined instead of a valid Promise.
This causes the catch block around it to directly fire and hinders the preparation of the Keypad.
The Keypad shows up, but no key-sounds are played nor the door opens like it did before (worked on 5th of Jan still, can confirm)

Screenshot from 2022-01-26 11-55-27

I tried forcing the version of scripting-api-extra to 1.1.1 which was available at 5th of Jan when it still worked, but it still gave the same error on my instance.

[Question] Self-Hosting instead of unpkg

Hi there sorry to bother you but i can't get my head around the fact how this is hosted on unpkg.com and how i can clone and self-host this library. i would like to do some changes on the styling. Can you give me a quick hint about the steps i should take?
I saw that the bundle.js is also published to github-pages. Could it be imported like this:

script: https://workadventure.github.io/scripting-api-extra/bundle.js

instead of:
script: https://unpkg.com/@workadventure/scripting-api-extra@^1/dist/bundle.js

i already tried to install the library in my project like so:
npm install --save git+https://github.com/workadventure/scripting-api-extra.git

but i get errors - i guess because the map-starter-kit uses vite while here we are using webpack.

Anyways, my main question:
How can i tell workadventure (self-hosted) to not load from unpkg.com but my version? Ideally hosted with github pages. Just a few hints in the right direction would be really appreciated. thanks a lot!

Back button is failing

In the configure the room sub pages, the back button is now broken.

Also, a number of errors are displayed when opening the "Configure the room" page.

Variable based Layer Visibility lost when switching rooms

I have 2 rooms, each of them uses variables to set the visibility of an overlay layer using the configuration menu. This works fine, but when changing rooms using the zones the variables get reset and the layers will always be visible, no matter what...

The only way to get them back to the desired state is to do a full page reload in the new room. So this is definitly a problem of the frontend / scripting extension as the server side var state seems to stay correct

Door variables are not working in Tiled 1.9

Despite the release of v1.3.3, it seems doors cannot find variables if the variable is defined with a "class" attribute (instead of a type) as is customary with Tiled 1.9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.