Thread: Help custom GFX whilst loading OSRS GFX

Results 1 to 3 of 3
  1. #1 Help custom GFX whilst loading OSRS GFX 
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Hey guys,

    Does anyone know why this is happening?

    Story time:

    So this is what is happening here in the GIF below. When ever i first call upon a new GFX which is hardcoded the GFX performs without any issues.
    Below is an example I'm sending the GFX "2226" which is turmoil, it activates perfectly fine. As soon I try a new hardcoded GFX it all breaks.
    In the GIF below i first perform 2226 which is turmoil, right after i try to perform the soulsplit GFX but it uses the turmoil model for some reason.
    Does anyone know what I'm doing wrong here and how i could fix this? Did the same for animations and I have 0 issues there.

    Attached image

    Unpacking method:

    Code:
    public static void init(FileArchive archive) {
    		Buffer buffer = new Buffer(archive.readFile("spotanim.dat"));
    		int amount = buffer.readUShort();
    		LOGGER.info("Total graphics loaded: " + amount + ", loading revision #" + Configuration.OSRS_VERSION);
    		if (graphics == null)
    			graphics = new Graphic[amount + 2_000];
    		int graphic = 0;
    		for (graphic = 0; graphic < amount; graphic++) {
    			if (graphics[graphic] == null) {
    				graphics[graphic] = new Graphic();
    			}
    			graphics[graphic].id = graphic;
    			graphics[graphic].readValues(buffer);
    		}
    		while (graphic < graphics.length) {
    			switch (graphic) {
    
    			case 2226:
    				graphics[graphic] = new Graphic();
    				graphics[graphic].modelId = 50778;
    				graphics[graphic].animationId = 12566;
    				graphics[graphic].animation = Animation.animations[12566];
    				break;
    
    			case 2263:
    				graphics[graphic] = new Graphic();
    				graphics[graphic].modelId = 50817;
    				graphics[graphic].animationId = 12586;
    				graphics[graphic].animation = Animation.animations[12586];
    				break;
    
    			case 2264:
    				graphics[graphic] = new Graphic();
    				graphics[graphic].modelId = 50817;
    				graphics[graphic].animationId = 12587;
    				graphics[graphic].animation = Animation.animations[12587];
    				break;
    			}
    			graphic++;
    		}
    	}
    Kind regards,

    Patrick
     

  2. #2  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    The animation used for the second gfx doesn't suit the model that has been assigned to it.
    Attached image
     

  3. #3  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by Kris View Post
    The animation used for the second gfx doesn't suit the model that has been assigned to it.
    It does, it works perfectly fine if i logout, login it always breaks as soon as i try a second custom GFX. When i login and first use X custom GFX it works, when i perform a different custom GFX it breaks.

    Close solved by Lennard.
    Last edited by _Patrick_; 09-15-2018 at 10:29 PM.
     


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. Help-317 that can load 641 anims/gfx?
    By Tetrent77 in forum Help
    Replies: 3
    Last Post: 01-08-2012, 08:21 PM
  2. Loading 474+ gfx on 317's
    By Penor in forum RS2 Client
    Replies: 15
    Last Post: 10-03-2009, 06:46 PM
  3. Loading 474+ gfx on 317
    By Penor in forum Help
    Replies: 3
    Last Post: 09-26-2009, 07:37 PM
  4. Loading 474+ gfx on 317
    By Penor in forum RS2 Client
    Replies: 0
    Last Post: 09-26-2009, 07:19 PM
  5. Loading new gfx
    By zezarak in forum Help
    Replies: 4
    Last Post: 05-30-2009, 06:21 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
  •