Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • SOUPSOUP: just get a vpn
      August 13, 2018, 06:44:28 PM
    • jme: _^_ will answer all of your javascript questions
      August 12, 2018, 07:11:00 PM
    • doomsale: and where is boxman?
      August 10, 2018, 03:16:59 AM
    • doomsale: Where can i play the Moparscape MMORPG with the Metallica instrumentals?
      August 10, 2018, 03:16:47 AM
    • doomsale: no longer clicking on doors and dummies at east bank
      August 10, 2018, 03:16:07 AM
    • doomsale: were all grown up now huh?
      August 10, 2018, 03:15:58 AM
    • _^_: hey everyone look at my graphs [link]
      August 06, 2018, 01:52:16 PM
    • braedyn: Someone pl0x help me out with PI Lottery!!
      August 03, 2018, 02:12:25 AM
    • Travas: p3n1s
      July 26, 2018, 09:46:33 PM
    • Krackkid: You up :eggplant:
      July 23, 2018, 06:18:17 PM
    • DeathsChaos9: no
      July 23, 2018, 03:53:31 PM
    • Emulous: Come check out Emulous: [link]
      July 22, 2018, 03:37:19 PM
    • Emulous:[link]
      July 22, 2018, 03:37:00 PM
    • Travas: ur mom
      July 21, 2018, 06:04:50 PM
    • YNRDAB: Watcha big ballers up too?
      July 20, 2018, 11:01:06 AM
    • dark250: i need help for coding client
      July 19, 2018, 08:27:37 AM
    • Travas: yes
      July 14, 2018, 02:19:44 PM
    • drubrkletern: lmao racist and sexist much?
      July 14, 2018, 01:11:52 PM
    • Cole1497: yeah i got you lil boat give me a second
      July 13, 2018, 03:19:35 AM
    • B0ATY.: yo can anyone unban my ip, i got banned for saying i hope someone gets aids :p
      July 12, 2018, 09:16:00 PM

    Author Topic: Adding models to cache (I don't have a models folder with all the .gz files)  (Read 776 times)

    0 Members and 1 Guest are viewing this topic.

    Offlinesorecheeny

    • Member
    • ****
    • Posts: 495
    • Thanks: +0/-0
      • View Profile
    I'm getting really stressed right now, I'm trying to add the skillcapes models/dat files to my cache but I can't find the place to add them in, and I'm using 377 cache for my remake.

    I've been using Galkon's suite, and Xave's model viewer for this.

    Here's what my cache looks like:



    Help me please..
    First go into client.jar (client sided)

    LOL.
    Runescape Gambling

    OfflineReaperXScape

    • Member
    • ****
    • Posts: 376
    • Thanks: +0/-0
      • View Profile
    make a models folder
    try making it called "models" or "Models" or "raw"
    raw is on some clients, mostly newer ones use "raw" instead of "models"
    so just make your own folder and add them in and it should work.
    GL.

    Note:
    search in your client files for the real folder name so you know what to call it.
    OMFG LOOK AT SPOILERS
    (click to show/hide)
    Runescape Gambling

    OfflineInt Bauk

    • Member
    • ****
    • Posts: 958
    • Thanks: +0/-0
      • View Profile
    create a new folder called pModels, then put the dat files in. gzip the dat files.

    add these 2 methods in client.java:

    Code: [Select]
    public byte[] getModel(int index) {
    try {
    File model = new File(signlink.findcachedir()+"/pModels/" + index + ".gz");
    byte[] aByte = new byte[(int)model.length()];
    FileInputStream Fis = new FileInputStream(model);
    Fis.read(aByte);
    pushMessage("aByte = [" + aByte + "]!", 0, "");
    Fis.close();
    return aByte;
    } catch(Exception e) {
    return null;
    }
    }

    public void models() {
    for(int ModelIndex = 0; ModelIndex < 60000; ModelIndex++) {
    byte[] abyte0 = getModel(ModelIndex);
    if(abyte0 != null && abyte0.length > 0) {
    decompressors[1].method234(abyte0.length, abyte0, ModelIndex);
    }
    }
    }

    or use Galkon's repack cache index (index 1 for models), then call models(); on startup.

    done
    Runescape Gambling

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal