Thread: Loading #178

Page 7 of 7 FirstFirst ... 567
Results 61 to 68 of 68
  1. #61  
    Registered Member
    Join Date
    May 2013
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Rememberm3 View Post
    The thing you can start with is posting errors. Without seeing code and errors, it's difficult to pinpoint what the issue is.
    Sorry bro just retried it all today and got way closer, problem was mentioned earlier

    Exception in thread "Thread-3" java.lang.OutOfMemoryError: Java heap space
    at com.runescape.cache.graphics.Sprite.<init>(Sprite. java:243)
    at com.runescape.cache.graphics.Widget.getSprite(Widg et.java:3303)
    at com.runescape.cache.graphics.Widget.load(Widget.ja va:212)
    at com.runescape.Client.startUp(Client.java:9451)
    at com.runescape.GameApplet.run(GameApplet.java:112)
    at com.runescape.Client.run(Client.java:6334)
    at java.lang.Thread.run(Unknown Source)

    to replace the data.dat can I just use one from a different server or could someone provide the appropriate one as a link? ty in advance for any of ur time

    just found the client's spritepacker.java and ran it but can't find how to load the images to pack into a sprite.dat and sprite.idx to replace ones in cache with.also better sprite packet 3 wouldnt open up the proper interface to let me use it instead
    Reply With Quote  
     

  2. #62  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Godz Demon View Post
    Sorry bro just retried it all today and got way closer, problem was mentioned earlier

    Exception in thread "Thread-3" java.lang.OutOfMemoryError: Java heap space
    at com.runescape.cache.graphics.Sprite.<init>(Sprite. java:243)
    at com.runescape.cache.graphics.Widget.getSprite(Widg et.java:3303)
    at com.runescape.cache.graphics.Widget.load(Widget.ja va:212)
    at com.runescape.Client.startUp(Client.java:9451)
    at com.runescape.GameApplet.run(GameApplet.java:112)
    at com.runescape.Client.run(Client.java:6334)
    at java.lang.Thread.run(Unknown Source)

    to replace the data.dat can I just use one from a different server or could someone provide the appropriate one as a link? ty in advance for any of ur time

    just found the client's spritepacker.java and ran it but can't find how to load the images to pack into a sprite.dat and sprite.idx to replace ones in cache with.also better sprite packet 3 wouldnt open up the proper interface to let me use it instead
    The error is that java is out of memory, try giving it more memory. You can try to use https://stackoverflow.com/questions/...mory-than-512m. For the sprites you can try to dump them from the sprites.idx and sprites.dat using https://www.rune-server.ee/runescape...at-dumper.html
    Reply With Quote  
     

  3. #63  
    Registered Member
    Join Date
    May 2013
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I didn't need to dump the sprites but did so anyway and then repacked them into the correct files for good measure but it didn't work. also giving eclipse more memory didnt work as it's already set to 1024. is the problem having a a sprite folder in the clients/servers source while there's one in C:\users? or should I replace all exising versions of sprites.dat and sprites.idx? some guy had same problem as this before and I think repacking the sprites somehow worked for him but allocating more memory didn't as it's a mem leak
    Reply With Quote  
     

  4. #64  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Godz Demon View Post
    I didn't need to dump the sprites but did so anyway and then repacked them into the correct files for good measure but it didn't work. also giving eclipse more memory didnt work as it's already set to 1024. is the problem having a a sprite folder in the clients/servers source while there's one in C:\users? or should I replace all exising versions of sprites.dat and sprites.idx? some guy had same problem as this before and I think repacking the sprites somehow worked for him but allocating more memory didn't as it's a mem leak
    Yeah it is a memory leak indeed, I don't know where it comes from. Depends a bit on when it happens.
    Reply With Quote  
     

  5. #65  
    Registered Member
    Join Date
    May 2013
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    any way to patch it up? I can post my discord add, need a modernish osrs base to work of
    would a new client do the trick or would that be more work than finding and fixing mem leak?

    Each line of code highlighted as an error;

    error)at com.runescape.cache.graphics.Sprite.<init>(Sprite. java:243)
    code)myPixels = new int[spriteSize];

    at com.runescape.cache.graphics.Widget.getSprite(Widg et.java:3303)
    sprite = new Sprite(streamLoader, s, i);

    at com.runescape.cache.graphics.Widget.load(Widget.ja va:212)
    widget.enabledSprite = getSprite(Integer.parseInt(name.substring(index + 1)), graphics,

    at com.runescape.Client.startUp(Client.java:9451)
    Widget.load(interfaceArchive, gameFonts, mediaArchive);

    at com.runescape.GameApplet.run(GameApplet.java:112)
    startUp();

    at com.runescape.Client.run(Client.java:6334)
    super.run();

    at java.lang.Thread.run(Unknown Source)

    also this is the first error that throws up and the corresponding code, is it how they're called? 556 is all of the sprites it loads them then fails.

    Map Amount: 1711
    Sounds Amount: 647
    Model amount: 67136
    Dec 17, 2019 11:53:31 PM com.runescape.cache.graphics.SpriteLoader loadSprites <---------- highlited red
    INFO: Sprites Loaded: 556 <----------- highlighted red
    Loaded: 7619 Animations
    Loaded: 33092 Objects
    Underlay Floors Loaded: 150
    Overlay Floors Loaded: 174
    Loaded: 8390 Npcs
    Loaded: 1383 Graphics
    Item Amount: 22752
    Exception in thread "Thread-3" java.lang.OutOfMemoryError: Java heap space <------- highlighted red beginning of freeze
    code

    public static void loadSprites() {
    try {

    Buffer index = new Buffer(FileUtils.readFile(SignLink.findcachedir() + "sprites.idx"));
    Buffer data = new Buffer(FileUtils.readFile(SignLink.findcachedir() + "sprites.dat"));

    DataInputStream indexFile = new DataInputStream(
    new GZIPInputStream(new ByteArrayInputStream(index.payload)));
    DataInputStream dataFile = new DataInputStream(
    new GZIPInputStream(new ByteArrayInputStream(data.payload)));

    int totalSprites = indexFile.readInt();
    LOGGER.info("Sprites Loaded: " + totalSprites);
    if (cache == null) {
    cache = new SpriteLoader[totalSprites];
    sprites = new Sprite[totalSprites];
    }
    for (int i = 0; i < totalSprites; i++) {
    int id = indexFile.readInt();
    if (cache[id] == null) {
    cache[id] = new SpriteLoader();
    }
    cache[id].readValues(indexFile, dataFile);
    createSprite(cache[id]);
    }
    indexFile.close();
    dataFile.close();
    } catch (Exception e) {
    e.printStackTrace();
    }
    }
    Reply With Quote  
     

  6. #66  
    Registered Member Rememberm3's Avatar
    Join Date
    Aug 2013
    Posts
    1,716
    Thanks given
    56
    Thanks received
    108
    Rep Power
    129
    Quote Originally Posted by Godz Demon View Post
    any way to patch it up? I can post my discord add, need a modernish osrs base to work of
    would a new client do the trick or would that be more work than finding and fixing mem leak?

    Each line of code highlighted as an error;

    error)at com.runescape.cache.graphics.Sprite.<init>(Sprite. java:243)
    code)myPixels = new int[spriteSize];

    at com.runescape.cache.graphics.Widget.getSprite(Widg et.java:3303)
    sprite = new Sprite(streamLoader, s, i);

    at com.runescape.cache.graphics.Widget.load(Widget.ja va:212)
    widget.enabledSprite = getSprite(Integer.parseInt(name.substring(index + 1)), graphics,

    at com.runescape.Client.startUp(Client.java:9451)
    Widget.load(interfaceArchive, gameFonts, mediaArchive);

    at com.runescape.GameApplet.run(GameApplet.java:112)
    startUp();

    at com.runescape.Client.run(Client.java:6334)
    super.run();

    at java.lang.Thread.run(Unknown Source)

    also this is the first error that throws up and the corresponding code, is it how they're called? 556 is all of the sprites it loads them then fails.



    code
    Looks like it has to do with fonts, not sure how you can fix that, but maybe you can just find a different base to start with. Maybe something like elvarg
    Reply With Quote  
     

  7. #67  
    Registered Member
    Join Date
    May 2013
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Okeydoke Rememberm3, thanks very much for all you've done to assist. I'm sure this is based on elvarg so I'll find the original by professor oak and can keep this for snippets of code if needed
    Reply With Quote  
     

  8. #68  
    Catherby Developer
    Mini Slurpee's Avatar
    Join Date
    Apr 2011
    Posts
    747
    Thanks given
    80
    Thanks received
    86
    Rep Power
    31
    Does anyone have a link to this?????
    Attached image
    “I have not failed, I've just found 10,000 ways that won't work.”
    “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”
    Reply With Quote  
     

Page 7 of 7 FirstFirst ... 567

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. Loading Menus From Text File
    By ThatOneServer in forum Tutorials
    Replies: 3
    Last Post: 06-19-2007, 11:01 AM
  2. Loading Commands From Text File
    By ThatOneServer in forum Tutorials
    Replies: 2
    Last Post: 05-05-2007, 12:36 PM
  3. Load members from a .txt file!
    By James in forum Tutorials
    Replies: 0
    Last Post: 05-02-2007, 10:46 PM
  4. [D-Load]Buddy kit I use for avatars...
    By Santa Clause in forum General
    Replies: 14
    Last Post: 04-14-2007, 06:53 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •