Code Monkey home page Code Monkey logo

pokeplatinum's People

Contributors

adrienntindall avatar anonymousrandomperson avatar asparaguseduardo avatar bbepis avatar cbt6 avatar froggestspirit avatar kurausukun avatar lhearachel avatar luckytyphlosion avatar meithecatte avatar mid-kid avatar mr-toodguy avatar nomura-rh avatar patilise avatar pikalaxalt avatar ravepossum avatar trainerriley avatar wildfire248 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar

pokeplatinum's Issues

Decompile battle-scripting NARCs

Relevant NARCs:

  • battle/skill/be_seq.narc - Effect-specific code, one entry per entry in battle_effects.h
  • battle/skill/sub_seq.narc - Common routines for, e.g., applying poison, boosting stats, etc.
  • battle/skill/waza_seq.narc - One entry per move, defines the specific routine for that move

Requirements:

  • ASM macro definitions for each command (referring back to a function in battle_script.c)
  • Script to dump vanilla binary files to human-readable format + OK re-build
  • Documentation of dumped files
  • Generate NAIX with descriptive names for source code

Decide on how to compile NARCs in the build system

We currently have a tool csv2bin which has an embedded NARC compilation process. This breaks separation of concerns principles. We should determine how to silo NARC compilation for data archives so that we have a single implementation of that compilation, letting our tools focus on building data files to be archived.

Set up gitattributes files

We've had a number of issues related to line-endings, particularly when building data archives for the filesystem; we should address those with a top-level gitattributes file to ensure the same line-endings regardless of platform.

Update mwrap to re-implement Windows functions

Adding battle scripts to the build exposed the performance issues of WINE-wrapping. We should update mwrap to load the PE into memory and provide implementations of all the Windows functions that it requires, so that we can cut the need for WINE from the build system.

Automate construction of pokemon-related arrays

There are two arrays in code that are currently tied to having a 1-1 relationship with individual pokemon, however are currently hardcoded in source:

  • sTeachableMoves, which dictates which moves can be taught to which pokemon from move tutors
  • Unk_ov113_02260D90, which is somewhat related to overworld footprint data (amity square?)

These ideally should be dynamically generated from data.json files for each species

Decide on usage of Japanese NARC names vs English descriptors

Japanese names are required for the ROM to match, but references in code are always by index. This gives us some freedom to decide on whether to:

  1. Use the Japanese names as-is and provide documentation describing their contents in English
  2. Come up with English aliases for the indices for use in code

These aren't necessarily mutually exclusive options.

Decompile relevant NARCs under poketool

NARCs that have yet to be decompiled are organized underneath res/prebuilt.

  • poketool/pokegra/height.narc - Height data for base Pokemon
  • poketool/pokegra/height_o.narc - Height data for Pokemon with forms
  • poketool/trgra/trbgra.narc - Back-facing sprites for trainer classes which have them
  • poketool/trgra/trfgra.narc - Front-facing sprites for trainer classes
  • poketool/personal/evo.narc - Evolution data for Pokemon species
  • poketool/personal/pl_growtbl.narc - Experience curve data
  • poketool/trmsg/trtbl.narc - Mappings of trainer IDs to in-battle message types
  • poketool/trmsg/trtblofs.narc - Mappings of trainer IDs to their starting offset in trtbl.narc
  • poketool/pokefoot/pokefoot.narc - Footprint sprites for base Pokemon
  • poketool/pl_pokezukan.narc - Mapping of each base Pokemon to its Sinnoh Pokedex number
  • poketool/shinzukan.narc - Mapping of each base Pokemon to its National Pokedex number
  • poketool/pokeanm/pl_pokeanm.narc - Animation frames for Pokemon in-battle; never used nor referenced in the production ROM.
  • poketool/poke_edit/pl_poke_data.narc - Table of data for in-battle sprite offsets, shadow coordinates, and animation constants for each Pokemon

Generate tutorable moves for shared use by C and Python

Pull request #191 introduces a Python utility for interpreting tutorable moves from individual species' data files and building the table for all species to be included in the ROM. However, it makes use of a hard-coded copy of what moves are tutorable.

We should explore generating the table used by both the ROM and by the Python utility that defines what moves are tutorable (as well as what the cost of a tutor is and which location's tutor can teach the move).

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.