- 17
- Posts
- 1
- Years
- Seen Apr 28, 2025
I always think plugins will ovewrite the original code, so I do all my job through plugins, but today something odd happened, I just can't figure it out by myself.
I simply copy a .rb file into my plugin folder, but I found one method seems can't overwrite the original one.
This is the file:
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72715-b76bc92d562afe33cf74a6a465ff6adf.jpg)
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72716-5561f17eaa4e621aa1d95da5cf3b2a2e.jpg)
This seems doesn't work: (because it doesn't print "---------------------------------")
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72717-73a0d9752d8d68b3b3c44e02d5f3b0b2.jpg)
I searched:
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72725-a26024f35fe0d9ce189b9bef66102ac2.jpg)
If I delete def pbInitPokemon in the original file, then run:
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72720-e19c1d7dc525f1e6c3fbce35580a2e97.jpg)
If i put "-----------------" in another place above def pbInitPokemon:
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72721-945f904bfdae5c9064acb62361448e37.jpg)
It worked:
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72722-f9ff0dc78945797682c73b6e919c1559.jpg)
If I move this file into Generation 9 Pack Scripts folder, it also works.
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72723-f2b72e5bbacc0709991cd0a7e35f70c1.jpg)
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72724-f87bf30cd188a6aaa758267fd8688733.jpg)
I am puzzled...
Need help...
I simply copy a .rb file into my plugin folder, but I found one method seems can't overwrite the original one.
This is the file:
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72715-b76bc92d562afe33cf74a6a465ff6adf.jpg)
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72716-5561f17eaa4e621aa1d95da5cf3b2a2e.jpg)
This seems doesn't work: (because it doesn't print "---------------------------------")
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72717-73a0d9752d8d68b3b3c44e02d5f3b0b2.jpg)
I searched:
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72725-a26024f35fe0d9ce189b9bef66102ac2.jpg)
If I delete def pbInitPokemon in the original file, then run:
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72720-e19c1d7dc525f1e6c3fbce35580a2e97.jpg)
If i put "-----------------" in another place above def pbInitPokemon:
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72721-945f904bfdae5c9064acb62361448e37.jpg)
It worked:
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72722-f9ff0dc78945797682c73b6e919c1559.jpg)
If I move this file into Generation 9 Pack Scripts folder, it also works.
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72723-f2b72e5bbacc0709991cd0a7e35f70c1.jpg)
![[PokeCommunity.com] do plugins ovewrite the original code? something odd... [PokeCommunity.com] do plugins ovewrite the original code? something odd...](https://data.pokecommunity.com/attachments/72/72724-f87bf30cd188a6aaa758267fd8688733.jpg)
I am puzzled...
Need help...
Attachments
Last edited: