- 12
- Posts
- 275
- Days
- Seen today
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:
![1714057359970.png 1714057359970.png](https://data.pokecommunity.com/attachments/72/72715-b76bc92d562afe33cf74a6a465ff6adf.jpg)
![1714057400410.png 1714057400410.png](https://data.pokecommunity.com/attachments/72/72716-5561f17eaa4e621aa1d95da5cf3b2a2e.jpg)
This seems doesn't work: (because it doesn't print "---------------------------------")
![1714057471301.png 1714057471301.png](https://data.pokecommunity.com/attachments/72/72717-73a0d9752d8d68b3b3c44e02d5f3b0b2.jpg)
I searched:
![1714058974695.png 1714058974695.png](https://data.pokecommunity.com/attachments/72/72725-a26024f35fe0d9ce189b9bef66102ac2.jpg)
If I delete def pbInitPokemon in the original file, then run:
![1714057917333.png 1714057917333.png](https://data.pokecommunity.com/attachments/72/72720-e19c1d7dc525f1e6c3fbce35580a2e97.jpg)
If i put "-----------------" in another place above def pbInitPokemon:
![1714058006223.png 1714058006223.png](https://data.pokecommunity.com/attachments/72/72721-945f904bfdae5c9064acb62361448e37.jpg)
It worked:
![1714058104217.png 1714058104217.png](https://data.pokecommunity.com/attachments/72/72722-f9ff0dc78945797682c73b6e919c1559.jpg)
If I move this file into Generation 9 Pack Scripts folder, it also works.
![1714058304843.png 1714058304843.png](https://data.pokecommunity.com/attachments/72/72723-f2b72e5bbacc0709991cd0a7e35f70c1.jpg)
![1714058372623.png 1714058372623.png](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:
![1714057359970.png 1714057359970.png](https://data.pokecommunity.com/attachments/72/72715-b76bc92d562afe33cf74a6a465ff6adf.jpg)
![1714057400410.png 1714057400410.png](https://data.pokecommunity.com/attachments/72/72716-5561f17eaa4e621aa1d95da5cf3b2a2e.jpg)
This seems doesn't work: (because it doesn't print "---------------------------------")
![1714057471301.png 1714057471301.png](https://data.pokecommunity.com/attachments/72/72717-73a0d9752d8d68b3b3c44e02d5f3b0b2.jpg)
I searched:
![1714058974695.png 1714058974695.png](https://data.pokecommunity.com/attachments/72/72725-a26024f35fe0d9ce189b9bef66102ac2.jpg)
If I delete def pbInitPokemon in the original file, then run:
![1714057917333.png 1714057917333.png](https://data.pokecommunity.com/attachments/72/72720-e19c1d7dc525f1e6c3fbce35580a2e97.jpg)
If i put "-----------------" in another place above def pbInitPokemon:
![1714058006223.png 1714058006223.png](https://data.pokecommunity.com/attachments/72/72721-945f904bfdae5c9064acb62361448e37.jpg)
It worked:
![1714058104217.png 1714058104217.png](https://data.pokecommunity.com/attachments/72/72722-f9ff0dc78945797682c73b6e919c1559.jpg)
If I move this file into Generation 9 Pack Scripts folder, it also works.
![1714058304843.png 1714058304843.png](https://data.pokecommunity.com/attachments/72/72723-f2b72e5bbacc0709991cd0a7e35f70c1.jpg)
![1714058372623.png 1714058372623.png](https://data.pokecommunity.com/attachments/72/72724-f87bf30cd188a6aaa758267fd8688733.jpg)
I am puzzled...
Need help...
Attachments
Last edited: