• 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
87
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!
 
Back
Top