question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to build the color buffer in the map packet ?

See original GitHub issue

I’m trying to send a map packet but still trying to figure out what kind of data i’d need to provide 😞

this.client.write('map', {
    itemDamage: 0,
    scale: 4,
    trackingPosition: false,
    icons: [],
    columns: 127,
    rows: 127,
    x: 0,
    y: 0,
    data: ?,
})

The original wiki is not so clear either

Do i need to use prismarine-nbt and build a nbt representation of the map format ? it doesn’t seems the right anwser at all so it’s a dead end for my weak breain 😥

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rom1504commented, Dec 15, 2018

Looks good. If I understand well this is a server side thing.

There are 2 possibilities (not incompatible, you can do both) :

  1. add a function in your module to convert a picture to a map using the function you already have
  2. then use it to make a flying-squid plugin (see its doc to see how to do it)

If you do 2 well, it will probably be usable even in a non-flying-squid context.

1 is probably good enough though, and you can just do a pr to reference your module in the readme and/or add a node-minecraft-protocol example to use your module 😉

On Sat, Dec 15, 2018, 06:38 Sceat notifications@github.com wrote:

I can also make a PR if someone tell me in which way it should be implemented

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/node-minecraft-protocol/issues/605#issuecomment-447539434, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPN_oCnPjoZi7DRIhwzAe2bB0gqU4GIks5u5Iq6gaJpZM4ZMhYB .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a Buffer Zone Around a Parcel | AutoCAD Map 3D 2018
Video: Color Surfaces Based on Elevation · Video: Adjust Hillshading · Video: Delete an Elevation Range · Video: Add a New Elevation Range...
Read more >
How To: Create a buffer and assign symbology on features in ...
Right-click the symbology created above, and select 'Properties for Selected Symbol(s)' to open the Symbol Selector dialog. 11. Select the desired color for ......
Read more >
Tutorial: Using Pro's Buffer Tools Inside Polygons and Polylines |
Run the tool and the line feature is added to the map as a separate feature class. Step 4: Creating buffers on one...
Read more >
Create a buffer around vector geometries or raster patches
Description. Calculate a buffer around all cells that are not NA in a SpatRaster, or around the geometries of a SpatVector). Note that...
Read more >
3 Buffer Analysis | Opioid-Environment-Toolkit.utf8 - GeoDa
3.1 Overview · 3.2 Environment Setup · 3.3 Simple Overlay Map · 3.4 Spatial Transformation · 3.5 Generate Buffers · 3.6 Rinse &...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found