Skip to content

PieKing1215/sw-vehicle-breakdown

Repository files navigation

SW Vehicle Breakdown

https://pieking1215.github.io/sw-vehicle-breakdown/

Web tool for creating cost/mass breakdowns for Vehicles from Stormworks: Build and Rescue.

You can drag and drop or select a vehicle XML file, and it'll generate a table of the count, cost, and mass of every component used in your vehicle.
Once it's loaded you can click the column titles to sort by that column.
(this is all calculated in your browser, there's no uploading or server or anything)

image

Interesting Technical Details

This project is built using Perseus, a web framework for Rust.
The Rust code runs at two phases:

At compile time, data about the game's components (ie. the Rom) is parsed directly from the game's rom folder and included when it generates the static webpage and webassembly code.
An automated GitHub Actions workflow runs every Wednesday night that updates the game, recompiles the rom data, and redeploys the page to GitHub pages.
This means if a game update adds/changes components, the site will automatically update without any manual work needed (unless they do something very unusual)

At runtime (when you open the page in your browser), the Rust/wasm code loads the rom data and handles all of the XML parsing and statistics functionality locally.
This means there's no uploading step or server needed which means GitHub pages can host it for free :)

Licenses

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Disclaimer

I am not personally affiliated with Stormworks: Build and Rescue or Geometa, nor has Stormworks: Build and Rescue or Geometa endorsed this product.
Stormworks: Build and Rescue and any of its content or materials are the property of their respective owners.

About

Web tool to help with Stormworks vehicle cost/mass analysis

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Sponsor this project