Jump to content

[1.7.2] Per-Player skin changing?


drok0920

Recommended Posts

You know what this is called? Logging in to Minecraft :P

 

On a more serious note, try reading through the code that loads the players skin. That could help you quite a bit. Just not sure if the skin is changeable via forge...

We all stuff up sometimes... But I seem to be at the bottom of that pot.

Link to comment
Share on other sites

  • 2 weeks later...

This is easy to do.

 

Extend RenderPlayer, do very limited modification, basically to apply whatever skin you want based upon conditions.  There should be a gettexture method or something like that for it.

 

In your client proxy assign your new renderplayer to EntityPlayer.

 

This should minimize any incompatibilities with other mods unless you mess around with more of the methods.

Long time Bukkit & Forge Programmer

Happy to try and help

Link to comment
Share on other sites

Sort of.

 

Whichever mod loads 2nd, its clientproxy override of the player render will win. 

 

Are you going to have different functionality in the two or just have it in both?  If it is the same functionality, just don't care and let the last one win.  you could also look for isModLoaded and see if the other is there.

 

If it is different functionality, now you are going to have to get fancier and use the playerrender event and try to manipulate it in a smarter method, or have your mods talk.

Long time Bukkit & Forge Programmer

Happy to try and help

Link to comment
Share on other sites

You can duplicate the code in each mod.  Whichever mod loads last should win in the clientproxy.  If someone has a client mod without the server or some such oddity, there might be some errors though.

 

You might want to setup a shared code repository between the mods so you don't have to keep them the same, but given that you are confused already, that is probably for later.

Long time Bukkit & Forge Programmer

Happy to try and help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.