Main Menu
Main Page
Forums
Recent changes
Random page
Help

Databases
GlitchDex
AttackDex
ItemDex
TrainerDex
TypeDex
UnownDex
More

Major Glitches
Trainer escape glitch
Old man trick
Celebi Egg trick
Select glitches (Japan)
SRAM glitch
CoolTrainer♀ corruption
LOL glitch
Rival LOL glitch
Super Glitch
ZZAZZ glitch
Pomeg corruption glitch (Glitzer Popping)
Tweaking
Elite Four door glitch (Japan)
Pokémon merge glitch
Pokémon cloning
Time Capsule exploit
Arbitrary code execution
Coin Case glitches
More

Other Glitch Categories
Glitches by generation
Glitches between two generations
Japan-only/language specific glitches
Music glitches
Natural glitches
Non-core series glitches
Non-Pokémon glitches
Officially acknowledged glitches
Recurring glitches
Dead glitches

References
Pokémon GameShark codes
The Big HEX List
Glitch Pokémon cries
GB programming
Curiosities
Debugging features
Easter eggs
Error traps
Glitch areas
Glitch myths
Non-glitch exploits
Placeholder texts
Pokémon glitch terminology
Unused content and prerelease information

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: Some competitive battling box name codes for Coin Case arbitrary code execution  (Read 942 times)

0 Members and 1 Guest are viewing this topic.

Dragon Arbock

  • Oldschool Glitch Hobbyist
  • GCLF Member
  • Offline Offline
  • Charizard 'M is best Charizard
    • View Profile
I asked about this elsewhere, but would you be kind enough to provide a shiny code that results in females? Also maybe a version for both males and females that gives Hidden Power Grass? The existing shiny code is male, HP dragon.

Edit;
Welp, nobody helped me so I had to figure it out myself just based on patterns .
Shiny female code;
Ap0'd'vR55
é'm2p0?'vm     [atk 3, defense 10]   
éA4p0'd'vQ
é?2p0k55        [special 10, spd 10]
55éA4ppp
'v7'v'dé42p
éD9'l'lA'lx
'd5555555
That one is HP dragon. I'll edit with HP Grass for both genders later.

Edit 2;
Shiny Female HP grass spread;
Ap0'd'vR55
é'm2p0k'vA     [atk 2, defense 10]   
éA4p0'd'vQ
é?2p0k55        [special 10, spd 10]
55éA4ppp
'v7'v'dé42p
éD9'l'lA'lx
'd5555555

Shiny male HP grass spread;
Ap0'd'vR55
é'm2pp0é5     [atk 14, defense 10]   
éA4p0'd'vQ
é?2p0k55        [special 10, spd 10]
55éA4ppp
'v7'v'dé42p
éD9'l'lA'lx
'd5555555

(haven't tested the Grass ones, but should work in theory and if psypoke's HP calculator can be trusted).
« Last Edit: October 22, 2017, 02:39:33 pm by Dragon Arbock »

Who remembers TRsRockin?

Couldntthinkofaname

  • Zeta
  • GCLF Member
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
I asked about this elsewhere, but would you be kind enough to provide a shiny code that results in females? Also maybe a version for both males and females that gives Hidden Power Grass? The existing shiny code is male, HP dragon.

Edit;
Welp, nobody helped me so I had to figure it out myself just based on patterns .
Shiny female code;
Ap0'd'vR55
é'm2p0?'vm     [atk 3, defense 10]   
éA4p0'd'vQ
é?2p0k55        [special 10, spd 10]
55éA4ppp
'v7'v'dé42p
éD9'l'lA'lx
'd5555555
That one is HP dragon. I'll edit with HP Grass for both genders later.

Edit 2;
Shiny Female HP grass spread;
Ap0'd'vR55
é'm2p0k'vA     [atk 2, defense 10]   
éA4p0'd'vQ
é?2p0k55        [special 10, spd 10]
55éA4ppp
'v7'v'dé42p
éD9'l'lA'lx
'd5555555

Shiny male HP grass spread;
Ap0'd'vR55
é'm2pp0♂5     [atk 14, defense 10]   
éA4p0'd'vQ
é?2p0k55        [special 10, spd 10]
55éA4ppp
'v7'v'dé42p
éD9'l'lA'lx
'd5555555

(haven't tested the Grass ones, but should work in theory and if psypoke's HP calculator can be trusted).

Sorry about that, I was going to help you but got sidetracked.

Nice codes!
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

Dragon Arbock

  • Oldschool Glitch Hobbyist
  • GCLF Member
  • Offline Offline
  • Charizard 'M is best Charizard
    • View Profile
Edited the male hp grass code- accidentally put the code for 14 atk 15 def. Don't write posts at 4 am.
I could make a sheet with codes for any combination of DVs, but I don't know that anyone needs anything besides max HPs and shiny spreads.
Also curious to know whether the game stores the special DV or the Spd DV first. I would have assumed special, but I've seen the order or stats listed atk, def, spd, special in that order.

Who remembers TRsRockin?

spamviech

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
    • View Profile
According to the RAM map from Data Crystal it's Attack/Defense then speed/special.
Since speed EV is stored before special EV I would assume it's the same for IVs (so speed is the first byte, special the second).

Nostalgia

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • ?
    • View Profile
So I used the Hidden Power Water code for Jolteon and I noticed his HP wasn't maxed, so I Rare Candy it to level 50 just to check its DVs and the Hp DV was 7, but it's other DVs was 14/13/15/15/15, so that would be right for the Hidden Power, but does anyone know why the HP wasn't maxed out? Torchickens max DV and Hidden Power Bug codes have worked perfect for me so far, so I don't know if it's a error with this particular code or if it's me being a dumbass again.
« Last Edit: October 23, 2017, 06:06:43 am by Nostalgia »

Dragon Arbock

  • Oldschool Glitch Hobbyist
  • GCLF Member
  • Offline Offline
  • Charizard 'M is best Charizard
    • View Profile
So I used the Hidden Power Water code for Jolteon and I noticed his HP wasn't maxed, so I Rare Candy it to level 50 just to check its DVs and the Hp DV was 7, but it's other DVs was 14/13/15/15/15, so that would be right for the Hidden Power, but does anyone know why the HP wasn't maxed out? Torchickens max DV and Hidden Power Bug codes have worked perfect for me so far, so I don't know if it's a error with this particular code or if it's me being a dumbass again.

HP is calculated separately based off the other DVs. The code modifies attack and defense, and special and speed. I don't think we can directly modify that because of it, but maybe there's a better attack/defense spread that would give better HP at the cost of a point or two in attack/defense?
(knowing that modern hidden power is based on a pattern of evens an odds and not the exact numbers themselves though, there might not be).
« Last Edit: October 23, 2017, 10:48:47 am by Dragon Arbock »

Who remembers TRsRockin?

Nostalgia

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • ?
    • View Profile
I thought because Hidden Power is only based on the Attack, Defense, Special and Speed stats - that it doesn't matter what the HP value is. I used the Hidden Power Bug code for my Scizor and although I didn't check its DVs in detail, it had maximum HP at level 5 which suggests its DVs were probably 15/13/13/15/15, while my Jolteon didn't and that's why I checked it in detail. I don't care much about a bad HP DV for Jolteon, its a frail Pokemon regardless, but I'm just wondering about the details in the code and if I made the error, because Torchickens designed the codes to give the maximum possible DVs for each Hidden Power, so I'm curious.
« Last Edit: October 23, 2017, 11:39:19 am by Nostalgia »

Dragon Arbock

  • Oldschool Glitch Hobbyist
  • GCLF Member
  • Offline Offline
  • Charizard 'M is best Charizard
    • View Profile
I thought because Hidden Power is only based on the Attack, Defense, Special and Speed stats - that it doesn't matter what the HP value is. I used the Hidden Power Bug code for my Scizor and although I didn't check its DVs in detail, it had maximum HP at level 5 which suggests its DV's were probably 15/13/13/15/15, while my Jolteon didn't and that's why I checked it in detail. I don't care much about a bad HP for Jolteon, its a frail Pokemon regardless, but I'm just wondering about the details in the code and if I made the error, because Torchickens designed the codes to give the maximum possible DVs for each Hidden Power, so I'm curious.

Hidden power is only based on atk, def, spd, and special, because those are the only 4 that exist. HP isn't a DV, it's a stat calculated based on the other 4. And as far as I understand, the max value it can have is 7 because hidden power water requires an Even attack IV, and having an Even attack means you miss out on 8 points of the max HP stat.

Who remembers TRsRockin?

Nostalgia

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • ?
    • View Profile
Ah, that makes sense. So would Hidden Power Grass or Hidden Power Ice give a better HP stat? Supposedly HP Water is the best option for Jolteon in gen II, but Grass and Ice are still viable and are run on it in every after generation after II.

Couldntthinkofaname

  • Zeta
  • GCLF Member
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile
Here are the hidden power equations:

TypeId: 4 × (atkIv modulo 4) + (defIv modulo 4)

Damage: (5 * (specIv=>8 + 2speedIv=>8 + 4defIv=>8 + atkIv=>8 ) + (specIv modulo 4))/2 + 31

XIv=>8 is either 0 or 1 depending on if the specified IV is greater than or equal to 8

Ah, that makes sense. So would Hidden Power Grass or Hidden Power Ice give a better HP stat? Supposedly HP Water is the best option for Jolteon in gen II, but Grass and Ice are still viable and are run on it in every after generation after II.

From what i'm gathering from Bulbapedia, Hidden power is completely seperate from the HP stat.
« Last Edit: October 23, 2017, 12:51:39 pm by Couldntthinkofaname »
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

Nostalgia

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • ?
    • View Profile
And as far as I understand, the max value it can have is 7 because hidden power water requires an Even attack IV, and having an Even attack means you miss out on 8 points of the max HP stat.

Then Grass would be 7 too I guess as it requires a 14 Attack stat which is even, and Ice should be normal because it requires a 15 attack stat.

Dragon Arbock

  • Oldschool Glitch Hobbyist
  • GCLF Member
  • Offline Offline
  • Charizard 'M is best Charizard
    • View Profile

From what i'm gathering from Bulbapedia, Hidden power is completely seperate from the HP stat.

In gen 2, Hidden Power, and the HP stat are both calculated from the other 4 DVs, so they do loosely have something to do with eachother.

And yes, Ice would give you 15 in HP. Grass would only give you 3.

Who remembers TRsRockin?

Couldntthinkofaname

  • Zeta
  • GCLF Member
  • *
  • Offline Offline
  • The default personal text makes no sense
    • View Profile

From what i'm gathering from Bulbapedia, Hidden power is completely seperate from the HP stat.

In gen 2, Hidden Power, and the HP stat are both calculated from the other 4 DVs, so they do loosely have something to do with eachother.

And yes, Ice would give you 15 in HP. Grass would only give you 3.

Thanks for the info.

I looked on bulbapedia and couldn't find where HP was calculated, can you point me in the direction of this information?
"What's a stack? Can you eat that?"

"Sure, just POP it into your mouth!" (someoneplskillme)

Clash Royale profile: #LYQC9LLV. Join our clan because we're lonely.

Does anybody really know what time it is?

Does anybody really care?
- Chicago

Dragon Arbock

  • Oldschool Glitch Hobbyist
  • GCLF Member
  • Offline Offline
  • Charizard 'M is best Charizard
    • View Profile
Quote
The HP IV is calculated by taking the least significant bit (the final binary digit) of the Attack, Defense, Speed, and Special IVs, then creating a binary string by placing them in that order. As such, a Pokémon with an odd-number Attack IV has 8 added to its HP IV, an odd-number Defense IV has 4 added, an odd-number Speed IV has 2 added, and an odd-number Special IV has 1 added.
https://bulbapedia.bulbagarden.net/wiki/Individual_values#Generation_I_and_II

Not so much of a calculation, more of a 'if odd, add x, if even, add zero'.
« Last Edit: October 23, 2017, 12:56:06 pm by Dragon Arbock »

Who remembers TRsRockin?

spamviech

  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
    • View Profile
Max out stat experience, give experience for Level 100 after battle:

Box 1: Ap09é♀45
Box 2: é04é1455
Box 3: é24é3455
Box 4: é44é5455
Box 5: é64é7455
Box 6: é84é.455
Box 7+: 55555555
Box 13: Unchanged from before
Box 14: Unchanged from before

Just tried this code (well, a variant for usage with wrong pocket TM execution) and the experience is not granted.
Reason is probably that the . character is not 0xf2, but instead 0xe8 (different dot character, only looks the same). Therefore, instead of maximizing Exp gained we are corrupting the SpDef stat of Pokémon 4 (harmless; can be fixed by depositing and re-withdrawing).

Adjusted version that should work; TM variant:
Code: [Select]
Box 1: Ap0(mult)'v955
Box 2: é3209é14
Box 3: é24é3455
Box 4: é44é5455
Box 5: é64é7455
Box 6: é84é0455
Box 7: é♀4éé4x'd
Coin Case Variant (untested):
Code: [Select]
Box 1: Ap0(mult)'v955
Box 2: é3209é14
Box 3: é24é3455
Box 4: é44é5455
Box 5: é64é74'l'l
Box 6: é84é04'l'l
Box 7: é♀4éé455
Box 8: péZ(mult)x'd
« Last Edit: November 02, 2017, 08:12:36 pm by spamviech »