po-devs / po-web

Pokemon Online webclient
11 stars 18 forks source link

Female sprites aren't working #198

Closed turbedi closed 7 years ago

turbedi commented 7 years ago

Only the male sprites are shown in teambuilder and in a battle

coyotte508 commented 7 years ago

Yea.

Two solutions:

coyotte508 commented 7 years ago

Actually, I could change the web server so that in case of missing file it tries the regular version of a sprite. Would have to do it first for the server of the webclient, and second for pokemon-online.eu (actually could even run the webclient on pokemon-online.eu)

turbedi commented 7 years ago

Isn't it possible to check if the pokemon is female and if that's the case, try to load the sprite from female/ and if there is no sprite, default back to the regular one. And doesn't this already load the regular sprite in case of a missing file?

coyotte508 commented 7 years ago

It does, but it's not the most efficient for sprites in teambuilder and battle, one request should be enough.

It's better to server directly the correct sprite, server.js can be edited to do that. And since I moved webclient to the site's server, it'll also work with animated sprite. Anyway this is coming soon, don't worry!