Code Monkey home page Code Monkey logo

oracle_engine's Introduction

Oracle Engine

Foundry

Oracle Engine

Oracle Engine is Foundry's Rust and WebAssembly based Destiny 2 calculation API, originally forked from the D2 Calculation API. This repo is what holds the weapon formulas, stat calculations, perk info, etc. that we use to display on Foundry.

This is also where we plan on having our project board for keeping track of our tasks on a lower level. We hope that this will give insight on what we are spending our time on and what is in the near future.

If you wish to interact with us on a closer basis, our Discord Server is where you can find us and have discussions with like minded guardians. We look forward to seeing you there!

Building Oracle Engine for Foundry

Run cargo build to install the dependencies required by Oracle Engine.

In order to build the WebAssembly (wasm) pack you will need to download wasm-pack from this site or via this cURL command:

curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

Once you have this installed you can build the app via this wasm-pack command.

wasm-pack build --release --target web

Contributing

Looking to help contribute to Foundry? We welcome you to contribute to our project! Please see our CONTRIBUTING.md to learn the various ways you can help us. Thank you for having an interest in contributing!

oracle_engine's People

Contributors

barmonhammer avatar oh-yes-0-fps avatar jayandromeda avatar devanthugo avatar gothfemme avatar flaminsarge avatar pixeled99 avatar

Stargazers

 avatar Jonathan Alexander avatar Cole Brooks avatar Alwin Garside avatar John Gage Faulkner avatar  avatar  avatar  avatar  avatar

Watchers

David Barsky avatar  avatar  avatar  avatar

oracle_engine's Issues

[feat]: support for checkmate ttk

Synopsis of the feature

Be able to see a weapon's ttk in the new checkmate modifier pvp modes

feature type

New feature

Description of the feature

Checkmate is a new feature in crucible labs where player health is increased by 'a small amount' to shift ttk's to be longer for some archetype's. Look into by how much this health is scaled/increased as well as other possible weapon damage information relevant to the mode... should just be health.

Supporting Information

https://www.bungie.net/7/en/News/article/twid_09_14_2023

Feature checklist

  • cargo build passes
  • PR linked (draft if code is still in progress!)
  • Changes verified by Foundry contributor

Add calculation overrides

Currently there is no way to set:

  • damage already dealt
  • current mag size
  • over shield health

We should have a function that sets these values globally so all stat_calcs get affected with one call.

This may require CalculationInput to be revamped.

General: build.rs fails to download DestinyInventoryItemDefinition due to TimedOut

Purpose: feature/bug/etc

bug/build failure

Description: give a full description of what your issue entails.

trying to build oracle_engine for the first time, build.rs panicked with -

error: failed to run custom build command for `oracle_engine v8.0.0 (/mydestiny2dir/oracle_engine)`

Caused by:
  process didn't exit successfully: `/mydestiny2dir/oracle_engine/target/debug/build/oracle_engine-4e7040a7d2de012e/build-script-build` (exit status: 101)
  --- stdout
  cargo:warning=downloaded new manifest

  --- stderr
  thread 'main' panicked at build.rs:485:73:
  called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Decode, source: TimedOut }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Current behavior:

build.rs panics if internet is too slow to download DestinyInventoryItemDefinition from bungie.net

New/Expected behavior:

A timeout larger than 30s would be nice, eh?

Additional and/or supporting info

Issue Progress Checklist:

  • cargo build succeeds
  • PR linked (draft if code is still in progress!)
  • Changes verified by Foundry contributor

[weapon]: adept charge time and draw time mods not affecting stats

Weapon Name

Master-tier bows and fusions (ex. plug one.1)

Is there an existing issue/thread for this?

  • I have searched on discord and github

Link to discord support thread

https://discord.com/channels/1044304864903168061/1154261636870328443

Current Behavior

Adept draw/charge time mods are not affecting their respective stat in the basic stats window.

Expected Behavior

These should affect the stat by ~40ms in the basic stat window

Supporting Information

https://www.bungie.net/7/en/News/article/season-22-weapons-preview

Add additional info to README + CONTRIBUTING

Now that the repo's public we should add some additional docs around guidelines for contributing and other top of mind info for developing in it.

  • Add CONTRIBUTING.md
  • Link to it from README.md
  • Fill both out with some info that seems relevant

chore: fix auto rifle large magProf to a more accurate formula

Currently the exotic autos of quicksilver storm and necrochasm show their magazine size as 51 instead of 50. We think our formula may be slightly off but we need to test with other large mag prof autos to see if the exotics are an exception or if our formula is wrong.

Cerberus+1 damage fall on

Right now we don't support Cerb's damage fall on nonsense. Amoral_Support in the Discord has collected data for us.

  • Make this work somehow
  • Probably will need to talk to @gothfemme to make sure it displays correctly from web

[perk]: Path of Burning Steps

Perk/Trait Name

Path of Burning Steps

Is there an existing issue/thread for this?

  • I have searched on discord and github

Link to discord support thread

No response

Current Behavior

Path of burning steps applies to all weapon damage types.

Expected Behavior

Should only apply to solar weapons as it gives the non-stacking solar weapon surge buff

Supporting Information

No response

[perk]: Add Overcharge Capacitor

Perk/Trait Name

Overcharge Capacitor

Is there an existing issue/thread for this?

  • I have searched on discord and github

Link to discord support thread

https://discord.com/channels/1044304864903168061/1044304865364545649/1156345752893796372

Current Behavior

Perk is unsupported at the moment.

Expected Behavior

The perk is meter based and we need to see how much reload speed, range, etc gets added to the weapon as it builds charge. Need to find info on this perk as well as test it.

Supporting Information

No response

add: sword logic perk

for pve i believe it is 1 stack: 15%, 2 stacks: 25%, 3 stacks: 35%. 4 stacks: 50% with a duration of 5.5, 7.5, 10.5, and 15.5s respectively. need to confirm pvp if its 2 and 3 stacks for guardians are still 25% and 35% buffs

General: housekeeping

NOTE: This is for issues that do not fit the other, more specific, issue templates.

Purpose: feature/bug/etc

Refactor and cleanup issue template

  • [ x] cargo build succeeds
  • [ x] PR linked (draft if code is still in progress!)
  • [ x] Changes verified by Foundry contributor

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.