Giter VIP home page Giter VIP logo

awesome-repository's Issues

Get the essential player data#

import { getUserData } from "@decentraland/Identity"

const userData = executeTask(async () => {
const data = await getUserData()
log(data.displayName)
return data.displayName
})

I am building a POC,. My web app is connected to Metamask. And I am not able to fetch the data of user, which has been created by same public key .

Issue with Images on the UICanvas in the nft-wall-example-scene

I'm using https://github.com/decentraland-scenes/nft-wall-example-scene
to show images that will have a unknown size to me.
They get weirdly stretched on the Canvas UI. The last pixels from the right side and/or bottom get stretched to fill the area.
It seems like the example got around this issue by making all the images 1024*1024, by adding white space to them.

Is there away to just have a image just naturally fill the width or height of the defined space, like you would with CSS.

getUserPublicKey

import { getUserPublicKey } from "@decentraland/Identity"

const publicKeyRequest = executeTask(async () => {
const publicKey = await getUserPublicKey()
log(publicKey)
return publicKey
})

I am creating a POC. My we app is connected to Metmask. But the above code is giving null value for public key.

Avocado does not appear in Decentraland SDK

I've copied the code exactly as it is on here into Visual Studio and the decentraland scene preview won't add it. Is there anything that commonly may cause this issue?

Thanks

no smoke

dcl started on the unzipped folder and I can't see the smoke
Screen Shot 2022-05-05 at 22 28 18

SyntaxError: Unexpected reserved word

I am running Ubuntu 18.04.5.
Node.js v8.10.0
npm: 6.14.10

I have installed dependencies: npm i -g decentraland

For all the examples when I run dcl start I get the following error:

/usr/local/lib/node_modules/decentraland/dist/cli.js:3
!function(t){var r={};function n(i){if(r[i])return r[i].exports;var o=r[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=r,n.d=function(t,r,i){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(i,o,function(r){return t[r]}.bind(null,o));return i},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=557)}([function(t,r,n){"use strict";n.r(r),n.d(r,"__extends"

SyntaxError: Unexpected reserved word
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
at bootstrap_node.js:609:3

Any idea what is wrong?

POAP BOOTH: no wallet error

When I run the template and I click on the POAP button in the scene, it appears a pop up asking to get metamask.

I have noticed this function can't somehow find the user data by using the Identity package.

if (!userData || !userData.hasConnectedWeb3) {
  log('no wallet')
  PlayCloseSound()

  boothUI.metamask()
  return
}

I have tried to connect both on local and deployment server with metamask ETH ropsten extension on (also tried with mainnet) and still failing.

I have also tried to run the command dcl start --web3 with the --web3 flag

Is it a bug or am I doing something wrong?

[Catalyst Test server] Check LAND permissions - You dont have permissions to update some of the coords

Thanks for a great package and well written documentation. I have downloaded a sample museum template from the repo and trying to push it to the catalyst test server to check its working on the test env. As mentioned in the documentation I have tried publishing using the command -
dcl deploy --target peer-testing.decentraland.org
for which I'm getting an error like -

Check LAND permissions
You dont have permissions to update some of the coords

how can i overcome this issue and publish the models to a random co-ords on the test server ?

image

Jukebox only have one song

image
Like this, I tested by changing iterators in for loop, and found the for loop has only been triggered for ones.
Which is, if I change the initial value of i, the only appeared song will be the 2nd, 3rd, or 4th.
I am not so familiar with JS, so could you please check and help? thanks.

Following POAP instructions leads to Event Not Found

I'm following the instructions to setup a POAP dispenser, but seem to be stuck at the stage where we transfer the POAP Event ID to the Decentraland POAP server.

I've tried using my own event ID, the one in the documentation (29108) and others from the POAP event listing page, but all seem to return "Event ID not found" on the Decentraland POAP server UI (https://poap.decentraland.org/).

Is the service down? Or am I doing something wrong?

Files in a scene

When I click on the Files in a scene or any of the other hyperlinks for that matter I get a 404 error page.

Unable to start Docker

When trying to run the included Dockerfile, i get following error. any idea whats needs to be fixed.

Error: dcl start TextDecoder is not defined, run "dcl help start" for more info.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: dcl start "--ci"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

error after runnning dcl start

Error [AssertionError]: Assertion failed
at new goog.asserts.AssertionError (/usr/local/lib/node_modules/decentraland/dist/cli.js:3:2574054)
at Object.goog.asserts.doAssertFailure_ (/usr/local/lib/node_modules/decentraland/dist/cli.js:3:2574606)
at Object.goog.asserts.assert (/usr/local/lib/node_modules/decentraland/dist/cli.js:3:2574872)
at jspb.BinaryReader.readEnum (/usr/local/lib/node_modules/decentraland/dist/cli.js:3:2654267)
at Function.proto.protocol.SubscriptionMessage.deserializeBinaryFromReader (/usr/local/lib/node_modules/decentraland/dist/cli.js:3:2521613)
at Function.proto.protocol.SubscriptionMessage.deserializeBinary (/usr/local/lib/node_modules/decentraland/dist/cli.js:3:2521381)
at WebSocket. (/usr/local/lib/node_modules/decentraland/dist/cli.js:3:2358426)
at WebSocket.emit (node:events:378:20)
at Receiver.L (/usr/local/lib/node_modules/decentraland/dist/cli.js:3:652466)
at Receiver.emit (node:events:378:20) {
reportErrorToServer: true,
messagePattern: 'Assertion failed'
}

I run npm install -g decentraland and then run 'dcl start', i recieve error message above. Also when first time running scene metamask requests a sign in to connect to the local scene. Any advice would be greatly appreciated!

"No more POAP available" error

Hello!
I believe you help me with Decentraland POAP server error.

  1. I set up these on my scene
  2. Created a drop on https://app.poap.xyz/admin/events/new (private with 10 mint links)
  3. Then I recieved a mail with edit code and event code
  4. Sent POST request https://poap-api.decentraland.org/event/{event_id} and pointed edit code and parcel in request body. I got a response with uuid
  5. I entered this uuid to the scene, to the dispenser.
  6. Deployed a scene and tested.

I click on a button on the dispenset, solve captcha and recieve an error "No more POAP available" with 400 HTTP-status code.

Also I sent a request to https://poap-api.decentraland.org/addcodes/{event_id} and got the next answer:

{
    "ok": true,
    "data": {
        "url": "/addcodes/{event_id}",
        "body": {
            "num": 0
        }
    }
}

Снимок экрана 2022-07-22 в 14 28 32

I don't know what is the reason of this error, I really believe you help me solve that. Thank you!

DCL start can not show what I created in dcl-edit

Hi All,

Thank you for building this important tool for developpers.
I'm an artist trying to upload my creations onto decentraland. However my fist try building of a scene is not that successful.
I tried to build an example scene using dcl-edit, it was smooth and successful and fun. I got result as below:

dcl-edit-result

Then I open dcl start, to simulate the result. I've updated to the lastest version of decentraland in npm.
However didnt see the scene. Shown as below:
dcl-start-result
The error messages I got from dcl start terminal is as follows:
_```

processing E:/dcl/src/scene.ts
Error E:/dcl/src/scene.ts (21,9): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2'.
Error E:/dcl/src/scene.ts (22,20): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2'.
Error E:/dcl/src/scene.ts (22,20): Expected 1 arguments, but got 2.
Error E:/dcl/src/scene.ts (23,9): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2_transform'.
Error E:/dcl/src/scene.ts (28,3): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2'.
Error E:/dcl/src/scene.ts (28,60): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2_transform'.
Error E:/dcl/src/scene.ts (29,9): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2_GLTFShape'.
Error E:/dcl/src/scene.ts (30,3): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2_GLTFShape'.
Error E:/dcl/src/scene.ts (31,3): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2_GLTFShape'.
Error E:/dcl/src/scene.ts (32,3): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2_GLTFShape'.
Error E:/dcl/src/scene.ts (33,3): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2'.
Error E:/dcl/src/scene.ts (33,60): Cannot find name 'bff909f73c9e4c2fa0756d03bffb8fc2_GLTFShape'.
Error E:/dcl/src/scene.ts (21,7): Variable declaration expected.
Error E:/dcl/src/scene.ts (21,8): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (21,9): ';' expected.
Error E:/dcl/src/scene.ts (21,9): An identifier or keyword cannot immediately follow a numeric literal.
Error E:/dcl/src/scene.ts (22,19): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (22,20): An identifier or keyword cannot immediately follow a numeric literal.
Error E:/dcl/src/scene.ts (23,7): Variable declaration expected.
Error E:/dcl/src/scene.ts (23,8): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (23,9): ';' expected.
Error E:/dcl/src/scene.ts (23,9): An identifier or keyword cannot immediately follow a numeric literal.
Error E:/dcl/src/scene.ts (28,2): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (28,3): An identifier or keyword cannot immediately follow a numeric literal.
Error E:/dcl/src/scene.ts (28,59): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (28,60): An identifier or keyword cannot immediately follow a numeric literal.
Error E:/dcl/src/scene.ts (29,7): Variable declaration expected.
Error E:/dcl/src/scene.ts (29,8): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (29,9): ';' expected.
Error E:/dcl/src/scene.ts (29,9): An identifier or keyword cannot immediately follow a numeric literal.
Error E:/dcl/src/scene.ts (30,2): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (30,3): An identifier or keyword cannot immediately follow a numeric literal.
Error E:/dcl/src/scene.ts (31,2): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (31,3): An identifier or keyword cannot immediately follow a numeric literal.
Error E:/dcl/src/scene.ts (32,2): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (32,3): An identifier or keyword cannot immediately follow a numeric literal.
Error E:/dcl/src/scene.ts (33,2): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (33,3): An identifier or keyword cannot immediately follow a numeric literal.
Error E:/dcl/src/scene.ts (33,59): Numeric separators are not allowed here.
Error E:/dcl/src/scene.ts (33,60): An identifier or keyword cannot immediately follow a numeric literal.
bundling:

  • node_modules@dcl\amd\dist\amd.js
  • node_modules\decentraland-ecs\dist\src\index.js
  • node_modules@dcl\ecs-scene-utils\dist\index.js
  • node_modules@dcl\ui-scene-utils\dist\index.js
  • src\scene.ts

writing E:/dcl/bin/game.js
writing E:/dcl/bin/game.js.lib

The compiler is watching file changes...

Websocket closed
2022-11-27T21:29:47.651Z [DEBUG] (RoomsComponent): Disconnecting user {"room":"room-1","address":"0xb19faa30900f75a616224933692b6622cef09e85","alias":1,"count":1}
2022-11-27T21:29:47.652Z [DEBUG] (RoomsComponent): Destroying room {"room":"room-1","count":1}
2022-11-27T21:30:32.659Z [DEBUG] (LinearProtocol): Generating challenge {"challengeToSign":"dcl-0.m5dbw1pr7e9","address":"0x05e74a1e8597cf208b9da3fdc58b4aa792230fe4","alreadyConnected":"false"}
2022-11-27T21:30:32.702Z [DEBUG] (LinearProtocol): Authentication successful {"address":"0x05e74a1e8597cf208b9da3fdc58b4aa792230fe4"}
2022-11-27T21:30:32.703Z [DEBUG] (RoomsComponent): Connecting user {"room":"room-1","address":"0x05e74a1e8597cf208b9da3fdc58b4aa792230fe4","alias":2}
2022-11-27T21:30:32.704Z [DEBUG] (RoomsComponent): Creating room {"room":"room-1"}


Wondering if I did something wrong?
Thank you for supporting.

Best,
Aki

Server folder

Hello!
Have you guys deleted server folder from the file?
I can't find POAP Handler.js
Can you upload the full POAP Booth folder, please?
It would be really nice of you if you can provide how to connect POAP handler.js and firebase API..
Looking forward to hear from you soon.

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.