# ROM HackWurmple evolution bugged? What did I wrong?

#### Puddies

##### Well-Known Member
OP
Member
I read that the evolution of Wurmple depends on its personality value:
p mod 65536 = pw
pw mod 10 < 5 then evolve to Silcoon, else evolve to Cascoon
Source: http://bulbapedia.bulbagarden.net/wiki/Personality_value#Wurmple.27s_evolution

I play pokemon omega ruby and I have 2 Wurmples. I looked up their personality values using pkhex.
(I used Encryption Constant, because it is the 6th Generation)

One with
p = 0x41472683 = 1095181955,
pw = p mod 65536 = 9859,
pw mod 10 = 9 (should be Cascoon)

The other one with
p = 0xB7C26A86 = 3082971782
pw = p mod 65536 = 27270
pw mod 10 = 0 (should be Silcoon)

But both Wurmples evolved to Silcoon. Any ideas how this can be? Why do both Wurmples evolve to Silcoon??

I also tried this calculation with their PIDs (allthough this only matters in the 3rd Generation), but there is the same result. One should evolve to Silcoon, the other one to Cascoon.

Last edited by Puddies,

#### KazoWAR

##### Well-Known Member
Member
I read that the evolution of Wurmple depends on its personality value:
p mod 65536 = pw
pw mod 10 < 5 then evolve to Silcoon, else evolve to Cascoon
Source: http://bulbapedia.bulbagarden.net/wiki/Personality_value#Wurmple.27s_evolution

I play pokemon omega ruby and I have 2 Wurmples. I looked up their personality values using pkhex.
(I used Encryption Constant, because it is the 6th Generation)

One with
p = 0x41472683 = 1095181955,
pw = p mod 65536 = 9859,
pw mod 10 = 9 (should be Cascoon)

The other one with
p = 0xB7C26A86 = 3082971782
pw = p mod 65536 = 27270
pw mod 10 = 0 (should be Silcoon)

But both Wurmples evolved to Silcoon. Any ideas how this can be? Why do both Wurmples evolve to Silcoon??

I also tried this calculation with their PIDs (allthough this only matters in the 3rd Generation), but there is the same result. One should evolve to Silcoon, the other one to Cascoon.
Gens 3/4 use the first 16 bits(p mod 65536), but gens 5/6 use the last 16 bits(p / 65535)

Puddies

#### Puddies

##### Well-Known Member
OP
Member
Well ok, but I play omega ruby, this is the 6th generation. So my calculation should be correct because I used the last bits, shouldnt it?

#### KazoWAR

##### Well-Known Member
Member
Well ok, but I play omega ruby, this is the 6th generation. So my calculation should be correct because I used the last bits, shouldnt it?
you need to use p / 65536, but in your example you said you used p mod 65536

#### Puddies

##### Well-Known Member
OP
Member
Ah ok, this might be the solution. Using p / 65536 I get the values 2 and 1.
But it is strange in the article, it says:

"Mathematically, pw can be derived by calculatingp % 65536 for Generations III and IV or p / 65536 (rounded down) for Generation V. In Generation VI, Wurmple's evolution is now determined by the encryption constant, albeit with the same formula."

So, only Generation V should use p / 65536, and Generation VI should use the encryption constant without any 65536 calculation ... But using this and converting it to decimal, and calculating mod 10, the results are again different evolutions (5 and 0). Very strange.

Last edited by Puddies,

#### xirtamehtsitahw

##### Well-Known Member
Member
This is one of the great Pokemon mysteries. Why on Earth did Nintendo code such a low-end Pokemon as the common Wurmple to have such a complicated evolution formula? I can figure out the math behind it, but it seems like so much work to code this type of evolutionary tactic when a simple RNG event would have been so much easier. (As in, RNG set to choose between 0 and 1. If RNG = 0, evolve into Silcoon. If 1, evolve into Cascoon).

#### Puddies

##### Well-Known Member
OP
Member
p / 65536 with p = encryption constant seems to be correct. I got a Wurmple with a value of 8 and finally it evolved to Cascoon.
Thank you for that hint!

#### Kaphotics

Member
smaller protip: ctrl click the legality indicator to see a verbose output.

Puddies

Replies
24
Views
18K
Replies
533
Views
167K
Replies
33
Views
10K
Replies
3
Views
627
Replies
118
Views
28K

1. 32K views

### Nintendo Switch firmware update 18.0.1 has been released

A new Nintendo Switch firmware update is here. System software version 18.0.1 has been released. This update offers the typical stability features as all other...
2. 27K views

### New static recompiler tool N64Recomp aims to seamlessly modernize N64 games

As each year passes, retro games become harder and harder to play, as the physical media begins to fall apart and becomes more difficult and expensive to obtain. The...
3. 25K views

### Nintendo officially confirms Switch successor console, announces Nintendo Direct for next month

While rumors had been floating about rampantly as to the future plans of Nintendo, the President of the company, Shuntaro Furukawa, made a brief statement confirming...
4. 23K views

### TheFloW releases new PPPwn kernel exploit for PS4, works on firmware 11.00

TheFlow has done it again--a new kernel exploit has been released for PlayStation 4 consoles. This latest exploit is called PPPwn, and works on PlayStation 4 systems...
5. 22K views

### Nintendo takes down Gmod content from Steam's Workshop

Nintendo might just as well be a law firm more than a videogame company at this point in time, since they have yet again issued their now almost trademarked usual...
6. 20K views

### Name the Switch successor: what should Nintendo call its new console?

Nintendo has officially announced that a successor to the beloved Switch console is on the horizon. As we eagerly anticipate what innovations this new device will...
7. 17K views

### A prototype of the original "The Legend of Zelda" for NES has been found and preserved

Another video game prototype has been found and preserved, and this time, it's none other than the game that spawned an entire franchise beloved by many, the very...
8. 14K views

### DOOM has been ported to the retro game console in Persona 5 Royal

DOOM is well-known for being ported to basically every device with some kind of input, and that list now includes the old retro game console in Persona 5 Royal...
9. 13K views

### Nintendo Switch Online adds two more Nintendo 64 titles to its classic library

Two classic titles join the Nintendo Switch Online Expansion Pack game lineup. Available starting April 24th will be the motorcycle racing game Extreme G and another...
10. 12K views

### AYANEO officially launches the Pocket S, its next-generation Android gaming handheld

Earlier this year, AYANEO revealed details of its next Android-based gaming handheld, the AYANEO Pocket S. However, the actual launch of the device was unknown; that...
1. 289 replies

### Name the Switch successor: what should Nintendo call its new console?

Nintendo has officially announced that a successor to the beloved Switch console is on the horizon. As we eagerly anticipate what innovations this new device will...
2. 232 replies

### Nintendo officially confirms Switch successor console, announces Nintendo Direct for next month

While rumors had been floating about rampantly as to the future plans of Nintendo, the President of the company, Shuntaro Furukawa, made a brief statement confirming...
3. 133 replies

### New static recompiler tool N64Recomp aims to seamlessly modernize N64 games

As each year passes, retro games become harder and harder to play, as the physical media begins to fall apart and becomes more difficult and expensive to obtain. The...
4. 129 replies

### Nintendo takes down Gmod content from Steam's Workshop

Nintendo might just as well be a law firm more than a videogame company at this point in time, since they have yet again issued their now almost trademarked usual...
5. 95 replies

### Ubisoft reveals 'Assassin's Creed Shadows' which is set to launch later this year

Ubisoft has today officially revealed the next installment in the Assassin's Creed franchise: Assassin's Creed Shadows. This entry is set in late Sengoku-era Japan...
6. 82 replies

### Nintendo Switch firmware update 18.0.1 has been released

A new Nintendo Switch firmware update is here. System software version 18.0.1 has been released. This update offers the typical stability features as all other...
7. 81 replies

### The Kingdom Hearts games are coming to Steam

After a little more than three years of exclusivity with the Epic Games Store, Square Enix has decided to bring their beloved Kingdom Hearts franchise to Steam. The...
8. 80 replies

### TheFloW releases new PPPwn kernel exploit for PS4, works on firmware 11.00

TheFlow has done it again--a new kernel exploit has been released for PlayStation 4 consoles. This latest exploit is called PPPwn, and works on PlayStation 4 systems...
9. 78 replies

### "Nintendo World Championships: NES Edition", a new NES Remix-like game, launching July 18th

After rumour got out about an upcoming NES Edition release for the famed Nintendo World Championships, Nintendo has officially unveiled the new game, titled "Nintendo...
10. 71 replies

### DOOM has been ported to the retro game console in Persona 5 Royal

DOOM is well-known for being ported to basically every device with some kind of input, and that list now includes the old retro game console in Persona 5 Royal...

## Hardware Homebrew Rehid fork w/ sliders - Save your 3ds from broken sliders!

### Recent Content

12. #### System Shock Remake Console Port Impressions

Help Users
@ BakerMan: (that's like 3 months i might be cooked)