Line error

View previous topic View next topic Go down

Line error

Post by lolrigid on Sun Nov 21, 2010 7:32 pm

Whenever i get a code from this forum (planes,cars,etc) it says: Error Line And then a number. I need help confused
avatar
lolrigid
Tank
Tank

Posts : 61
Join date : 2010-11-21
Location : At the cn tower

View user profile

Back to top Go down

Re: Line error

Post by JHaskly on Sun Nov 21, 2010 11:38 pm

Welcome to the forums Very Happy

It will say line error: and then a number. Is this number different every time, or always the same? (Or, can you write one of the errors on here?)

_________________
Previously (and currently) known as Juz.

Please do not write "LUA", beause it's "Lua". It's Moon in Portuguese, not a Limited User Account, Last Universal Ancestor, or the Lukla Airport in Nepal.

JHaskly
Admin

Posts : 235
Join date : 2010-07-16
Age : 21
Location : Brisbane

View user profile

Back to top Go down

Re: Line error

Post by madbob2 on Sun Nov 21, 2010 11:50 pm

I think it is probably something wrong with the coding of the model, maybe you should have a look through the model for the error, this could take some time though.
avatar
madbob2
Tank
Tank

Posts : 87
Join date : 2010-07-16
Age : 20
Location : Orz Lake.x

View user profile

Back to top Go down

Re: Line error

Post by JHaskly on Mon Nov 22, 2010 4:24 am

If it's every model though, there is clearly something wrong.

_________________
Previously (and currently) known as Juz.

Please do not write "LUA", beause it's "Lua". It's Moon in Portuguese, not a Limited User Account, Last Universal Ancestor, or the Lukla Airport in Nepal.

JHaskly
Admin

Posts : 235
Join date : 2010-07-16
Age : 21
Location : Brisbane

View user profile

Back to top Go down

Re: Line error

Post by lolrigid on Mon Nov 22, 2010 10:05 am

JHaskly wrote:If it's every model though, there is clearly something wrong.

one error is like: Error Line 58
avatar
lolrigid
Tank
Tank

Posts : 61
Join date : 2010-11-21
Location : At the cn tower

View user profile

Back to top Go down

Re: Line error

Post by lolrigid on Mon Nov 22, 2010 10:53 am

madbob2 wrote:I think it is probably something wrong with the coding of the model, maybe you should have a look through the model for the error, this could take some time though.
Im really bad at scripting and Lua. confused
avatar
lolrigid
Tank
Tank

Posts : 61
Join date : 2010-11-21
Location : At the cn tower

View user profile

Back to top Go down

Re: Line error

Post by Sting Auer on Mon Nov 22, 2010 12:40 pm

Oh it means that there is an error on that specific line of the vehicles coding. Go in and manually find what the problem is, or upload the model and I'll try to find it.


If it is every single model, it is possible that it is the language issue or something like that. It has to do with certain countries using commas in place of decimal points.
avatar
Sting Auer
Hover
Hover

Posts : 170
Join date : 2010-09-19
Location : Aw crap i think I'm lost.

View user profile

Back to top Go down

Re: Line error

Post by lolrigid on Mon Nov 22, 2010 1:04 pm

Sting Auer wrote:Oh it means that there is an error on that specific line of the vehicles coding. Go in and manually find what the problem is, or upload the model and I'll try to find it.


If it is every single model, it is possible that it is the language issue or something like that. It has to do with certain countries using commas in place of decimal points.
This is a plane (i forget what its called)
Code:
// [RCD]
Val
{
  BALLOON(default=0, max=5000000)
  BOOST(default=0, max=100000, step=100000)
  BRAKE(default=180, min=150, max=180, step=3)
  FOLD(default=180, max=180)
  GUN1(default=0, max=100000, step=100000)
  GUN2(default=0, max=100000, step=100000)
  GUN3(default=0, max=100000, step=100000)
  GUN4(default=0, max=100000, step=100000)
  JET(default=0, max=50000)
  PITCH2(default=0, min=-15, max=15, step=3)
  ROLL(default=0, min=-5, max=5, step=3)
  SMG(default=0, max=20000, step=20000)
  TRANSAM(default=#FFFFFF)
  TRANSAMC(default=#808080)
  TRANSAMCB(default=5, min=5, max=15)
  TRANSAMT(default=0, max=2700, step=2)
  YAW(default=0, min=-15, max=15, step=3)
}
Key
{
  0:PITCH2(step=3)
  1:PITCH2(step=-3)
  2:ROLL(step=3)
  3:ROLL(step=-3)
  4:YAW(step=-3)
  5:NOZZLE(step=1)
  6:YAW(step=3)
  7:BRAKE(step=-3)
  8:GUN1(step=100000), GUN3(step=100000)
  9:SMG(step=20000)
  10:JET(step=10000)
  12:JET(step=-10000)
  14:FOLD(step=-9)
}
Body
{
  Core(color=TRANSAM) {
      S:Chip(angle=PITCH2, color=TRANSAM) { }
      E:Rudder(angle=165, color=TRANSAM) {
        E:Trim(angle=ROLL, color=TRANSAM) {
            E:Chip(color=TRANSAM) {
              S:Cowl(option=3, color=TRANSAMC, effect=TRANSAMCB) { }
            }
        }
      }
      W:Rudder(angle=-165, color=TRANSAM) {
        W:Trim(angle=ROLL, color=TRANSAM) {
            W:Chip(color=TRANSAM) {
              S:Cowl(option=4, color=TRANSAMC, effect=TRANSAMCB) { }
            }
        }
      }
      W:Chip(angle=45, color=TRANSAM) {
        N:Arm(power=GUN4, option=100000, color=TRANSAM, name=arm4) { }
        N:Cowl(option=5, color=TRANSAMC, effect=TRANSAMCB) { }
        S:Chip(angle=BRAKE, color=TRANSAM) { }
        S:Chip(angle=-BRAKE, color=TRANSAM) { }
      }
      E:Chip(angle=45, color=TRANSAM) {
        N:Arm(power=GUN3, option=100000, color=TRANSAM, name=arm3) { }
        N:Cowl(option=5, color=TRANSAMC, effect=TRANSAMCB) { }
        S:Chip(angle=-BRAKE, color=TRANSAM) { }
        S:Chip(angle=BRAKE, color=TRANSAM) { }
      }
      E:Chip(angle=-45, color=TRANSAM) {
        N:Arm(power=GUN2, option=100000, color=TRANSAM, name=arm2) { }
        N:Cowl(option=5, color=TRANSAMC, effect=TRANSAMCB) { }
        S:Chip(angle=-BRAKE, color=TRANSAM) { }
        S:Chip(angle=BRAKE, color=TRANSAM) { }
      }
      W:Chip(angle=-45, color=TRANSAM) {
        N:Arm(power=GUN1, option=100000, color=TRANSAM, name=arm1) { }
        N:Cowl(option=5, color=TRANSAMC, effect=TRANSAMCB) { }
        S:Chip(angle=BRAKE, color=TRANSAM) { }
        S:Chip(angle=-BRAKE, color=TRANSAM) { }
      }
      N:Chip(color=TRANSAM) {
        S:Frame(angle=-30, color=TRANSAM) {
            S:Frame(angle=120, color=TRANSAM) {
              E:Frame(angle=120, color=TRANSAM) { }
              W:Frame(angle=120, color=TRANSAM) {
                  W:Frame(angle=150, color=TRANSAM) {
                    W:Jet(angle=-90, power=JET, color=TRANSAM) {
                        W:Cowl(angle=105, option=5, color=TRANSAMC, effect=TRANSAMCB) { }
                        N:Cowl(angle=105, option=5, color=TRANSAMC, effect=TRANSAMCB) { }
                        E:Cowl(angle=105, option=5, color=TRANSAMC, effect=TRANSAMCB) { }
                        S:Cowl(angle=105, option=5, color=TRANSAMC, effect=TRANSAMCB) { }
                        S:Cowl(angle=-120, color=TRANSAMC, effect=TRANSAMCB) { }
                        E:Cowl(angle=-120, color=TRANSAMC, effect=TRANSAMCB) { }
                        N:Cowl(angle=-120, color=TRANSAMC, effect=TRANSAMCB) { }
                        W:Cowl(angle=-120, color=TRANSAMC, effect=TRANSAMCB) { }
                        W:Jet(angle=180, power=-BOOST, color=TRANSAM, effect=1) { }
                    }
                    W:Jet(angle=90, power=-JET, color=TRANSAM) {
                        N:Cowl(angle=-105, option=5, color=TRANSAMC, effect=TRANSAMCB) { }
                        W:Cowl(angle=-105, option=5, color=TRANSAMC, effect=TRANSAMCB) { }
                        E:Cowl(angle=-105, option=5, color=TRANSAMC, effect=TRANSAMCB) { }
                        S:Cowl(angle=-105, option=5, color=TRANSAMC, effect=TRANSAMCB) { }
                        N:Cowl(angle=120, color=TRANSAMC, effect=TRANSAMCB) { }
                        W:Cowl(angle=120, color=TRANSAMC, effect=TRANSAMCB) { }
                        S:Cowl(angle=120, color=TRANSAMC, effect=TRANSAMCB) { }
                        E:Cowl(angle=120, color=TRANSAMC, effect=TRANSAMCB) { }
                        W:Jet(angle=180, power=BOOST, color=TRANSAM, effect=1) { }
                    }
                  }
              }
            }
        }
        S:Trim(angle=90, color=TRANSAM) {
            S:Chip(angle=YAW, color=TRANSAM) { }
            N:Chip(color=TRANSAM) {
              N:Chip(color=TRANSAM) {
                  N:Cowl(option=5, color=TRANSAMC, effect=TRANSAMCB) { }
              }
            }
        }
        N:Weight(color=TRANSAM) {
            N:Arm(power=SMG, option=20000, color=TRANSAM) { }
        }
        N:Chip(angle=PITCH2, color=TRANSAM) { }
      }
      N:Jet(angle=FOLD, power=BALLOON, option=2, name=Frame3) {
        W:Jet(angle=FOLD, power=BALLOON, option=2, name=Frame2) {
            W:Jet(angle=FOLD, power=BALLOON, option=2, name=Frame1) { }
        }
        E:Jet(angle=FOLD, power=BALLOON, option=2, name=Frame4) {
            E:Jet(angle=FOLD, power=BALLOON, option=2, name=Frame5) { }
        }
      }
  }
}
Script
{//Reciprocal fire
If _E(arm1)=50000 & _KEY(8)=1 {GUN2=100000}
If _E(arm3)=50000 & _KEY(8)=1 {GUN4=100000}

//Balloon
If _KEY (14)=1 {_SPLIT (Frame1)}

//TRANS-AM system
If _KEY(5)=1 & TRANSAMT=0 {TRANSAMT=2700}
If TRANSAMT>1 {TRANSAMC=#FF8080}
If TRANSAMT<1800 {TRANSAMC=#808080}
If TRANSAMT>1 {TRANSAMCB=15}
If TRANSAMT<1800 {TRANSAMCB=5}
If TRANSAMT>1 {TRANSAM=#FF8080}
If TRANSAMT<1800 {TRANSAM=#FFFFFF}
If JET>1 & TRANSAMT>1800 {BOOST=0}
If JET>1 & TRANSAMT>1800 {BOOST=100000}

//Print
print 0,"  Grey Falcon"
print 1,"  V/F-Thrust  "
print 2,"  Z/C-Yaw  "
print 3,"  S-Cannon"
print 4,"  D-vulcan gun"
print 5,"  A-Airbrake"
print 6,"  X-Activate TRANS-AM"
print 7,"  Q-Balloon"
print 9,"  Made by Point.blank"

//Targeting recticle
  length=30  //ƒKƒCƒhƒ‰ƒCƒ“•`‰æ
  width=0.2
  sx=-_XX(chip)*width
  sy=-_XY(chip)*width
  sz=-_XZ(chip)*width
  ex=-_ZX(chip)*length
  ey=-_ZY(chip)*length
  ez=-_ZZ(chip)*length
  dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
  dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
  sx=_XX(chip)*width
  sy=_XY(chip)*width
  sz=_XZ(chip)*width
  dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
  dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
 
  sightrange=5  //ŽlŠp˜g•`‰æ
  sightwidth=0.25
  sightheight=0.2
  sx=_XX(chip)*sightheight-_YX(chip)*sightheight-_ZX(chip)*sightrange
  sy=_XY(chip)*sightheight-_YY(chip)*sightheight-_ZY(chip)*sightrange
  sz=_XZ(chip)*sightheight-_YZ(chip)*sightheight-_ZZ(chip)*sightrange
  ex=-_XX(chip)*sightheight-_YX(chip)*sightheight-_ZX(chip)*sightrange
  ey=-_XY(chip)*sightheight-_YY(chip)*sightheight-_ZY(chip)*sightrange
  ez=-_XZ(chip)*sightheight-_YZ(chip)*sightheight-_ZZ(chip)*sightrange
  dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
  dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
  sx=ex
  sy=ey
  sz=ez
  ex=-_XX(chip)*sightheight+_YX(chip)*sightheight-_ZX(chip)*sightrange
  ey=-_XY(chip)*sightheight+_YY(chip)*sightheight-_ZY(chip)*sightrange
  ez=-_XZ(chip)*sightheight+_YZ(chip)*sightheight-_ZZ(chip)*sightrange
  dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
  dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
  sx=ex
  sy=ey
  sz=ez
  ex=_XX(chip)*sightheight+_YX(chip)*sightheight-_ZX(chip)*sightrange
  ey=_XY(chip)*sightheight+_YY(chip)*sightheight-_ZY(chip)*sightrange
  ez=_XZ(chip)*sightheight+_YZ(chip)*sightheight-_ZZ(chip)*sightrange
  dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
  dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
  sx=ex
  sy=ey
  sz=ez
  ex=_XX(chip)*sightheight-_YX(chip)*sightheight-_ZX(chip)*sightrange
  ey=_XY(chip)*sightheight-_YY(chip)*sightheight-_ZY(chip)*sightrange
  ez=_XZ(chip)*sightheight-_YZ(chip)*sightheight-_ZZ(chip)*sightrange
  dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
  dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
 
  color=#990000  //ü‚̐F
  dummy=_SETCOLOR(color)
  lineheight=sightheight*0.6
  linewidth=sightwidth*0.6
  sx=-_YX(chip)*lineheight-_ZX(chip)*sightrange
  sy=-_YY(chip)*lineheight-_ZY(chip)*sightrange
  sz=-_YZ(chip)*lineheight-_ZZ(chip)*sightrange
  ex=_YX(chip)*lineheight-_ZX(chip)*sightrange
  ey=_YY(chip)*lineheight-_ZY(chip)*sightrange
  ez=_YZ(chip)*lineheight-_ZZ(chip)*sightrange
  dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
  dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)
  sx=-_XX(chip)*lineheight-_ZX(chip)*sightrange
  sy=-_XY(chip)*lineheight-_ZY(chip)*sightrange
  sz=-_XZ(chip)*lineheight-_ZZ(chip)*sightrange
  ex=_XX(chip)*lineheight-_ZX(chip)*sightrange
  ey=_XY(chip)*lineheight-_ZY(chip)*sightrange
  ez=_XZ(chip)*lineheight-_ZZ(chip)*sightrange
  dummy=_MOVE3D(_X(chip)+sx,_Y(chip)+sy,_Z(chip)+sz)
  dummy=_LINE3D(_X(chip)+ex,_Y(chip)+ey,_Z(chip)+ez)

//TRANS-AM status
if TRANSAMT<2701 {print 8,"  TRANS-AM Status: ACTIVE      [IIIIIIIIIIII]100%"}
if TRANSAMT<2610 {print 8,"  TRANS-AM Status: ACTIVE      [IIIIIIIIII  ]90%"}
if TRANSAMT<2520 {print 8,"  TRANS-AM Status: ACTIVE      [IIIIIIII    ]80%"}
if TRANSAMT<2430 {print 8,"  TRANS-AM Status: ACTIVE      [IIIIIII    ]70%"}
if TRANSAMT<2340 {print 8,"  TRANS-AM Status: ACTIVE      [IIIIII      ]60%"}
if TRANSAMT<2250 {print 8,"  TRANS-AM Status: ACTIVE      [IIIII      ]50%"}
if TRANSAMT<2160 {print 8,"  TRANS-AM Status: ACTIVE      [IIII        ]40%"}
if TRANSAMT<2070 {print 8,"  TRANS-AM Status: ACTIVE      [III        ]30%"}
if TRANSAMT<1980 {print 8,"  TRANS-AM Status: ACTIVE      [II          ]20%"}
if TRANSAMT<1890 {print 8,"  TRANS-AM Status: ACTIVE      [I          ]10%"}
if TRANSAMT<1800 {print 8,"  TRANS-AM Status: CHARGING [            ]0%"}
if TRANSAMT<1620 {print 8,"  TRANS-AM Status: CHARGING [I          ]10%"}
if TRANSAMT<1440 {print 8,"  TRANS-AM Status: CHARGING [II          ]20%"}
if TRANSAMT<1260 {print 8,"  TRANS-AM Status: CHARGING [III        ]30%"}
if TRANSAMT<1080 {print 8,"  TRANS-AM Status: CHARGING [IIII        ]40%"}
if TRANSAMT<900 {print 8,"  TRANS-AM Status: CHARGING [IIIII      ]50%"}
if TRANSAMT<720 {print 8,"  TRANS-AM Status: CHARGING [IIIIII      ]60%"}
if TRANSAMT<540 {print 8,"  TRANS-AM Status: CHARGING [IIIIIII    ]70%"}
if TRANSAMT<360 {print 8,"  TRANS-AM Status: CHARGING [IIIIIIII    ]80%"}
if TRANSAMT<180 {print 8,"  TRANS-AM Status: CHARGING [IIIIIIIIII  ]90%"}
if TRANSAMT<1 {print 8,"  TRANS-AM Status: READY        [IIIIIIIIIIII]100%"}

//Balloon deployer
IF FOLD=9 {_SPLIT (Frame1)}
IF FOLD=9 {_SPLIT (Frame2)}
IF FOLD=9 {_SPLIT (Frame3)}
IF FOLD=9 {_SPLIT (Frame4)}
IF FOLD=9 {_SPLIT (Frame5)}
IF FOLD<9 {BALLOON=5000000}}
avatar
lolrigid
Tank
Tank

Posts : 61
Join date : 2010-11-21
Location : At the cn tower

View user profile

Back to top Go down

Re: Line error

Post by madbob2 on Tue Nov 23, 2010 12:28 am

You have to tell us what the error is also.
avatar
madbob2
Tank
Tank

Posts : 87
Join date : 2010-07-16
Age : 20
Location : Orz Lake.x

View user profile

Back to top Go down

Re: Line error

Post by lolrigid on Tue Nov 23, 2010 6:07 am

madbob2 wrote:You have to tell us what the error is also.
It is error line 44.
avatar
lolrigid
Tank
Tank

Posts : 61
Join date : 2010-11-21
Location : At the cn tower

View user profile

Back to top Go down

Re: Line error

Post by JHaskly on Tue Nov 23, 2010 11:41 pm

There should be a lot more than that. Unless.. is it a popup window, or red text at the top of the screen?

_________________
Previously (and currently) known as Juz.

Please do not write "LUA", beause it's "Lua". It's Moon in Portuguese, not a Limited User Account, Last Universal Ancestor, or the Lukla Airport in Nepal.

JHaskly
Admin

Posts : 235
Join date : 2010-07-16
Age : 21
Location : Brisbane

View user profile

Back to top Go down

Re: Line error

Post by lolrigid on Wed Nov 24, 2010 5:26 am

JHaskly wrote:There should be a lot more than that. Unless.. is it a popup window, or red text at the top of the screen?
A popup error.
avatar
lolrigid
Tank
Tank

Posts : 61
Join date : 2010-11-21
Location : At the cn tower

View user profile

Back to top Go down

Re: Line error

Post by JHaskly on Thu Nov 25, 2010 12:02 am

It works fine for me. What line is the error on?

_________________
Previously (and currently) known as Juz.

Please do not write "LUA", beause it's "Lua". It's Moon in Portuguese, not a Limited User Account, Last Universal Ancestor, or the Lukla Airport in Nepal.

JHaskly
Admin

Posts : 235
Join date : 2010-07-16
Age : 21
Location : Brisbane

View user profile

Back to top Go down

Re: Line error

Post by lolrigid on Thu Nov 25, 2010 6:37 am

JHaskly wrote:It works fine for me. What line is the error on?
Again, i am really bad at scripting so idk what line. confused
avatar
lolrigid
Tank
Tank

Posts : 61
Join date : 2010-11-21
Location : At the cn tower

View user profile

Back to top Go down

Re: Line error

Post by RA2lover on Thu Nov 25, 2010 8:25 am

lolrigid wrote:one error is like: Error Line 58
lolrigid wrote:It is error line 44.

...
confusing.
avatar
RA2lover
Walker
Walker

Posts : 382
Join date : 2010-10-11
Age : 22
Location : Brazil

View user profile

Back to top Go down

Re: Line error

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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