Giter VIP home page Giter VIP logo

fogchamp's Introduction

FogChamp

Pokémon Battle Revolution Matchup Visualizer for Twitch Plays Pokemon.

Quick Start

You will need:

  • Python 3+
  • Haxe 3.2+
  • Linux OS
  1. Clone this repo
  2. Initialize veekun's Pokedex: git submodule init
  3. Generate the JSON files: python3 -m util.csv2json
  4. Generate the JS: make (or copy the haxe command in the Makefile).
  5. Copy static/ to static/ on your web server
  6. Copy the icons from http://veekun.com/dex/downloads to static/veekun/icons/ on your web server
  7. Copy the JSON files (pbr-platnium.json, moves.json, descriptions.json) to your web server
  8. Copy the script.js file to your web server
  9. Copy visualizer.html (rename to index.html if desired) & style.css to your web server.

Credits

Copyright 2015 Christopher Foo. Licensed under the MIT license.

  • The PBR metadata was obtained from Nkekev's docs.
  • The PBR metadata was obtained from Addarash1 & Chaos_lord docs.
  • Contains data scraped from TPPVisuals.com.
  • Contains data scraped from Bulbapedia. CC by-nc-sa 2.5.
  • Contains mustache.js. MIT license.
  • Contains jquery-visible by customd. MIT license.

This visualizer was inspired by Felk's visualizer which I can't find the complete source code to.

fogchamp's People

Contributors

chfoo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

keenoraralio

fogchamp's Issues

Damage values are occasionally slightly too high (+1~+3)

idk how worried you are about a couple of damage points or if this is the right way to tell you but

I've seen min roll damage in the game do less than the visualizer's reported minimum roll, apparently because gen IV damage calculation has more floors than the Empire State Building.
From rooting around in Pokémon Showdown's damage calculator:

  • The basic formula is Math.floor(Math.floor(Math.floor(2 * LEVEL / 5 + 2) * userBasePower * userAttack / 50) / foeDefense).
  • STAB is applied before type effectiveness, with a flooring in the middle.
  • Apparently in gen IV, it looks at the effectiveness against each of the defender's types individually and floors the result after each type. So if a move is NVE on the first type and SE on the second, each value is essentially rounded down to the nearest even number. Which means which type is primary/secondary actually very slightly matters in this game.

I probably won't see it if you respond to this thread here but you should be able to find my Discord on the TPP channel.

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.