Serverside Skins

Discussion in 'Archived: Plugin Requests' started by Trigger, Feb 5, 2011.

  1. Offline

    Edward Hand

    Ah yes. server.com. I should pay closer attention.
    Could you post in your mod code? (obfuscated or de-obfuscated - I can read both just fine)
     
  2. Offline

    MJRamon

  3. Offline

    Edward Hand

    erm...they're not the right classes. They have nothing to do with skins. Are you're certain you're using the correct version of minecraft/decompiler

    EDIT: qk is the Block class, im is a BlockDoor class and I think om is the root Entity class (just looking at the obfuscated code here)
     
  4. Offline

    MJRamon

    This is very strange.
    Yup. Minecraft 1.3_01 and MCP 2.9a (last one)

    Ok, could you please make obfuscated class file with http://minecraft.net.ua/mcskins/ for me? I'll check, if this will work. So I'll know, that this is decompile/recompile/obfuscate problem only.

    EDIT: Oh, I've got you. Will try to recompile EntityOtherPlayerMP, not just Entity
     
  5. Offline

    Edward Hand

    let us know how you get on
     
  6. Offline

    MJRamon

    This is new (when i press "connect" button):
    sy.class: http://minecraft.net.ua/mcskins/sy.class

    Maybe the length of the skins folder url must be the same, as the default?
     
  7. Offline

    Edward Hand

    Did you remember to delete your META_INF folder in the minecraft.jar?
     
  8. Offline

    MJRamon

    Oops. Deleted META_INF. Thanx.
    I've entered, client wrote "downloading terrain", but still I have default skin :(
    Player name MJRamon, and there are MJRamon.png and mjramon.png on the website.

    Now I don't even know, what is the problem...
     
  9. Offline

    Edward Hand

    That class you changed may only affect how you see other people. There's another class (not sure of the name) which also has an identical skin-fetcher thingimy that you will also need to change.
    There's also a class with cloaks stuff in it which might be fun to play about with.

    If you can search through files, search for:
    Code:
    "http://s3.amazonaws.com/MinecraftSkins/"
    and
    Code:
    "http://s3.amazonaws.com/MinecraftCloaks/"
    to find the classes that need changing
     
  10. Offline

    MJRamon

    Oh, cool :)
    Self-look is EntiyPlayerSP.java and cloaks is EntityPlayer.java

    I'll test it right now. Meanwhile, can you please describe how to use this cloak feature?

    UPDATE: All right! Self skin and other skin work perfect! Thank you so much for your help, hints and time!
    P.S. But still is interested in cloaks :rolleyes:
     
  11. Offline

    Edward Hand

  12. Offline

    xAnder

    Offtop: Are you Russian?
    Because of Russian players/developers Mojang loses a lot of money :D
     
  13. Offline

    Boncey

    That Didnt Even Make Sense xAnder
     
  14. Offline

    Jeljo

    Could anyone of you Java handlers create a somewhat simple tutorial to do this?
     
  15. Offline

    mirroronthewall

    doesnt... mobdisguise already do this?
    ???
    ???????????????????????
    *sigh*
     
    MrBluebear3 likes this.
  16. Offline

    WellBangOk

    Hey xAnder, I was thinking of modifying this code so that it would be able to load a server directory from a small config file. I'm not sure whats in the source yet but I was thinking that I could add a small static class that basically reads from an fileInputStream and parses the text. That way one can make a general version that could just be redistributed. Is that a viable way to do things and where the heck would I need to place this config file to get it to load up.
    The line in source would be something like this if there were an object called ReadFile with a static method parseText that returns a string:
    Code:
    skinUrl = ReadFile.parseText("/<whateverpath>/skinconfig.txt");
    Of course I'd prefer to use any premade file reader class if minecraft has them (suprised if it doesnt) but that's just as an example.
     
  17. Offline

    Hoolean

    If you are looking for a plugin that lets players choose what they look like (e.g. creepers, other player, etc) then Mob Disguise is good. However I do not know a way of forcing the players to take on these forms.
     
  18. Offline

    Haribo98

    Using VariableTriggers you are able to do this:
    Selecting an area of which will run @CMDOP md p blue/red or whatever...
     

Share This Page