Main Menu
Main Page
Forums
Recent changes
Random page
Help

Databases
GlitchDex
AttackDex
AreaDex
DexDex
ItemDex
TMHMDex
TypeDex
More

Major Glitches
Trainer escape glitch
Old man trick
Celebi Egg trick
SRAM glitch
Buffer overflow techniques
Pomeg glitch data corruption (Glitzer Popping)
Tweaking
Pokémon cloning
Select glitches (Japan)
Time Capsule exploit
Arbitrary code execution
More

Other Glitch Categories
Glitches by generation
Japan-only/language specific glitches
Natural glitches
Non-core series glitches
Non-Pokémon glitches
Recurring glitches
More

References
Pokémon GameShark codes
The Big HEX List
GB programming
Curiosities
Debugging features
Error traps
Non-glitch exploits
Pokémon glitch terminology
Unused content and prerelease information
More

Useful Tools
8F Helper
GBz80 to Items
Old man trick name generator
PATH (Prama's Advanced Tweaking Heaven)
Save file editors
Special stat/Pokémon converter
Trainer escape Trainer Pokémon finder

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Technical
Site Source Code

Search Wiki

 

Search Forums

 

Author Topic: Pokelib: javascript library to get contents of ROM and RAM of English R/B  (Read 958 times)

0 Members and 1 Guest are viewing this topic.

Wack0

  • Coder, reverser, beta collector [BetaArchive staff]
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • cBRH - Doing nothing since 2k7
    • View Profile
I didn't make this, but I just found it, it uses a javascript emulator and it looks quite interesting:

https://github.com/arcanis/pokelib

It allows viewing of all 256 valid and invalid items and Pokémon, but only valid moves right now (probably because the PDS (Pokémon Data String, unofficial name of R/B strings) to UTF-8 converter chokes on Super Glitch).

What would be nice to implement, and what I might get around to doing sometime and either making my own fork or submitting pull requests for:

1) Other language support: Japanese R/G/B, Spanish/Italian/German/French R/B
2) Yellow support
3) Integrate that Javascript GBASM compiler, easy way to test 8F payloads!
4) Fixups to support Super Glitch?

Those are the four things that I'd deem higher priority than anything else... I wonder what features anyone else would like added.
« Last Edit: June 26, 2014, 07:35:03 am by Wack0 »
C H E C K E D . B U I L D S . A R E . A W E S O M E N E S S

BetaArchiveSoftHistory Forumsirc.rol.im #galaxy,#softhistory

Also known as The Distractor.

Shane, please stop telling children that there's a Mew outside under the delivery trucks. - Management

Pokémon: arbitrary code execution 1996-2016

Wack0

  • Coder, reverser, beta collector [BetaArchive staff]
  • Staff
  • *****
  • Offline Offline
  • Gender: Male
  • cBRH - Doing nothing since 2k7
    • View Profile
Well, I finally had a chance to look at it more closely.

And I fixed a bunch of bugs and submitted a pull request.

Quote
1) Bug in example fixed where a 404 occurs if pokedexId is blank. Small bug but it annoyed me when I was debugging issues in the console.
2) Bag.indexOf() now searches the entire bag and not all but the last item.
3) Bag.add() now works.
4) All items, species and moves are now available to access through the various arrays. I don't know anything about growth rates, so I left that untouched.
5) Modified TeamPokemon.species(). It now checks 0xD163 (Number of Pokémon), rather than checking for species 0 and 0xff (and therefore breaking if those invalid Pokémon are in the party).
6) Added some characters to the PDS conversion process, and fixed an extra character between 0xEB and 0xEC that was causing off-by-one issues with conversions involving characters past 0xEB (like numbers).
7) Fixed issue with TM/HM item names not being shown properly. These items are hardcoded to show TMxx/HMxx in the ROM, and this has now been done in pokelib.
« Last Edit: June 27, 2014, 04:39:21 pm by Wack0 »
C H E C K E D . B U I L D S . A R E . A W E S O M E N E S S

BetaArchiveSoftHistory Forumsirc.rol.im #galaxy,#softhistory

Also known as The Distractor.

Shane, please stop telling children that there's a Mew outside under the delivery trucks. - Management

Pokémon: arbitrary code execution 1996-2016