decentraland / old-documentation Goto Github PK
View Code? Open in Web Editor NEWš What is Decentraland?
Home Page: https://docs.decentraland.org
License: Apache License 2.0
š What is Decentraland?
Home Page: https://docs.decentraland.org
License: Apache License 2.0
alpha is listed as a Material property here: https://github.com/decentraland/ecs-reference/blob/master/docs-latest/decentraland-ecs.material.md
Under the "Create/SDK/Getting Started" section the links to "Installation Guide", "Coding Scenes" and "Preview Scene" are not working.
https://etherscan.io/tx/0x041c493f201d8a951dd02eb6773e128587f0bf1439666d6ae361e4902d54bba0
Whenever I search the chain retroactively with .getPastEvents("OrderSuccessful")
or .getPastEvents("AuctionSuccessful")
I'm not able to get the above txn. Any idea why that is? Is it b/c it's from OpenSea's contract? B/c it's an atomic swap?
https://docs.decentraland.org/development-guide/smart-items/
It should probably read:
"When new players join the scene, make sure that they obtain any relevant information from other players about the current state of the item. For example, to do this, the door item should out a channel.request when spawning, and if there are any other players with instances of that door there should be code that will reply with a boolean indicating if the door is currently open."
The general item data listed for the manifest has the keywords capitalized, like "Name", should be lowercase, like "name".
The manifest documentation fails to mention what to do with the initial id field. I assume one should give it a unique UUID, which can be obtained from an online UUID V4 generator.
What?
[HPM] Error occurred while proxying request 127.0.0.1:8001/lambdas/health to https://peer-lb.decentraland.org/ [ETIMEDOUT] (https://nodejs.org/api/errors.html#errors_common_system_errors)
...
Why?
ā Latest SDK installation found.
ā Checking decentraland libraries
[email protected] watch /Users/francis/Develop/test/francis_test/dcl
build-ecs --watch
dev mode: true
working directory: /Users/francis/Develop/test/francis_test/dcl
processing /src/MyPrompt.ts
bundling:
node_modules/@dcl/amd/dist/amd.js
node_modules/decentraland-ecs/dist/src/index.js
node_modules/@dcl/ui-scene-utils/dist/index.js
src/MyPrompt.ts
writing /bin/game.js
writing /bin/game.js.lib
The compiler is watching file changes...
[HPM] Proxy created: / -> https://peer.decentraland.org/
[HPM] Proxy created: / -> https://peer.decentraland.org/
Preview server is now running
Available on:
http://127.0.0.1:8001?position=0%2C0&SCENE_DEBUG_PANEL
http://192.168.0.139:8001?position=0%2C0&SCENE_DEBUG_PANEL
Details:
Press CTRL+C to exit
Acquiring comms connection.
[HPM] ECONNRESET: Error: socket hang up
at connResetException (internal/errors.js:639:14)
at TLSSocket.socketCloseListener (_http_client.js:449:25)
at TLSSocket.emit (events.js:412:35)
at net.js:686:12
at TCP.done (_tls_wrap.js:564:7) {
code: 'ECONNRESET'
...
[HPM] Error occurred while proxying request 192.168.0.139:8001/lambdas/health to https://peer.decentraland.org/ [ECONNRESET] (https://nodejs.org/api/errors.html#errors_common_system_errors)
Acquiring comms connection.
View details in Rollbar: https://rollbar.com/decentraland/documentation/items/7/
Error: Syntax error, unrecognized expression: #gid=0
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in Function.oe.error
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in oe.tokenize
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in oe.select
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in Function.oe [as find]
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in w.fn.init.find
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in new w.fn.init
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in w
File "https://docs.decentraland.org/js/global.js", line 316, in HTMLAnchorElement.<anonymous>
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in HTMLAnchorElement.dispatch
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in HTMLAnchorElement.y.handle
In the servers deep dive blog post (https://decentraland.org/blog/tutorials/servers-part-2/)
The link at the bottom "For instance, in a previous article about Genesis Plaza..." is broken and goes to a 404
View details in Rollbar: https://rollbar.com/decentraland/documentation/items/15/
ReferenceError: $ is not defined
File "https://docs.decentraland.org/", line 5268, in [anonymous]
View details in Rollbar: https://rollbar.com/decentraland/documentation/items/37/
TypeError: undefined is not an object (evaluating 'window.webkit.messageHandlers.selectedTextHandler.postMessage')
File "user-script:69", line 1, in m
File "user-script:69", line 1, in P
File "user-script:69", line 1, in [anonymous]
File "https://docs.decentraland.org/content-intro/", line 36, in [anonymous]
Python 2.7.x is no longer required with the new CLI, we have a couple of references to that we should remove
View details in Rollbar: https://rollbar.com/decentraland/documentation/items/3/
ReferenceError: zoomDisable is not defined
File "https://docs.decentraland.org/js/global.js", line 383, in HTMLDivElement.<anonymous>
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in HTMLDivElement.dispatch
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in HTMLDivElement.y.handle
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in Object.trigger
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in HTMLDivElement.<anonymous>
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in Function.each
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in w.fn.init.each
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in w.fn.init.trigger
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in w.fn.init.w.fn.<computed> [as click]
File "https://docs.decentraland.org/js/global.js", line 341, in sendingFeedback
I'll do my best to keep this list readable, I think it's a bit more manageable to keep it all in one place but let me know if I should open several issues instead.
Most of the feedback is about minor inconsistencies and misspellings, but some of it is mostly my opinion. I'll try to highlight those, you can do with it what you think is best.
https://docs.decentraland.org/documentation/introduction/
thru -> through (thru is only for informal communication)
speed up development times -> speed up development time
https://docs.decentraland.org/documentation/create-scene/
In Decentraland, a scene is the representation of the content of in an estate/LAND => what does the content *of in an* estate/LAND
mean?
Type Script scenes => TypeScript scenes
end users of your parsel will see => end users of your parcel will see
The only thing it really does is => Opinion This is a weird way to phrase it. Maybe It really just... ?
To preview your rendered scene locally (without uploading it to IPFS)Ā => Opinion This is the first time IPFS is mentioned, confusing for the uninitiated. I started from developers.decentraland.org which took me to Building scenes-> Introduction
. Maybe a link to https://docs.decentraland.org/decentraland/ or to https://docs.decentraland.org/documentation/publishing/#what-is-ipfs ?
To edit a scene, we recommend using an IDE likeĀ Visual Studio Code. => VSCode isnāt really an IDE
Next Step: Decentraland Introduction => Is that ok?
https://docs.decentraland.org/documentation/publishing/
https://docs.decentraland.org/documentation/mvp-guidelines/
Next Step => Takes me to Scene limitations
, is that ok?
Opinion This was a bit of a surprise. Reading from top to bottom I expected to find information about how the SDK worked and not how should I build an MVP. Not saying it's useless information, just the placement seemed weird. Also the reference to the persistent core loop
when the docs told me there wasnāt any loop before threw me off.
https://docs.decentraland.org/sdk-reference/SDK-Overview/
Locally-run scenesĀ - or dynamic => or? dynamic. It doesnāt say static anywhere. (same with Remotely-run)
For additional terms, definitions, and explanations, please refer to ourĀ complete Glossary. => Broken link
the SDK, please refer to the **SDK Quick Start Guide** => are the asterisks necessary?
please read ourĀ SDK Quick Start GuideĀ or theĀ CLI Tutorial => CLI Tutorial is a broken link
Next Step => Not the same as the sidebar again. Won't point this out again.
https://docs.decentraland.org/sdk-reference/scene-content-guide/
Tip: When editing the code via a IDE (like Visual Studio Code) => VSCode is not an IDE
Transition code example: <box rotation={currnetRotation}
=> currentRotation*
Another code example: <box rotation={currnetRotation} color={currnetColor} scale={currnetScale}
=> current*
Materials are also implicitly imported into a scene when you import a gtLF => should be glTF ?
This is useful, for example, to verify that animations are properly attached and their names. => and their names what?
Question: Why is the sound property a string instead of an object?
When using the liner or exponential model => linear*
Entities that have collision disabled can walked through => can be walked through ?
In Entity Collisions the code snippet says ignoreCollisions="falseā
, shouldnāt it be ignoreCollisions={false}
(itās not xml) ?
Decentralan currently doesnāt have a physics engine => Decentraland*
No Next Step
https://docs.decentraland.org/sdk-reference/event-handling/
The The click event example shows that this.setState
is a synchronous operation, this differs from React and confused me a bit. Should this be on a callback?
AĀ simpler way to deal with clicks that are done on a single entity => AĀ simpler way to deal with clicks made on a single entity ?
Note:Entity-specific => missing space after Note:
Entity-specific click events
this.eventSubscriber.on('redButton_click', ()) => {
=> Syntax error on ()) =>
;
at the end of the callPointer down and pointer up
buttonState
starts as false instead of 0
Rotation change
state = { rotation: { x: 0, y: 0, z: 0 }}
missing space between curly braces at the end }}
this.state.rotation.x += 90 ;
you can set the state directly?? https://docs.decentraland.org/sdk-reference/scene-state/ says to never do it.General missing ;
in all import statements
https://docs.decentraland.org/sdk-reference/scene-state/
Set the state code example indented strangely
The only exception to this is if theĀ shouldSceneUpdate()
Ā functionĀ is set up to prevent. => to prevent it* ?
Reference the state code example indented strangely
theĀ render()
Ā method draws a dynamic scene where the position of an entity is based on a variable in the status => of an entity is based on a variable in the state*
https://docs.decentraland.org/sdk-reference/entity-interfaces/
or include theĀ ignoreCollisionĀ component to change how it reponds to collisions with other entities => wasnāt ignoreCollision
an attribute/property?
Same comment as above about VSCode
Box this is the only code example where the position looks like this: { { x: 5, y: 0, z: 2 } }
instead of {{ x: 5, y: 0, z: 2 }}
Base Entity
scale={{ x: 2, y: 2, z: 0.0 5 }}
five on the loose!Materials this is the only Interface definition that doesnāt have newlines between properties
https://docs.decentraland.org/sdk-reference/scriptable-scene/
Lifecycle methods
eventSubscriber: EventSubscriber; timer: number; state: State = { counter: 0 }
EventSubscriber
come from?sceneDidMount
has lingering asterisks on the commentthis.state.counter < 20
on shouldSceneUpdate
?Low-level API
https://docs.decentraland.org/documentation/scene-limitations/
thru -> through (thru is only for informal communication)
Using Blender Render, any of its shaders are supported, that includes diffuse, specular, transparency, etc => all* of its shaders are supported ?
Next Step and Related documents -> Maybe Related Documents should be to the left and Next Step to the right? I think that it follows what I'm reading better, as is indented to the right. Maybe capitalise documents or lowercase Step?
XML/React like Code in the SDK Entity interfaces (https://docs.decentraland.org/sdk-reference/entity-interfaces/) looks a lot better than in Scene Content guide (https://docs.decentraland.org/sdk-reference/scene-content-guide/) probably because of the language set for the syntax highlighting
Sometimes it says export interface myState
and others export interface IProps
. The naming is kind of confusing
Visual error:
Clarify that the @GET /registry/:registry-id/address/:address/assets
request returns all the wearables that the users has for that registry no matter what the collection is.
View details in Rollbar: https://rollbar.com/decentraland/documentation/items/26/
TypeError: can't redefine non-configurable property "userAgent"
File "https://docs.decentraland.org/", line 1, in [anonymous]
Dear MANA team,
We are contacting you on behalf of Bitvavo, one of the biggest regulated EUR exchanges in Europe. We are proudly based in Amsterdam and have been offering the MANA/EUR trading pair to our customers for some time now. According to data from CoinMarketCap we currently provide a top 3 MANA market worldwide based on EUR volume.
In your docs we saw the page https://docs.decentraland.org/examples/get-a-wallet/ where you showcase 3 exchange options for MANA. We were wondering: can you add Bitvavo to this list? We created a custom asset page https://bitvavo.com/en/decentraland that you could link to (for localized versions, just replace "en" with "de", "es", "fr", "it" or "nl" in the link).
Thank you for considering the opportunity to add Bitvavo to the list of exchanges.
Kindly let us know if you have any questions.
It looks like it doesn't have a href
URL: https://docs.decentraland.org/documentation/
HTML:
View details in Rollbar: https://rollbar.com/decentraland/documentation/items/28/
TypeError: Cannot assign to read only property 'solana' of object '#<Window>'
File "chrome-extension://afbcbjpbpfadlkmhmclhkeeodmamcflc/inject_start.js", line 411, in Function.loadInjectObjectsOfSolana
File "chrome-extension://afbcbjpbpfadlkmhmclhkeeodmamcflc/inject_start.js", line 411, in Tt.dispenseInjectMessage
File "chrome-extension://afbcbjpbpfadlkmhmclhkeeodmamcflc/inject_start.js", line 411, in [anonymous]
File "chrome-extension://afbcbjpbpfadlkmhmclhkeeodmamcflc/inject_start.js", line 210, in HTMLDocument.<anonymous>
The documentation page "https://docs.decentraland.org/development-guide/custom-events/" states that to add a listener you have to call "events.addListener()".
That works for a single listener, but when adding a second one with the second parameter being "null", the error "The provided listener is already registered" is thrown.
The documentation should be more detailed instead of just saying "The listener to use. This will almost always be null." about the second parameter of the "addListener" function.
View details in Rollbar: https://rollbar.com/decentraland/documentation/items/11/
(unknown): Script error.
File "(unknown)", line unknown, in [anonymous]
This page:
https://docs.decentraland.org/development-guide/second-layer/
at the bottom, provides info about how to hook MetaMask up to Polygon test net.
However the info isn't quite complete, it lacks the Chain ID
Although it links to the Polygon docs where the full information is, providing part of the info but not all of it seems less than ideal.
Here is the full info from the Polygon site:
Network Name: Polygon Mumbai Testnet
New RPC URL: https://polygon-mumbai.g.alchemy.com/v2/your-api-key
ChainID: 80001
Symbol: MATIC
Block Explorer URL: https://mumbai.polygonscan.com/
I was curious about this project so I take a look and was really impressed but I couldn't help but wonder "Where is everyone?!" I noticed the "Friends" section but I don't know anyone using the platform. I thought to myself "maybe I can only see people who are my friends" and then "...but how do I make friends?". I found the events section and wondered whether or not everyone attending an event could see each other or not.
So, has this place just been a ghost town or am I missing something? I tried looking for people on the map too.
For any prospective investor in decentraland, it appears obvious that the value of one's investment depends upon the "network effect" so I think making all this clearer could be a great boon to your platform. Hope to be interacting soon.
https://docs.decentraland.org/decentraland/faq/ should be updated with a full list of supported browsers: Firefox, Chrome, and Brave.
Is there a way to get the Token_Id directly from an API call? If not would I go about converting the encoded_id?
In this page https://docs.decentraland.org/development-guide/second-layer/ there is a link to this faucet: https://faucet.ropsten.be/ which is deprecated
Maybe there already is one, but I couldn't find it here: https://docs.decentraland.org/
Is this the repo? https://github.com/decentraland/catalyst
or this one? https://github.com/decentraland/kernel
I think it'd be cool if the docs page helped newbies like me understand how they can run their own node.
Thanks!
playSound doesn't take a name parameter and pauseSound doesn't seem to exist? Which conflicts: https://docs.decentraland.org/development-guide/sounds/
View details in Rollbar: https://rollbar.com/decentraland/documentation/items/6/
TypeError: aside is null
File "https://docs.decentraland.org/js/global.js", line 450, in [anonymous]
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in l
File "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js", line 2, in a/</c<
onPlayerConnectedObservable, onPlayerDisconnectedObservable all do not trigger in my test scene. I implement the listeners as described here: https://docs.decentraland.org/development-guide/event-listeners/ and they do not seem to trigger.
I am able to trigger events for onIdleStateChangedObservable, onPlayerExpressionObservable, , onEnterSceneObservable, onLeaveSceneObservable, and OnPointerDown, am I just forgetting to import something? Or am I just implementing my code incorrectly?
I add my listeners at the top of my scene file, but I don't seem to get an output.
Docs.decenbtraland.org
SDK
Materials
Texture wrapping section.
In the two places where you have
let myTexture = new Texture("materials/atlas.png")
change it to:
let myTexture = new Texture("materials/atlas.png",{wrap:1})
Otherwise it doesn't work.
Also, you have an example that has:
myTexture.samplingMode = 0
but samplingMode is a read-only property
The documentation on page https://github.com/decentraland/documentation/blob/master/_posts/development-guide/2018-02-6-shape-components.md links to https://github.com/decentraland/ecs-reference , an outdated (or inaccurate) documentation that don't have Issues tab enabled.
An example of inaccurate information is the page https://github.com/decentraland/ecs-reference/blob/master/docs-latest/decentraland-ecs.textshape.md where many properties don't have any effect.
Maybe the information on decentraland/ecs-reference
should be rebuilt?
We are trying to put the stable version of the scene that we are working in our sever and we have a custom url and behind a nginx but when I connect to an instance of Ā“dcl startĀ“ on another computer using a domain name it gives me this error in top of the loading screen in a red box:
Critical error
And in the browse developer console:
WebSocket connection to 'wss:///?identity=MHhmYzViZDRmYWZmMzIxMjBmYWI4MzhlM2FhNTU0YWNmODcxMDQxOGRl' failed:
(anonymous) @ index.js:84
connectWS @ index.js:84
connect @ index.js:84
connect @ index.js:86
connect @ index.js:52
t.connectComms @ index.js:61
C @ index.js:61
View details in Rollbar: https://rollbar.com/decentraland/documentation/items/11/
(unknown): Script error.
File "(unknown)", line unknown, in [anonymous]
The documentation about the land API is out of date and required the following changes:
v2
v2
in https://docs.decentraland.org/market/api/GET /map
in https://docs.decentraland.org/market/api-migration-guide/ (the endpoint was remove, not replaced)Secondary-level navigation items on the Docs category are not displayed on the dropdown on mobile. The expected behavior should be the same of navigating in desktop, the user clicks on Docs and then all the secondary-level navigation items are displayed below (World, Market, Create & Ethereum Essentials)
View details in Rollbar: https://rollbar.com/decentraland/documentation/items/1/
(unknown): invalid object initializer (https://docs.decentraland.org/js/global.js?1627263424760586103#441)
File "https://docs.decentraland.org/decentraland/faq/", line 441, in [anonymous]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ššš
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ā¤ļø Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.