Thread: Necrotic female model help

Results 1 to 10 of 10
  1. #1 Necrotic female model help 
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    457
    Thanks given
    53
    Thanks received
    24
    Rep Power
    37
    Not sure if this is the right place to post this but i was wondering if anyone can please help with this items look fine on the male model in game but look like this when u are a female

    here are some pictures of what i am talking about

    Spoiler for Pictures:
    Attached imageAttached imageAttached imageAttached imageAttached image
    Attached image
    Reply With Quote  
     

  2. #2  
    l e l w o t

    Box's Avatar
    Join Date
    Jan 2016
    Posts
    230
    Thanks given
    76
    Thanks received
    55
    Rep Power
    156
    Check your item definitions class in the client. For male/female equips they should be different.
    Reply With Quote  
     

  3. #3  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    457
    Thanks given
    53
    Thanks received
    24
    Rep Power
    37
    Quote Originally Posted by nerdKing View Post
    Check your item definitions class in the client. For male/female equips they should be different.
    Does it have something to do with this part?


    Spoiler for itemdef:
    public final class ItemDefinition {

    private static final int[] BLACK_FIX = { 13101, 13672, 13675, 6568, 10636,
    12158, 12159, 12160, 12161, 12162, 12163, 12164, 12165, 12166,
    12167, 12168, 12527, 18017, 18018, 18019, 18020, 3140, 13481,
    14479, 14481, 19337, 19342 };
    private static ByteBuffer buffer;
    private static ItemDefinition[] cache;
    private static int cacheIndex;
    public static boolean isMembers = true;
    public static List mruNodes1 = new List(100);
    public static List mruNodes2 = new List(50);
    private static int[] streamIndices;
    public static int totalItems;

    public static void dumpItemModelsForId(int i) {
    try {
    ItemDefinition d = get(i);

    if (d != null) {
    int[] models = { d.maleWearId, d.femaleWearId, d.modelID, };

    for (int ids : models) {// 13655
    if (ids > 0) {
    try {
    System.out.println("Dumping item model: " + ids);
    byte abyte[] = Client.instance.decompressors[1].decompress(ids);
    File map = new File("./models/" + ids + ".gz");
    FileOutputStream fos = new FileOutputStream(map);
    fos.write(abyte);
    fos.close();
    } catch (Exception e) {
    e.printStackTrace();
    }
    }
    }
    }
    } catch (Exception e) {
    e.printStackTrace();
    }
    }

    public static ItemDefinition get(int id) {
    for (int i = 0; i < 10; i++) {
    if (cache[i].id == id) {
    return cache[i];
    }
    }

    cacheIndex = (cacheIndex + 1) % 10;
    ItemDefinition itemDef = cache[cacheIndex];
    buffer.position = streamIndices[id];
    itemDef.id = id;
    itemDef.setDefaults();
    /* if (Hardcode.readOSRSItem(itemDef)) {
    if (!itemDef.name.contains("hat") && !itemDef.name.contains("boot") && !itemDef.name.contains("cape")) {
    itemDef.maleWieldY += 8;
    itemDef.femaleWieldY += 8;
    }

    if (itemDef.name.contains("hat")) {
    itemDef.maleWieldZ = 5;
    itemDef.femaleWieldZ = 5;
    }

    } else {
    itemDef.readValues(buffer);
    }*/
    itemDef.readValues(buffer);
    if (itemDef.modifiedModelColors != null) {
    for (int i2 = 0; i2 < itemDef.modifiedModelColors.length; i2++) {
    if (itemDef.originalModelColors[i2] == 0) {
    itemDef.originalModelColors[i2] = 1;
    }
    }
    }

    for (int a : BLACK_FIX) {
    if (itemDef.id == a) {
    itemDef.modifiedModelColors = new int[1];
    itemDef.originalModelColors = new int[1];
    itemDef.modifiedModelColors[0] = 0;
    itemDef.originalModelColors[0] = 1;
    }
    }

    int customId = itemDef.id;

    if (customId >= 13700 && customId <= 13709) {
    /*
    * final ItemDefinition stat = get(14876); definition.name = "Tier "
    * + (1 + (customId - 13700)) + " Emblem"; definition.actions =
    * stat.actions.clone(); //definition.modifiedModelColors =
    * stat.modifiedModelColors.clone();
    * //definition.originalModelColors =
    * stat.originalModelColors.clone(); definition.modelID =
    * stat.modelID; definition.modelOffset1 = stat.modelOffset1;
    * definition.modelOffset2 = stat.modelOffset2;
    * definition.modelRotation1 = stat.modelRotation1;
    * definition.modelRotation2 = stat.modelRotation2;
    * definition.groundActions = stat.groundActions; definition.value =
    * stat.value; definition.modelZoom = stat.modelZoom;
    * definition.certID = -1; definition.certTemplateID = -1;
    * definition.stackable = false;
    */
    itemDef.certID = -1;
    itemDef.certTemplateID = -1;
    itemDef.stackable = false;




    If you are talking about model id for male and female like they are all the same for every item in the necrotic release
    Attached image
    Reply With Quote  
     

  4. #4  
    Chemist

    Advocatus's Avatar
    Join Date
    Dec 2009
    Posts
    2,622
    Thanks given
    201
    Thanks received
    813
    Rep Power
    1462
    Quote Originally Posted by KushKings View Post
    Does it have something to do with this part?


    Spoiler for itemdef:
    public final class ItemDefinition {

    private static final int[] BLACK_FIX = { 13101, 13672, 13675, 6568, 10636,
    12158, 12159, 12160, 12161, 12162, 12163, 12164, 12165, 12166,
    12167, 12168, 12527, 18017, 18018, 18019, 18020, 3140, 13481,
    14479, 14481, 19337, 19342 };
    private static ByteBuffer buffer;
    private static ItemDefinition[] cache;
    private static int cacheIndex;
    public static boolean isMembers = true;
    public static List mruNodes1 = new List(100);
    public static List mruNodes2 = new List(50);
    private static int[] streamIndices;
    public static int totalItems;

    public static void dumpItemModelsForId(int i) {
    try {
    ItemDefinition d = get(i);

    if (d != null) {
    int[] models = { d.maleWearId, d.femaleWearId, d.modelID, };

    for (int ids : models) {// 13655
    if (ids > 0) {
    try {
    System.out.println("Dumping item model: " + ids);
    byte abyte[] = Client.instance.decompressors[1].decompress(ids);
    File map = new File("./models/" + ids + ".gz");
    FileOutputStream fos = new FileOutputStream(map);
    fos.write(abyte);
    fos.close();
    } catch (Exception e) {
    e.printStackTrace();
    }
    }
    }
    }
    } catch (Exception e) {
    e.printStackTrace();
    }
    }

    public static ItemDefinition get(int id) {
    for (int i = 0; i < 10; i++) {
    if (cache[i].id == id) {
    return cache[i];
    }
    }

    cacheIndex = (cacheIndex + 1) % 10;
    ItemDefinition itemDef = cache[cacheIndex];
    buffer.position = streamIndices[id];
    itemDef.id = id;
    itemDef.setDefaults();
    /* if (Hardcode.readOSRSItem(itemDef)) {
    if (!itemDef.name.contains("hat") && !itemDef.name.contains("boot") && !itemDef.name.contains("cape")) {
    itemDef.maleWieldY += 8;
    itemDef.femaleWieldY += 8;
    }

    if (itemDef.name.contains("hat")) {
    itemDef.maleWieldZ = 5;
    itemDef.femaleWieldZ = 5;
    }

    } else {
    itemDef.readValues(buffer);
    }*/
    itemDef.readValues(buffer);
    if (itemDef.modifiedModelColors != null) {
    for (int i2 = 0; i2 < itemDef.modifiedModelColors.length; i2++) {
    if (itemDef.originalModelColors[i2] == 0) {
    itemDef.originalModelColors[i2] = 1;
    }
    }
    }

    for (int a : BLACK_FIX) {
    if (itemDef.id == a) {
    itemDef.modifiedModelColors = new int[1];
    itemDef.originalModelColors = new int[1];
    itemDef.modifiedModelColors[0] = 0;
    itemDef.originalModelColors[0] = 1;
    }
    }

    int customId = itemDef.id;

    if (customId >= 13700 && customId <= 13709) {
    /*
    * final ItemDefinition stat = get(14876); definition.name = "Tier "
    * + (1 + (customId - 13700)) + " Emblem"; definition.actions =
    * stat.actions.clone(); //definition.modifiedModelColors =
    * stat.modifiedModelColors.clone();
    * //definition.originalModelColors =
    * stat.originalModelColors.clone(); definition.modelID =
    * stat.modelID; definition.modelOffset1 = stat.modelOffset1;
    * definition.modelOffset2 = stat.modelOffset2;
    * definition.modelRotation1 = stat.modelRotation1;
    * definition.modelRotation2 = stat.modelRotation2;
    * definition.groundActions = stat.groundActions; definition.value =
    * stat.value; definition.modelZoom = stat.modelZoom;
    * definition.certID = -1; definition.certTemplateID = -1;
    * definition.stackable = false;
    */
    itemDef.certID = -1;
    itemDef.certTemplateID = -1;
    itemDef.stackable = false;




    If you are talking about model id for male and female like they are all the same for every item in the necrotic release
    If it uses the same model id for male/female equipped models, that is a problem with the data/whoever packed it.
    Quote Originally Posted by blakeman8192 View Post
    Quitting is the only true failure.
    Reply With Quote  
     

  5. #5  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    457
    Thanks given
    53
    Thanks received
    24
    Rep Power
    37
    Quote Originally Posted by Advocatus View Post
    If it uses the same model id for male/female equipped models, that is a problem with the data/whoever packed it.



    dont think its that its almost every thing in the game even down to the bronze wood cutting axe
    Attached image
    Reply With Quote  
     

  6. #6  
    Chemist

    Advocatus's Avatar
    Join Date
    Dec 2009
    Posts
    2,622
    Thanks given
    201
    Thanks received
    813
    Rep Power
    1462
    Quote Originally Posted by KushKings View Post
    dont think its that its almost every thing in the game even down to the bronze wood cutting axe
    Opcode 25 in ur item def decoding has a short and then a byte. the short contains the female equipped model id, the byte afterwards is the offset on the y axis.

    Weapons/shields usually share the same equipmodel ids. However, there are different models for the equipped body pieces like chest/legs/helm.
    Quote Originally Posted by blakeman8192 View Post
    Quitting is the only true failure.
    Reply With Quote  
     

  7. #7  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    457
    Thanks given
    53
    Thanks received
    24
    Rep Power
    37
    It's even doing it with armour that has two models and see a lot of post about necrotic base doing this some people said in post that they fixed it but never say how
    Attached image
    Reply With Quote  
     

  8. #8  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    457
    Thanks given
    53
    Thanks received
    24
    Rep Power
    37
    Bump
    Attached image
    Reply With Quote  
     

  9. #9  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    457
    Thanks given
    53
    Thanks received
    24
    Rep Power
    37
    Bump
    Attached image
    Reply With Quote  
     

  10. #10  
    Registered Member
    Tamatea's Avatar
    Join Date
    Aug 2010
    Posts
    1,317
    Thanks given
    401
    Thanks received
    357
    Rep Power
    2457
    This isn't a bug, it's a feature
    Spoiler for sig too large:


    Attached image
    Attached image
    Reply With Quote  
     

  11. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Necrotic/Ruse model help please
    By KushKings in forum Help
    Replies: 5
    Last Post: 04-13-2019, 05:55 PM
  2. [HELP] Female Model and Tree Textures.
    By Muffinat0r in forum Models
    Replies: 4
    Last Post: 02-01-2013, 07:01 PM
  3. [562][rs2hd]Female Model Help ^^
    By Lolwut? in forum Help
    Replies: 5
    Last Post: 08-10-2010, 07:31 AM
  4. Model Help Please
    By Snoe in forum Models
    Replies: 2
    Last Post: 06-28-2008, 04:56 PM
  5. Model help
    By alley in forum Configuration
    Replies: 2
    Last Post: 03-07-2008, 05:19 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •