Comments (5)
@Wasorma So I went and created this https://github.com/mgalos999/d2-mapper
from diablo2.
@mgalos999 this is cool, I think we should just add this directly into the map server? would be super simple to create a .svg
endpoint rather than .json
!
from diablo2.
Yeah I was thinking I'll make it a package, where you send it JSON blob and a location to dump the SVGs. Then just add it as a dependency to your map server and add a new endpoint to trigger it.
from diablo2.
I have built two options for map visualisations from this JSON map object.
- Web based using maplibre/HTML canvas https://github.com/blacha/diablo2/blob/master/packages/memory/src/session.ts#L62
- Older versions using nodejs canvas object to render to a PNG This is from my old
pimap
repo that I haven't ported across to the new code base yet. https://github.com/blacha/pimap/blob/0588544b9e37f49bbd7ae7e7d4e436599c5e498a/src/mapserver/map.image.ts
from diablo2.
Thanks for the response
Regarding method #1, I see maplibre code in the map package, do you mind giving an example of how to view it?
from diablo2.
Related Issues (20)
- Windows 10 HOT 3
- Installation/running guide HOT 1
- Win10 - Error when using Run command HOT 2
- Installation/running guide HOT 20
- Init:Failed:UnknownGameVersion with D2R HOT 6
- Building project @win64 HOT 2
- Can't generate maps for Act 5 HOT 6
- Nihlathak does not show up as npc object in the level data HOT 3
- How to run the memory scanner HOT 3
- Build instruction for map is missing log.c HOT 3
- Memory scanner and game list data HOT 3
- maps image endpoint fails for anything other than act 1 HOT 3
- Installation Method - Not a real Issue HOT 3
- It will not render levels for act 2-5 with this url /v1/map/:seed/:difficulty/:level.png HOT 2
- Entry / exit locations for non-dungeon areas HOT 2
- map generator build issue HOT 1
- 1.13 Patch_D2.MPQ , After creating the character, report an error when entering the room HOT 1
- Safe to use? HOT 1
- not working https://diablo2.chard.dev/
- Probblem generate map
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diablo2.