ROM Hack Wurmple evolution bugged? What did I wrong?

Puddies

Well-Known Member
OP
Member
Joined
Jan 13, 2016
Messages
156
Trophies
0
Age
36
XP
164
Country
Gambia, The
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
Joined
Aug 12, 2008
Messages
1,951
Trophies
1
Age
34
Location
Winter Haven
XP
2,014
Country
United States
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)
 
  • Like
Reactions: Puddies

Puddies

Well-Known Member
OP
Member
Joined
Jan 13, 2016
Messages
156
Trophies
0
Age
36
XP
164
Country
Gambia, The
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?
 

Puddies

Well-Known Member
OP
Member
Joined
Jan 13, 2016
Messages
156
Trophies
0
Age
36
XP
164
Country
Gambia, The
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
Joined
Dec 9, 2011
Messages
141
Trophies
0
Age
42
Location
I simultaneously exist across all moments in time.
XP
295
Country
United States
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
Joined
Jan 13, 2016
Messages
156
Trophies
0
Age
36
XP
164
Country
Gambia, The
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

badc0ded
Member
Joined
Sep 10, 2010
Messages
612
Trophies
0
XP
626
Country
United States
smaller protip: ctrl click the legality indicator to see a verbose output.

x9dea5z.png
 
  • Like
Reactions: Puddies

You may also like...

General chit-chat
Help Users
  • M4x1mumReZ @ M4x1mumReZ:
    lmao
  • K3N1 @ K3N1:
    It's a slim price to pay for shady products
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    That's more like it
  • Veho @ Veho:
    Bah, why waste money on banged up poorly refurbished old consoles, when you can buy Soulja Boi's latest offering?
    +1
  • Veho @ Veho:
    Whatever that is at the moment
    +1
  • K3N1 @ K3N1:
    Pretty sure it's on crank fw .069 distro atm
    +1
  • K3N1 @ K3N1:
    Willing to bang sexy YouTube streamers for reviews and free product :teach:
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    @K3N1, I'm pretty sure you're gonna review the latest fleshlight
  • M4x1mumReZ @ M4x1mumReZ:
    The free lube that comes with it is garbage, the inside also doesn't feel right 0/10
  • Veho @ Veho:
    "But the precise rating isn't important here, the important question is is it better than my hand and the answer is... BUT FIRST A WORD FROM OUR SPONSORS"
    +1
  • M4x1mumReZ @ M4x1mumReZ:
    "Ugh, I can say without a doubt that this stuff is horrible, feels the same doing it with my hand."
  • M4x1mumReZ @ M4x1mumReZ:
    "Overall, I would advise anyone to stay away from it at all costs."
  • M4x1mumReZ @ M4x1mumReZ:
    @Veho, "This video was sponsored by <insert porn site here>. Get 20% off premium."
  • K3N1 @ K3N1:
    @M4x1mumReZ, I wouldn't dare get in the way of your expertises on butt plugs
    +1
  • K3N1 @ K3N1:
    https://youtu.be/h3sPFfjHzjE I guess soldiers are getting trained on the woke
  • D @ dygeo:
    hello can someone help me I damaged a cms on the switch lite at the level of the micro sd where we come to get the 3.3v someone could tell me I think it's a 0402 4.7uf 10v I posted a message but no response
  • K3N1 @ K3N1:
    The L always comes in clutch
  • Veho @ Veho:
    Mt Washington is FUCKED UP even in nice weather though.
  • Veho @ Veho:
    It doesn't look like a dangerous mountain to hike but then you die.
  • K3N1 @ K3N1:
    You're only half a mile from the top and you're just going to freeze to death? You puss.
    K3N1 @ K3N1: https://youtube.com/shorts/AIBl_KY8XsA?feature=share