I Need Help

View previous topic View next topic Go down

I Need Help

Post by Xcermide1X on Thu May 17, 2012 4:07 am

Iv made myself a model, and iv tested it, it came up with errors, but i fixed them, there still showing tho, can somebody please help me here is my code


Code:
Val
{
JETF(default=0,min=-3000,max=5000,step=1000){
JETB(default=0,min=-3000,man=5000,step=1000){
Steering(default=-,min=-25,max=25,step=1){
}
Key
{
0:JETF(step=500)
1:JETB(step=-500)
2:Steering(step=-0.5)
3:Steering(step=0.5)
}
Body {
Core(){
S:Chip(){
S:Chip(){
E:Rudder(angle=0){
E:Rudder(angle=0){
N:Frame(angle=90){
}
}
W:Rudder(angle=0){
W:Rudder(angle=0){
N:Frame(angle=90){
}
}
}
}
}

N:Chip(){
N:Chip(){
E:Rudder(angle=0){
E:Rudder(angle=0){
N:Frame(angle=90){
}
}
W:Rudder(angle=0){
W:Rudder(angle=0){
N:Frame(angle=90){
}
}
}
}
}

Please HELP ME

Xcermide1X
Car
Car

Posts : 11
Join date : 2012-05-17

View user profile

Back to top Go down

Re: I Need Help

Post by Echo_Delta_Oscar on Thu May 17, 2012 11:36 am

Here is the Model, I hope it corresponds to what you had in mind.

Code:

  Val
    {
    JETF(default=0, min=-3000,max=5000,step=1000)
    JETB(default=0, min=-3000,max=5000,step=1000)
    Steering(min=-25,max=25,step=1)
    }

    Key
    {
    0:JETF(step=500)
    1:JETB(step=-500)
    2:Steering(step=-1)
    3:Steering(step=1)
    }

    Body {
    Core(){
    S:Chip(){
    S:Chip(){
    E:Rudder(angle=0){
    E:Rudder(angle=0){
    N:Frame(angle=90){
    }
    }
    }
    W:Rudder(angle=0){
    W:Rudder(angle=0){
    N:Frame(angle=90){
    }
    }
    }
    }}

    N:Chip(){
    N:Chip(){
    E:Rudder(angle=0){
    E:Rudder(angle=0){
    N:Frame(angle=90){
    }
    }
    }
    W:Rudder(angle=0){
    W:Rudder(angle=0){
    N:Frame(angle=90){
    }
    }
    }
    }
    }}}

Script{

print 0,"OK, Done!"

}

avatar
Echo_Delta_Oscar
Hover
Hover

Posts : 105
Join date : 2011-03-24

View user profile

Back to top Go down

Re: I Need Help

Post by Xcermide1X on Thu May 17, 2012 2:43 pm

Thx, its works but the jet dosent show so i dont really move, also can you show me how to add wings correctly?

Xcermide1X
Car
Car

Posts : 11
Join date : 2012-05-17

View user profile

Back to top Go down

Re: I Need Help

Post by Maurice on Thu May 17, 2012 4:57 pm

can you show me how to add wings correctly?

Alright, I will try to explain the basics of aircraft to you. Keep in mind that I have no idea how advanced your knowledge of aircraft and aerodynamics is, so I will try to keep it at an "Average Joe" level.

First things first, having wings will mean absolutely nothing without 4 things being true, 1: the vehicle must be properly balanced (unless you are using some sort of script/Lua stabilization). 2: The power source is in the correct place in relation to the vehicle's center of gravity (CG) (the exact location depends on how you have balanced the vehicle). I do not recommend placing the power source above or below the CG. You can, but things get complicated. 3: You also have a vertical tail fin or some other sort of lateral stabilization. 4 (and probably the most important): control surfaces. You probably want to start out with a straight wing and add ailerons (control surfaces that induce roll) on the trailing edge of it. To make the wing, pick a spot forward of the middle of the vehicle and add some chips straight out on either side, then add a chip to the back-facing side of each of those chips. Create a Val with, say, a min of -15 and a max of 15. Add angles to one or two of those back-facing chips on each wing in the name of that Val (make sure they deflect in opposite ways, you may have to toy around with the negatives). You will probably want elevators (control surfaces that adjust pitch) near the back of the craft along with the vertical fin. Close to the back, add a trim on either side, and create a Val with a min of -15 to -20 and a max of 15 to 20. Put the Val's name in the angle for those trims, and then make sure they both deflect in the SAME direction.

Please let me know if I was too technical or not descriptive enough. I only wish to help you become a better modeller.[quote]
avatar
Maurice
Hover
Hover

Posts : 153
Join date : 2011-10-07
Age : 22
Location : The early 1970's

View user profile

Back to top Go down

Re: I Need Help

Post by Xcermide1X on Thu May 17, 2012 11:55 pm

I added it but it comes up with error

Show me what iv done wrong
Code:
Val
        {
        JETF(default=0, min=-3000,max=5000,step=1000)
        JETB(default=0, min=-3000,max=5000,step=1000)
   Rudderl(min=-25,max=25,step=10)
   RudderR(min=-25,max=25,step=10)
   WingL(min=-15,max1=15,step=10)
   WingR(min=15,max=-15,step=10)
        }

        Key
        {
        0:JETF(step=500)
        1:JETB(step=-500)
        2:WingL(step=10)
        3:WingR(step=10)
        }

        Body {
        Core(){
        S:Chip(){
        S:Chip(){
        E:Rudder(angle=0){
        E:Rudder(angle=0){
        N:Frame(angle=90){
        }
        }
        }
        W:Rudder(angle=0){
        W:Rudder(angle=0){
        N:Frame(angle=0){
        }
        }
        }
        }}

        N:Chip(){
   E:Chip(WingR=10){
   E:Chip(WingR=10){
   W:Chip(WingL=10){
   W:Chip(WingL=10){
        N:Chip(){
        E:Rudder(angle=0){
        E:Rudder(angle=0){
        N:Frame(angle=0){
        }
   }
   }
   }
   }
        }
        }
        W:Rudder(angle=0){
        W:Rudder(angle=0){
        N:Frame(angle=90){
        }
        }
        }
        }
        }}}

    Script{

    print 0,"OK, Done!"

    }



Xcermide1X
Car
Car

Posts : 11
Join date : 2012-05-17

View user profile

Back to top Go down

Re: I Need Help

Post by Echo_Delta_Oscar on Fri May 18, 2012 1:34 am

You sould write, between round brackets, angle=WingR or angle=WingL rather than WingR=10.
When you are giving instructions to the structure, you have to proceed like you are filling a form.
Es:

N;Chip/Rudder/Trim(Name=?, angle=?){}
N:Frame/RudderF/TrimF(Name=?, angle=?, option=?){}
N:Jet(name=?, angle=?, power=?, option=?){}

Plus, always remember to ckeck for spelling mistakes, there is one in the Val block, a max1 instead of a max.
avatar
Echo_Delta_Oscar
Hover
Hover

Posts : 105
Join date : 2011-03-24

View user profile

Back to top Go down

Re: I Need Help

Post by Xcermide1X on Fri May 18, 2012 3:37 am

Echo_Delta_Oscar wrote:You sould write, between round brackets, angle=WingR or angle=WingL rather than WingR=10.
When you are giving instructions to the structure, you have to proceed like you are filling a form.
Es:

N;Chip/Rudder/Trim(Name=?, angle=?){}
N:Frame/RudderF/TrimF(Name=?, angle=?, option=?){}
N:Jet(name=?, angle=?, power=?, option=?){}

Plus, always remember to ckeck for spelling mistakes, there is one in the Val block, a max1 instead of a max.

I fixed the min1, can you tel me if this is right?

Code:
Val
        {
        JETF(default=0, min=-3000,max=5000,step=1000)
        JETB(default=0, min=-3000,max=5000,step=1000)
   Rudderl(min=-25,max=25,step=10)
   RudderR(min=-25,max=25,step=10)
   WingL(min=-15,max=15,step=10)
   WingR(min=15,max=-15,step=10)
        }

        Key
        {
        0:JETF(step=500)
        1:JETB(step=-500)
        2:WingL(step=10)
        3:WingR(step=10)
        }

        Body {
        Core(){
        S:Chip(){
        S:Chip(){
        E:Rudder(angle=0){
        E:Rudder(angle=0){
        N:Frame(angle=90){
        }
        }
        }
        W:Rudder(angle=0){
        W:Rudder(angle=0){
        N:Frame(angle=0){
        }
        }
        }
        }
   }

        N:Chip(){
   E:Chip(angle=WingR){
   E:Chip(angle=WingR){
   W:Chip(angle=WingL){
   W:Chip(angle=WingL){
        N:Chip(){
        E:Rudder(angle=0){
        E:Rudder(angle=0){
   N:Jet(JETF,angle=0,power=1500){
   N:Jet(JETB,angle=0,power=1500){
        N:Frame(angle=0){
   }
   }
        }
   }
   }
   }
   }
        }
        }
        W:Rudder(angle=0){
        W:Rudder(angle=0){
        N:Frame(angle=90){
        }
        }
        }
        }
        }}}

    Script{

    print 0,"OK, Done!"

    }



Xcermide1X
Car
Car

Posts : 11
Join date : 2012-05-17

View user profile

Back to top Go down

Re: I Need Help

Post by MrSparks on Fri May 18, 2012 9:36 am

It is not right.
Code:
  N:Jet(JETF,angle=0,power=1500){
  N:Jet(JETB,angle=0,power=1500){
is probably supposed to be
Code:
  N:Jet(angle=0,power=JETF){
  N:Jet(angle=0,power=JETB){

While I appreciate that you're making models by hand, you should probably use the designer until you get a bit better understanding of it.

http://rigidchips.forum-motion.com/t176-rigidchips-visual-model-designer

MrSparks
Tank
Tank

Posts : 73
Join date : 2012-01-05
Age : 27
Location : Michigan

View user profile

Back to top Go down

Re: I Need Help

Post by Xcermide1X on Sat May 19, 2012 5:25 am

I must really be doing something wrong, its telling me i have a missing bracket at the end of VAL when i do, heres my code

Code:
Val
{
   JET(default=0,min=-3000,max=5000,step=100){
   ENGINE(default=0,min=-1000,max=3000,step=100){
   RUDDER1(default=0,min=-3000,max=5000,step=100){
   BRAKE(default=0,min=-100,max=400,step=100){
}
Key
{
0:ENGINE(step=100){
1:ENGINE(step=-100){
2:RUDDER(step=100){
3:RUDDER(step=-100){
4:BRAKE(step=100){
5:JET(step=100){
}
Body
{
   Core() {
      S:Chip() {
         S:Chip() {
            S:Chip() {
               S:Chip() {
                  W:Chip() {
                     W:Wheel(angle=90,power=ENGINE) { }
                  }
                  E:Chip() {
                     E:Wheel(angle=90,power=ENGINE) { }
                  }
                  S:Jet(angle=90,power=JET) { }
               }
            }
         }
      }
      N:Chip() {
         W:Chip() {
            W:Rudder() {
               W:Chip() { }
            }
         }
         E:Chip() {
            E:Rudder() {
               E:Chip() { }
            }
         }
         N:Chip() {
            N:Rudder(power=RUDDER) {
               W:Chip() {
                  W:Wheel(angle=90) { }
               }
               E:Chip() {
                  E:Wheel(angle=90) { }
               }
            }
         }
      }
   }
}

Xcermide1X
Car
Car

Posts : 11
Join date : 2012-05-17

View user profile

Back to top Go down

Re: I Need Help

Post by MrSparks on Sat May 19, 2012 3:23 pm

Stop putting curly left braces on the end of your vals. And your keys, too. They are what are causing this issue.

Code:
  JET(default=0,min=-3000,max=5000,step=100){
  ENGINE(default=0,min=-1000,max=3000,step=100){
  RUDDER1(default=0,min=-3000,max=5000,step=100){
  BRAKE(default=0,min=-100,max=400,step=100){
Should be
Code:
  JET(default=0,min=-3000,max=5000,step=100)
  ENGINE(default=0,min=-1000,max=3000,step=100)
  RUDDER1(default=0,min=-3000,max=5000,step=100)
  BRAKE(default=0,min=-100,max=400,step=100)
Make the same change in your keys and you'll have..... many problems left.
You have: RUDDER1 used in the val block but RUDDER used everywhere else.
Fix that and you have: the steering rudder using RUDDER as a power instead of an angle.
Fix that and you have: trying to turn the steering rudder a hundred degrees per frame.
Fix that and you have: the wheels spinning in opposite directions.
Fix that and what you have depends on how you fixed it.

MrSparks
Tank
Tank

Posts : 73
Join date : 2012-01-05
Age : 27
Location : Michigan

View user profile

Back to top Go down

Re: I Need Help

Post by Xcermide1X on Sat May 19, 2012 4:49 pm

how do i fix the wheels going in opp directions?

Xcermide1X
Car
Car

Posts : 11
Join date : 2012-05-17

View user profile

Back to top Go down

Re: I Need Help

Post by Maurice on Sat May 19, 2012 5:05 pm

Use negative angles. For example, -90 instead of 90.
avatar
Maurice
Hover
Hover

Posts : 153
Join date : 2011-10-07
Age : 22
Location : The early 1970's

View user profile

Back to top Go down

Re: I Need Help

Post by Xcermide1X on Sat May 19, 2012 7:00 pm

your an idiot, chaning angles, means turning the wheels in a diff direction, so if you mean make it -90 degrees it means the wheels r up not down.

Xcermide1X
Car
Car

Posts : 11
Join date : 2012-05-17

View user profile

Back to top Go down

Re: I Need Help

Post by Maurice on Sat May 19, 2012 7:25 pm

your an idiot

1: Excuse me?

2: You're, not your. If you would normally say "you are", it's "you're". "Your" shows possession.

3: You need to clarify things. I simply thought that you meant one wheel was going up and the other down.

4: the soloution to YOUR problem is to set one of the wheel's power negative.
avatar
Maurice
Hover
Hover

Posts : 153
Join date : 2011-10-07
Age : 22
Location : The early 1970's

View user profile

Back to top Go down

Re: I Need Help

Post by Xcermide1X on Sat May 19, 2012 10:19 pm

it dosent seem to work,
Code:
Val
{
   JET(default=0,min=-5000,max=5000,step=100)
   ENGINE(default=0,min=-1000,max=3000,step=-100)
   RUDDER1(default=0,min=-3000,max=5000,step=100)
   BRAKE(default=0,min=-100,max=400,step=100)
}
Key
{
   0:ENGINE(step=100)
   1:ENGINE(step=100)
   2:RUDDER(step=100)
   3:RUDDER(step=-100)
   4:BRAKE(step=100)
   8:JET(step=100)
   5:JET(step=-100)
   
}
Body
{
   Core() {
      S:Chip() {
         S:Chip() {
            S:Chip() {
               S:Chip() {
                  W:Chip() {
                     W:Wheel(angle=90,power=ENGINE) { }
                  }
                  E:Chip() {
                     E:Wheel(angle=90,power=ENGINE) { }
                  }
                  S:Jet(angle=90,power=JET) { }
               }
            }
         }
      }
      N:Chip() {
         W:Chip() {
            W:Rudder() {
               W:Chip() { }
            }
         }
         E:Chip() {
            E:Rudder() {
               E:Chip() { }
            }
         }
         N:Chip() {
            N:Rudder(power=RUDDER1) {
               W:Chip() {
                  W:Wheel(angle=90) { }
               }
               E:Chip() {
                  E:Wheel(angle=90) { }
               }
            }
         }
      }
   }
}

Xcermide1X
Car
Car

Posts : 11
Join date : 2012-05-17

View user profile

Back to top Go down

Re: I Need Help

Post by MrSparks on Sun May 20, 2012 8:56 am

MrSparks wrote:
You have: RUDDER1 used in the valkey block but RUDDER1 used everywhere else.
Fix that and you have: the steering rudder using RUDDER1 as a power instead of an angle.
Fix that and you have: trying to turn the steering rudder a hundred degrees per frame.

MrSparks
Tank
Tank

Posts : 73
Join date : 2012-01-05
Age : 27
Location : Michigan

View user profile

Back to top Go down

Re: I Need Help

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum