samolego / FabricTailor

A server-side or singleplayer skin changing mod for fabric.
https://modrinth.com/mod/FabricTailor
GNU Lesser General Public License v3.0
109 stars 17 forks source link

Feature: use a configurable server for skins #48

Closed MeeniMc closed 2 years ago

MeeniMc commented 2 years ago

Server setup:

resources_url = https://someplace.io/skins/textures

Client operation:

/skin set player name

Result

Look for (in order)

  1. https://someplace.io/skins/textures/name.png
  2. MC skins
  3. ely.by

Alternatives

/skin set name : not using either 'player', 'upload' or 'url' means you are using the default skin server (as configured on the server config) /skin set url name : if url doesn't contain 'http://' or 'https://' consider it needs to be 'completed' with the server-configured url prefix

samolego commented 2 years ago

Shouldn't be too hard actually. It would probably come out as "https://myskinsite.com/.png

RN I'm in a middle of refactor (threading), so this might need to wait. Feel free to PR it if you want ;)

samolego commented 2 years ago

It's been a while and I'm (finally) implementing this ...

How should slim/default skins be handled?

Perhaps a "custom" category should be better (/skin set custom <model> <name>) ...

serega404 commented 2 years ago

I see you have worked on connecting external skin sources, but I can't figure out how to connect a custom skin server

samolego commented 2 years ago

use 2.0.0; set the config option for custom skin server url to wanted protocol (can be also file://) and run /skin set custom <model> <skin_filename>

serega404 commented 2 years ago

Can you publish build for 1.18.2?

samolego commented 2 years ago

Sorry there've been too many changes to the code :/, I'd rather spent time on other stuff than backporting.