• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Resource icon

Resource [v16/v17/v18/v19/v20/v21] Cable Club 3.7

MakerBlack

Trainer
Member
Joined
Nov 23, 2020
Posts
88
Hello trainers, it's me again! I use EBDX in Essentials v21 and I share problems and solutions that I suffered here. (I don't know if this error repeats itself without EBDX). After several tests I realized that there were problems with UTF-8 encoding when there were special characters in the Trainer and Pokémon names, so here is the solution:
In module CableClub in the method def self.parse_pkmn(record) in the line
Code:
Expand Collapse Copy
pkmn.name = record.str
Replace with:
Ruby:
Expand Collapse Copy
pkmn.name = (record.str).force_encoding(Encoding::UTF_8)

I also decided to do the same when sending information from pkmn.owner.name with:
Code:
Expand Collapse Copy
pkmn.owner.name = (record.str).force_encoding(Encoding::UTF_8)

I suffered the same error regarding the enemy trainer's name, so to fix this, in the class CableClubScreen in the method
def await_partner(connection):
Code:
Expand Collapse Copy
@partner_name = (record.str).force_encoding(Encoding::UTF_8)

After that, everything here seemed to work normally again, if you If you have any thoughts on this, they are welcome!
 

MakerBlack

Trainer
Member
Joined
Nov 23, 2020
Posts
88
Hello, how are you trainers? Vendily, a report, on the python server POKEMON_MAX_NAME_SIZE is set to 10. But there are already Pokemon with names bigger than that.
Corviknight, Slither Wing, Roaring Moon are examples of this.
Hope this helps!
 

MakerBlack

Trainer
Member
Joined
Nov 23, 2020
Posts
88
Hello, in version 21 the level adjustment is not working as it should, because the
LevelAdjustment class received a change in the variables
BothTeams is now BOTH_TEAMS and you would need to add the level recalculator again in self.do_battle.

We are getting better and better!
 
Back
Top