• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Item attribute weight too much pokemon dissapear :O Help!

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,780
Solutions
31
Reaction score
2,299
Location
Sweden?
Hello i have pokemon dash advance!

And this bug is very annoying and i cant figure out how to stop it, so i need your help otland.

I am trying to fix it. Ex. I create a pokeball with /cb command, then you go to phpmyadmin (if you are using sql), go to your database, and to table player_items, and search your player there. Then you locate the pokeball that you had created. As you can see, the size of the pokeball will be less then 500bytes.
Then you kill a lot of monsters with this pokemon (maybe about 30), logout your character (to save) and back to the player_items table and look the size of the pokeball. It will be over them 3KBytes.
If you reach 60Kbytes, your pokemon will bug, because its the maximum of the variable "atribbutes" of the pokeball.
Now, search again your player in player_items table and click to "export" it as XML file. If you open this file, you will see a many of 12450"expEx" in the pokeball attributes. That is the bug, It can not be saved. I search into the server, and where you can find this is in exp.lua and pokexp.lua (something like that). Now, we need to do anything to exclude it periodically. This string is used to distribute the exp to the pokes who kills a monster.

Do guys understand?

If i need post something just comment.
 
Last edited:
Back
Top