Thread: Help me adding models, please.

Results 1 to 4 of 4
  1. #1 Help me adding models, please. 
    Registered Member
    Join Date
    Sep 2010
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hello, I've got a problem when I add models.
    I'm using Delta client v16 and the Delta source. Also tried with the BallScape Devolution based server + client. I want to focus on adding onto the Devo
    This is how I add my models. I tried adding the Chaotic weapons that were released.

    1. I add the ints into class8.java correctly.
    2. I add the .dat files into "Models" and GZip them.
    3. I compile the client, no errors.
    4. Then I log onto my server, type add models, shit loads of text pops up and yeah, it adds the models.
    NOTE: The Add model option doesn't work on the Devo based client, so I just add the models to the folder and log in.
    Everything works fine until I spawn the item, client freezes. I've tried to add the weapon into my weapon slot on the character, the character is invisible...

    This is the error I get at the devolution server, which I want to add models on to.
    Code:
    Exception in thread "Thread-3" java.lang.ArrayIndexOutOfBoundsException: 40921
            at Class30_Sub2_Sub4_Sub6.method462(Class30_Sub2_Sub4_Sub6.java:125)
            at Class8.method201(Class8.java:6522)
            at Class8.method200(Class8.java:6394)
            at client.method105(client.java:8863)
            at client.method36(client.java:2017)
            at client.method102(client.java:8584)
            at client.method9(client.java:9455)
            at Applet_Sub1.run(Applet_Sub1.java:123)
            at client.run(client.java:5009)
            at java.lang.Thread.run(Thread.java:619)
    Anyone who sees a missing part? What am I doing wrong?

    The problem seem to be somewhere around here:
    Code:
       public static Class30_Sub2_Sub4_Sub6 method462(int i, int j)
        {
            if(aClass21Array1661 == null)
                return null;
            Class21 class21 = aClass21Array1661[j];
            if(i != 9)
            {
                for(int k = 1; k > 0; k++);
            }
            if(class21 == null)
            {
                aClass42_1662.method548(j);
                return null;
            } else
            {
                return new Class30_Sub2_Sub4_Sub6(j, -870);
            }
        }
    I just don't know what the problem is, or where. Since I'm not a very experienced coder...

    Thanks! ~ A FAILURE
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2010
    Posts
    740
    Thanks given
    32
    Thanks received
    51
    Rep Power
    35
    Exception in thread "Thread-3" java.lang.ArrayIndexOutOfBoundsException: 40921
    I think it's the model ID is too high; over 40000. I can't remember where to change it though .
    [SPOIL]
    Quote Originally Posted by Archon Server View Post
    What do you mean compile?
    Quote Originally Posted by Hughes View Post
    I don't know the program i need to open a CLASS file since every time i try to open one in notepad it brings up random symbols.

    Quote Originally Posted by Flux View Post
    Quote Originally Posted by Tyluur View Post
    your better
    my better
    [/SPOIL]
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2010
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I tried to change the number of the model instead, and change into the Class too. I could spawn the item, but the model were all wrong. When I wielded it, it turned into a tree, and the drop model also failed.
    Reply With Quote  
     

  4. #4  
    Registered Member shoopdawhoop's Avatar
    Join Date
    Apr 2009
    Posts
    685
    Thanks given
    10
    Thanks received
    19
    Rep Power
    57
    Quote Originally Posted by Failure. View Post
    I tried to change the number of the model instead, and change into the Class too. I could spawn the item, but the model were all wrong. When I wielded it, it turned into a tree, and the drop model also failed.
    Either find a client tutorial on how to change the Model Header, or implement Preloading to your client
    if(WomanLocation != Kitchen)
    {
    DivideByZero();
    }
    Reply With Quote  
     


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. adding models
    By owner josh in forum Help
    Replies: 6
    Last Post: 04-18-2010, 03:37 AM
  2. Adding models
    By n3rdz in forum Help
    Replies: 4
    Last Post: 01-30-2010, 02:44 PM
  3. Adding Models?
    By Markk in forum Help
    Replies: 4
    Last Post: 01-21-2009, 03:47 PM
  4. adding models [HELP]
    By Explorz in forum Help
    Replies: 1
    Last Post: 01-18-2009, 07:33 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •