Tyler Hallada
513e95d697
After some testing, I'm fairly confident the issue I was seeing before isn't happening now. After re-processing ~250 plugins a few times with the same workers I was seeing significant slow-downs with large plugins. Also, if I was listening to music in the browser it would start crackling and popping. My hypothesis is that wee_alloc was causing a memory leak in the old version which was causing browsers to freak out unless I recreated the workers on every run. Though I'm not sure if that theory holds since I wasn't seeing out of control memory usage in the dev tools. Perhaps wee_alloc just wasn't good at managing memory after a certain number of allocate/deallocate cycles and was putting a huge strain on the browser. I'm hoping that reusing workers like this will also speed up processing and possibly resolve some crashing that some users were seeing. |
||
---|---|---|
components | ||
data | ||
lib | ||
pages | ||
public | ||
slices | ||
styles | ||
workers | ||
.babelrc | ||
.eslintrc.json | ||
.gitignore | ||
.nvmrc | ||
filesystem.d.ts | ||
next-env.d.ts | ||
next-sitemap.config.js | ||
next.config.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
sentry.client.config.js | ||
sentry.properties | ||
sentry.server.config.js | ||
tsconfig.json | ||
webkitdirectory.d.ts | ||
worker.d.ts |
modmapper-web
This is the frontend code for the modmapper project. Modmapper is an interactive map of Skyrim mods.
View the site live at modmapper.com.
This project renders every cell edit from all Skyrim SE mods on nexusmods.com as a heatmap on top of a map of Skyrim.
You can click on a cell to see all of the mods that edit that cell sorted by popularity. Clicking on a mod in that list will show you all of the cells that the mod edits (across all files and versions of the mod). You can also search for a mod by name or a cell by x and y coordinates in the search bar at the top.
You can also upload the plugins from your Skyrim Data folder and the load order from your plugins.txt
to view all of the edited cells in your current load order. Red cells indicate multiple mods editing the same cell. Clicking on a plugin in your load order will show the cells that the plugin edits and the mods and files it belongs to on nexusmods.com (if it can be found on there).
If you like the Modmapper project and found it useful, please consider donating me a dollar or two on my NexusMods profile if you can spare it to cover the hosting costs of running the site.
Related Repositories
- modmapper: program to automate downloading, extracting, and parsing plugins
- skyrim-cell-dump: library for parsing skyrim plugin files and extracting CELL data
- skyrim-cell-dump-wasm: exports skyrim-cell-dump's functions for WebAssembly
Getting Started
This is a Next.js project bootstrapped with create-next-app
.
First, install the dependencies:
npm install
Then create a file named .env
at the root of the project with the contents:
NEXT_PUBLIC_MAPBOX_TOKEN=tokengoeshere
You can get a Mapbox token by creating a mapbox account and generating a token on the access token page.
Now, run the dev server:
npm run dev
Open http://localhost:3000 with your browser to see the site.
This site is deployed as a static website (with next build && next export
), so be aware that SSR and other Node.js features are not supported.