Giter Club home page Giter Club logo

center-brain-archive's Introduction

Center Brain Archive

a recipe viewer for Dyson Sphere Program

You can find the site here.

How to Use

By default, usage links are on, so all items come with helpful links for ways to produce and consume them.

If you like, you can disable those links with the slider in the upper-right. In this mode, left-click on an item to see all the ways to produce it and right-click to see all the ways to consume it. (Fans of JEI will recognize these controls.)

In the future I hope to add:

  • Technology tree (It knows about the whole tech tree, but just doesn't display it)
  • Item info (burn energy, stack size...)
  • A search bar

How to Contribute

  1. Have Rust, Nodejs, and Typescript installed.
  2. git clone this
  3. cargo run the /generator folder to generate dsp.json and dsp.d.ts

Repository Structure

The generator folder contains Rust code which generates a JSON file and a .d.ts file. The JSON has all the data and the .d.ts has definitions for it.

The site folder has the frontend Typescript code to display it.

The Github Page is actually published out of the gh-pages branch. (If you want to contribute to this site, you likely don't need to worry about that branch because it's generated automatically.)

Credits

  • @mellester for writing a script to scrape DSP recipes
  • Factoriolab for the item sprites
  • The DSP Wiki maintainers
  • The DSP Discord
  • And of course, Youthcat Studio. 您们的电子游戏真牛!

center-brain-archive's People

Contributors

gamma-delta avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mellester

center-brain-archive's Issues

Add Chinese translation

The viewer is written so you can easily write new translation files.

I speak a little bit of Mandarin, but I definitely don't speak it well enough to do this translation. So I definitely need help here.

Not all the recipes are implemented yet!

There are two linked problems here:

  • Every recipe in the game is not yet known to the program
  • Of the recipes I have, most don't have any data.

The first problem is just because I still haven't beaten the game and don't know all the recipes. Just add more entries to the Recipe enum in recipes.rs.

The second problem is because it just takes FOREVER to write everything in (especially when DSP runs at 9fps). Add entries to generator.rs, in RecipeEntry::generate_all().

Search for recipes involving several items

  • Get everything you can make with A, B, and C
  • Get everything you can make with A, B, or C
  • Get everything you can make with at least A, B, or C
  • Get everything you can make with at least A, B, and C

This might require an update to the dodgy parameter system I have...

Add a search bar at the top

I've started actually using my tool to play! It's quite helpful imo.

One of the things I want is a search bar at the top to search for items. Fortunately Halfmoon should make it easy to include one.

Add dark mode

I bet Bootstrap has an in-built way to do dark mode...

Add images with the items

I suspect I could do this with CSS ::before or something... but mostly I need a way to download all the thumbnails.

Anyone know where I can get them? Am I allowed to download from the wiki, or use their images cross-site without having to copy them locally?

Make the recipe links on by default

re @Vath#1558, they want it on by default, and that makes sense to me. You can always turn it off.

Too bad, I spent a long time on mobile device detection...

Save recipes and pin them to the side

Halfmoon comes with a sidebar system built-in, nice!

We can use the Bootstrap pin icon, probably in the footer of recipe cards. (Also todo: fix the recipe card footers.)

Update the parameter system

I think I would like to change it to something like #?action=ABC&key1=val1&key2=val2.

The action key is always required.

For example:

  • #?action=production&item=Hydrogen
  • #?action=consumption&item=IronIngot
  • #?action=searchUsage&items=IronIngot,CopperIngot,Stone&operator=and

SUBMIT ALL ERRONEOUS RECIPES HERE

Please submit all erroneous recipes here as comments.

At the moment, please do not post incorrect technologies or handcraftability, those are known.

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.