samolego/FabricTailor

[HELP] Setting custom skin folder for a server

Opened this issue · 4 comments

Hello, I'm administrating a small server in which players need to change skins often.
Therefore I would've liked to make a folder on the server so players could easily pull from it for custom skins

The way it was discussed in Issue 60 I thought I could do it but cannot get it to work.

Here are the details:

  • Minecraft 1.20.1
  • Fabric Server with FabricTailor
  • All Clients have FabricTailor
  • FabricTailor version 2.1.2

In the config file i made this edit:
"custom_skin_server": "file:///home/amp/.ampdata/instances/ContreduMinecraft01/Minecraft/skins/",
the files are valid pngs simply named '.png'

I tried altering the config with changes like file:// or starting at /home, adding more quotes, removing slashes, but the same error persist
error
/skin set custom slim mel
/skin set custom slim mel.png
and other variants leads to the same

Of course the complete command /skin set upload slim /home/amp/.ampdata/instances/ContreduMinecraft01/Minecraft/skins/mel.png works fine but is not really practical nor easy for players

Is what I want possible ? If so what am I doing wrong ?

Hum, afaik the option needs http skin server, not sure if file protocol will work. It's been some time when I developed this ...

You gave me the idea of a workaround

I created a local apache2 server on the same network with the skins on it. I can access them fine with my navigator like we would get a mojang texture.

Therefore the config file looks like this "custom_skin_server": "http://192.168.1.142/skins/",
But I just get the same error with like 30 seconds of delay this time
Also tried http://192.168.1.142/skins/{player}.png to no different result

Ah, I think I know what's going on. The "api server" should return same responses as Mojang's, that is base64encoded skin info.

Afaik ely.by has a docker container you can set up for automatic management of this.

Another idea would be to build the skin server into fabrictailor itself, but that's a bigger project :).

And it seems that ely.by's chrly is not really what I need, it's more of a proxy to Mojang's and not really what I was looking for...

So what was said in issue 60 is just impossible if I understand correctly ?