Thread: Swats Animation system with graphics?

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Swats Animation system with graphics? 
    Registered Member
    Warlock 999's Avatar
    Join Date
    Jul 2008
    Age
    31
    Posts
    1,407
    Thanks given
    7
    Thanks received
    29
    Rep Power
    927
    Okay, This is what I'm doing and it's not working right.

    Spotanim code:

    Code:
                case 30:
                    originalDataID = 30;
                    cache[j].anInt405 = 35;
                    cache[j].anInt406 = 3002;
                    cache[j].aAnimation_407 = Animation.anims[cache[j].anInt406];
                    break;
    Animation.java code

    Code:
                if (j == 3002) {/* Ags GFX Animation */
                    int file = 32;
                    if (FrameStart[file] < 1)
                        Class36.methodCustomAnimations(false, file);
                    System.out.println("Animation");
                    int[] frames = { 29005, 29005, 29005, 29005, 29005, 29005,
                            29005, 29005, 29005, 29005, 29005, 29017, 29003, 29013,
                            29018, 29006, 29015, 29016, 29012, 29008, 29004, 29009,
                            29002, 29014, 29011, 29001, 29000, 29010, 29007, 29007,
                            29007 };
                    anims[j].TotalFrames = frames.length - 1;
                    anims[j].FrameID = new int[frames.length - 1];
                    anims[j].anIntArray354 = new int[frames.length - 1];
                    anims[j].FrameSpeed = new int[frames.length - 1];
                    for (int i2 = 0; i2 < frames.length - 1; i2++) {
                        anims[j].FrameID[i2] = frames[i2] + FrameStart[file];
                        anims[j].anIntArray354[i2] = -1;
                        anims[j].FrameSpeed[i2] = 3;
                    }
                }
    file 32 is the animation file for the specs and model 35 is the model for special graphics
    If anyone needs help with java questions or errors I will try and help with what I can/know
    my discord is Perkaholic feel free to add me with questions or to chat!

    "There is always one more thing you can do to increase your odds of success." -Hal Moore
    Reply With Quote  
     

  2. #2  
    Registered Member
    Warlock 999's Avatar
    Join Date
    Jul 2008
    Age
    31
    Posts
    1,407
    Thanks given
    7
    Thanks received
    29
    Rep Power
    927
    If anyone needs help with java questions or errors I will try and help with what I can/know
    my discord is Perkaholic feel free to add me with questions or to chat!

    "There is always one more thing you can do to increase your odds of success." -Hal Moore
    Reply With Quote  
     

  3. #3  
    Ex RSPS-cleaner

    SWAT's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    5,484
    Thanks given
    403
    Thanks received
    599
    Rep Power
    3609
    i see 3 thing that are wrong

    originalDataID = 30; delete useless

    wrong file frames:
    int[] frames = { 29005, 29005, 29005, 29005, 29005, 29005,
    29005, 29005, 29005, 29005, 29005, 29017, 29003, 29013,
    29018, 29006, 29015, 29016, 29012, 29008, 29004, 29009,
    29002, 29014, 29011, 29001, 29000, 29010, 29007, 29007,
    29007 };

    should be like 0 2 5 not 29002 29005


    and the file id is wrong dont edit the code just c &p it out of the config and dont edit it



    if you dont know gfx emote its:7075
    Reply With Quote  
     

  4. #4  
    Client Developer

    Pb600's Avatar
    Join Date
    Dec 2008
    Posts
    2,153
    Thanks given
    259
    Thanks received
    472
    Rep Power
    925
    i guess if he delete the dataid the model wont apear, just will apear the original gfx...
    Attached image
    Reply With Quote  
     

  5. #5  
    Ex RSPS-cleaner

    SWAT's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    5,484
    Thanks given
    403
    Thanks received
    599
    Rep Power
    3609
    it cant because he wants a new gfx.. original id loads the old model emote's.

    if(j == 7075){
    int file = 1771;
    if(FrameStart[file] < 1)
    Class36.methodCustomAnimations(false, file);
    int[] frames = {5,5,5,5,5,5,5,5,5,5,5,17,3,13,18,6,15,16,12,8,4,9 ,2,14,11,1,0,10,7,7,7,0};
    int[] delays = {3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3 ,3,3,3,3,3,3,0};
    aClass20Array351[j].anInt352 = frames.length-1;
    aClass20Array351[j].anIntArray353 = new int[frames.length-1];
    aClass20Array351[j].anIntArray354 = new int[frames.length-1];
    aClass20Array351[j].anIntArray355 = new int[frames.length-1];
    for(int i2 = 0; i2 < frames.length-1; i2++){
    aClass20Array351[j].anIntArray353[i2] = frames[i2]+FrameStart[file];
    aClass20Array351[j].anIntArray354[i2] = -1;
    aClass20Array351[j].anIntArray355[i2] = delays[i2];
    }
    }
    Reply With Quote  
     

  6. #6  
    Registered Member
    Warlock 999's Avatar
    Join Date
    Jul 2008
    Age
    31
    Posts
    1,407
    Thanks given
    7
    Thanks received
    29
    Rep Power
    927
    When i remove the orginaldataid thing it dont show the graphic anymore it shows the 317 one.

    EDIT: I added the orginaldataid back and it's still messing up like the vid with the new ints
    If anyone needs help with java questions or errors I will try and help with what I can/know
    my discord is Perkaholic feel free to add me with questions or to chat!

    "There is always one more thing you can do to increase your odds of success." -Hal Moore
    Reply With Quote  
     

  7. #7  
    Ex RSPS-cleaner

    SWAT's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    5,484
    Thanks given
    403
    Thanks received
    599
    Rep Power
    3609
    wierd add it back then but fix the animation
    Reply With Quote  
     

  8. #8  
    Registered Member
    Warlock 999's Avatar
    Join Date
    Jul 2008
    Age
    31
    Posts
    1,407
    Thanks given
    7
    Thanks received
    29
    Rep Power
    927
    Quote Originally Posted by SWAT View Post
    wierd add it back then but fix the animation
    I did, It's doing the same thing as in the vid? Could it maybe be because the models was fucked up?
    If anyone needs help with java questions or errors I will try and help with what I can/know
    my discord is Perkaholic feel free to add me with questions or to chat!

    "There is always one more thing you can do to increase your odds of success." -Hal Moore
    Reply With Quote  
     

  9. #9  
    Ex RSPS-cleaner

    SWAT's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    5,484
    Thanks given
    403
    Thanks received
    599
    Rep Power
    3609
    no its the animation make sure to add the file and the new config dont change anything else
    Reply With Quote  
     

  10. #10  
    Registered Member
    Rainaka's Avatar
    Join Date
    Nov 2008
    Age
    29
    Posts
    1,391
    Thanks given
    273
    Thanks received
    89
    Rep Power
    870
    How or what program do you guys use to take those quick vids..?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •