Thread: [vencillio] Animated Infernal Cape

Results 1 to 7 of 7
  1. #1 [vencillio] Animated Infernal Cape 
    Registered Member
    Join Date
    May 2018
    Posts
    19
    Thanks given
    2
    Thanks received
    2
    Rep Power
    23
    not gonna tell you how to impliment, figure it out yourself. just giving the community something.

    Code:
    if (Rasterizer.anIntArray1480[54] >= j) {
    			Background background_1 = Rasterizer.aBackgroundArray1474s[54];
    			int l = background_1.anInt1452 * background_1.anInt1453 - 1;
    			int k1 = background_1.anInt1452 * anInt945 * 2;
    			byte abyte1[] = background_1.aByteArray1450;
    			byte abyte4[] = aByteArray912;
    			for (int j2 = 0; j2 <= l; j2++)
    				abyte4[j2] = abyte1[j2 - k1 & l];
    
    			background_1.aByteArray1450 = abyte4;
    			aByteArray912 = abyte1;
    			Rasterizer.method370(54);
    		}
    just a thank you would be nice, make sure that youre textures are up to date aswell
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Sep 2017
    Posts
    339
    Thanks given
    24
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by Morrigan View Post
    not gonna tell you how to impliment, figure it out yourself. just giving the community something.

    Code:
    if (Rasterizer.anIntArray1480[54] >= j) {
    			Background background_1 = Rasterizer.aBackgroundArray1474s[54];
    			int l = background_1.anInt1452 * background_1.anInt1453 - 1;
    			int k1 = background_1.anInt1452 * anInt945 * 2;
    			byte abyte1[] = background_1.aByteArray1450;
    			byte abyte4[] = aByteArray912;
    			for (int j2 = 0; j2 <= l; j2++)
    				abyte4[j2] = abyte1[j2 - k1 & l];
    
    			background_1.aByteArray1450 = abyte4;
    			aByteArray912 = abyte1;
    			Rasterizer.method370(54);
    		}
    just a thank you would be nice, make sure that youre textures are up to date aswell
    The Rasterizer.method370(54);

    54 = texture id? I just added it but got an error (maybe because i'm missing a texture id 54 or somethink.

    Also there must be somethink else for the texture to be attached into the cape? Correct me if im wrong but i dont think this is enough to make the infernal cape works properly. (Will play with it and will see)

    Edit: I'm pretty sure you just took it from this post too otherwise thanks.
    Reply With Quote  
     

  3. #3  
    'Slutty McFur'

    Owain's Avatar
    Join Date
    Sep 2014
    Age
    26
    Posts
    2,894
    Thanks given
    2,360
    Thanks received
    2,200
    Rep Power
    5000
    Pretty sure if you want it to flow slower and more to how osrs has it, you shouldn't need to multiply the animCycle (anInt945 in this case)


    Spoiler for wat:
    Attached image
    Attached image

    Attached image


    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2018
    Posts
    19
    Thanks given
    2
    Thanks received
    2
    Rep Power
    23
    Quote Originally Posted by replicant View Post
    The Rasterizer.method370(54);

    54 = texture id? I just added it but got an error (maybe because i'm missing a texture id 54 or somethink.

    Also there must be somethink else for the texture to be attached into the cape? Correct me if im wrong but i dont think this is enough to make the infernal cape works properly. (Will play with it and will see)

    Edit: I'm pretty sure you just took it from this post too otherwise thanks.
    its renamed for vencillio, and also you need a setTexture method
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Already been released by Zion so not sure what you're trying to accomplish here.
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Sep 2017
    Posts
    339
    Thanks given
    24
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by Morrigan View Post
    its renamed for vencillio, and also you need a setTexture method
    Okay where to get the setTexture method? Or is it alredy inside vencillio?

    Edit: Oh yea this thing. But i think it will attach the texture but it wont be properly drawn as it should be.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2015
    Posts
    225
    Thanks given
    127
    Thanks received
    48
    Rep Power
    39
    Code:
    			if (Rasterizer3D.textureLastUsed[59] >= j) {
    				IndexedImage background_1 = Rasterizer3D.textures[59];
    				int l = background_1.width * background_1.height - 1;
    				int k1 = background_1.width * tickDelta * 2;
    				byte abyte1[] = background_1.palettePixels;
    				byte abyte4[] = aByteArray912;
    				for (int j2 = 0; j2 <= l; j2++)
    					abyte4[j2] = abyte1[j2 - k1 & l];
    
    				background_1.palettePixels = abyte4;
    				aByteArray912 = abyte1;
    				Rasterizer3D.requestTextureUpdate(59);
    			}
    Here's a version for Elvarg base.. (Renamed)
    - -
    Reply With Quote  
     

  8. Thankful user:

    Community VeteranSub


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. Cape animating (master cape)
    By ~Zamorak~ in forum Tutorials
    Replies: 6
    Last Post: 01-29-2017, 04:54 PM
  2. Replies: 20
    Last Post: 08-05-2016, 08:35 PM
  3. Replies: 19
    Last Post: 12-19-2012, 08:42 PM
  4. Animating Fire Cape? [317]
    By Herewizard in forum Help
    Replies: 6
    Last Post: 07-30-2012, 11:52 PM
  5. Animating my Capes [req]
    By Koâk in forum Models
    Replies: 7
    Last Post: 04-14-2009, 06:16 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
  •