GithubHelp home page GithubHelp logo

sansarip / nw-calculator Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 4.0 135.02 MB

A crafting calculator for the New World game

Home Page: https://newworldcraft.io

License: Other

Clojure 16.67% HTML 30.25% Makefile 0.01% JavaScript 53.07%
new-world crafting-calculator clojure clojurescript re-frame reagent react figwheel-main leiningen

nw-calculator's Introduction

New World Crafting Calculator

Web app for calculating item crafting ingredients in New World.

View it at newworldcraft.io.

Data scraped from nwdb.info ๐Ÿ™‡

PRs are welcome! You can find me for collaboration here on Discord.

Current State of the App

For simplicity's sake, all item data is in the items.json file. If you notice an issue, then you should drop a <date>-<description>.patch.json file in the the resources/data dir containing your desired changes. If your changes include adding/editing an image url of an item, then you must also put a corresponding 128x128 image in the images directory. Once your patch file is ready, then you can run make patch-data in order to patch the items.json file with your changes. You'll need Babashka installed before running the aforementioned Make command.

Dev

Get a no-strings-attached dev environment with Gitpod ๐Ÿ’ฅ (it may take a while to build initially) or read the info below to set up your dev environment locally.

Prerequisites

Web App

Run the web application (figwheel-main) server with the following command:

lein fig:dev

After some time, you should be able to browse to http://localhost:9500 to view the main app and http://localhost:9500/devcards.html to view the devcards.

Scraper

The scraper graciously pulls data from nwdb.info in a single-threaded, throttled fashion. The following command will download item data and item images.

lein scrape or make scrape

If you only want item data then run make scrape-data, and if you only want item images then run make scrape-images.

Afterwards, you can patch known data discrepancies with make patch-data which will output the finalized resources/public/data/items.json file. make patch will look at the patch files in resources/data/ in order to know what to patch.

Prod

If you wish to create a release, you'll need the same prerequites as Dev installed. You'll want to also make sure you have the following tools installed:

To compile the Prod JS, run lein fig:prod.

Or, you can just run make release which will compile Prod JS, overwrite build/ (this is where the site's content is built from), bump the version, prompt for a CHANGELOG update, and commit the release.

License

Copyright ยฉ 2021 sansarip

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.

nw-calculator's People

Contributors

sansarip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nw-calculator's Issues

How to get new crafts?

Hello!

It seems this project has been abandoned. I want to make an arbitrage calculator, and this is the only project I have found that has a list of all the items you can craft and the items needed to craft them.

Would you happen to know a way I can get a list of craftable items + recipes? I tried looking for the code you used to scrape the data, but couldn't find it.

Thanks!

Edit: Never mind I have just found the scraper. I have have never heard of this language before though so that is going to make it difficult for me ;(

Obsidian Voidstone/Lodestone Brick - Wrong Lodestone

Describe the bug
Obsidian Voidstone and Lodestone Brick uses the wrong lodestone.

To Reproduce
Steps to reproduce the behavior:
N/A

Expected behavior
Obsidian Voidstone and Lodestone Brick should use standard lodestone

Screenshots
firefox_2021-12-26_15-09-15
firefox_2021-12-26_15-09-40

Deleting an Item does not replace its name with the name of the item below it

Love the tool! Wanted to drop a quick issue for a tiny bug.

Steps to Reproduce

  1. Search for any item and select it (ie: Iron War Hammer)
  2. Click Add Another Item
  3. Search for any other item and select it (ie: Coarse Leather Gloves)
  4. Click the trashcan icon for the first item (Iron War Hammer)

Expected Result

The list shifts up. All information from the card below populates the first card.

Actual Result

The list shifts up. All information except the item name populates the first card

Screenshots

Scrolling through recipes

Is your feature request related to a problem? Please describe.
I would like to scroll to the recipes. For example, if you type Linen you get many recipes but you can select the one for Linen

Describe the solution you'd like
Lets scroll trough the recipes

Additional context
fSd5XY

Would really like to see this soon and I would like to thank you for the craft calculator!

EDIT:

Just discovered that when you type "Leinen" the recipe for "Linen" will actually show up

Coarse Leather Using Incorrect Material

Describe the bug
When adding items that require leather to the calculator, the calculator shows 3x Rawhide Scraps for Coarse Leather which are not available in-game.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://www.newworldcraft.io/
  2. Click on 'Search for an item'
  3. Enter 'Coarse Leather'
  4. See incorrect crafting requirements

Expected behavior
Recipes for items requiring leather should use 4x Rawhide instead when referring to Coarse Leather.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Windows 10 Pro 10.0.19043 Build 19043
  • Brave
  • Version 1.30.89 Chromium: 94.0.4606.81 (Official Build) (64-bit)

Additional context
Love the calculator and appreciate what you do!

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.