mt1006 / mc-mocap-mod

Minecraft mod that allows you to record and replay player movements
https://modrinth.com/mod/motion-capture
GNU Lesser General Public License v3.0
13 stars 2 forks source link

How to set skin from file #15

Open Flettic1 opened 1 year ago

Flettic1 commented 1 year ago

I need help. I don't understand how to set skin from file to player, I write a file name but it doesn't work. Also I put file into a skin folder from 'mocap_files' in my world folder and it doesn't set the skin.

mt1006 commented 1 year ago

First, you need to have mod installed on both server and client for custom skins to work. Skin must have a .png extension and when setting it with the command, you have to use name without extension. Does it work now?

Also, in the future I'll probably add a warning message if the skin cannot be loaded.

Flettic1 commented 1 year ago

I tried it in singleplayer and server but it still doesn't work, but the other ways like set skin from player or from mineskin is working.

mt1006 commented 1 year ago

In singleplayer it should always work, I meant if you would use it on the server then for custom skins (from files) to work it needs to be installed also on the client. As for your problem, make sure skin file is in the PNG format, filename has .png extension and in the command you are using name without extension. Also, use only lowercase letters, because as I now noticed it has some problems with uppercase. If you're sure everything is right, tell what Minecraft version and mod loader you're using and command syntax.

Flettic1 commented 1 year ago

If I put skin into 'skins' folder it work with normal hands, but when I put skin into 'slim' folder (located into the 'skins' folder) it doesn't work

mt1006 commented 1 year ago

Add slim/ prefix to skin name in the command.

mt1006 commented 1 year ago

As for the issue I'll leave it open, as there are a few issues with skins that I mentioned.

Flettic1 commented 1 year ago

Yeah, now it works. Thanks for helping!

mt1006 commented 1 year ago

No problem

Ssnakem7075 commented 2 months ago

When you say client and server what’s that mean?

mt1006 commented 2 months ago

In singleplayer mode it doesn't matter, skins should work just fine. In multiplayer you can play on server that has mocap installed, but skins that are loaded from file won't be visible unless you have mocap installed in your game as well (on the client).

Ssnakem7075 commented 2 months ago

So I’m playing single player but anytime I put the name from file as a skin from file it’s just a default skin. I tried going into cursed forge to see where the skins are located but I don’t have the skin folder anywhere.

mt1006 commented 2 months ago

It should be located in .minecraft/saves/<your_world>/mocap_files

Ssnakem7075 commented 2 months ago

Omg thank you so much it worked!

AkirzD commented 1 month ago

I don't understand what's going on with this. I'm using version 1.20.4 and when I use /mocap playing start <recordingName> <playerName> from_file slim\filename It doesnt apply any changes to the skin. The skin its on saves\New World\mocap_files\skins\slim

But earlier i was able to use /mocap playing start <recordingName> <playerName> from_file filename without problems, even tho the skin png was in the slim folder and didnt put slim\filename in the command. But after i tried using Replay Mod the skin didnt show up and going back to the world the skin would not load in the recording.

edit: I also used the same commands i used before using replay mod but it doesnt work. Its broken.

mt1006 commented 1 month ago

You need to use forward slash instead of backslash in the command. As for replay mod, mocap skins from files currently don't work with it, so I would recommend using mineskin instead.