Author |
Message |
TorrentHKU
Loose Canon
Joined: Sun Mar 29, 2009 11:07 pm Posts: 2992 Location: --------------->
|
Re: Grappling Gun
Trebgah wrote: Could anyone tell me why this causes it to crash for me? It keeps crashing when either the user of the grappling gun or the actor it's attached to dies. Does it have to do with my using a mac? Is it just MY computer? It does that for alot of these other mods such as the hoverboards and the electric boomerang. Yes. It crashes because of something called "Lua" or more commonly, Sparkle Magic.
|
Tue Aug 11, 2009 11:37 pm |
|
|
Roon3
Joined: Sun May 11, 2008 12:50 pm Posts: 899
|
Re: Grappling Gun
Trebgah, it crashes for everyone, I've tried to fix it, but you just can't. Disconnect the rope when you think it gonna crash. NaXx, that's very easy to do, I'll post something up in a few minutes.
|
Wed Aug 12, 2009 7:27 am |
|
|
piipu
Joined: Mon Jun 30, 2008 9:13 pm Posts: 499 Location: Finland
|
Re: Grappling Gun
While converting this to my multi-purpose drone, I seem to have fixed the problem. It might have been changing curdist in the parent finding thing to 80, though I'm not sure. Edit: Actually that's probably not it. Maybe it's because my version affects the root MO?
|
Wed Aug 12, 2009 8:34 am |
|
|
Roon3
Joined: Sun May 11, 2008 12:50 pm Posts: 899
|
Re: Grappling Gun
It seems to happen when you are attached to a craft or actor. The crashing doesn't occur when devices gib or when MOSRots settle. NaXx, put this in the update part of your code: Code: if UInputMan:KeyHeld(##) and self.MaxDistAtm > 0 then self.MaxDistAtm = self.MaxDistAtm - 1; end
if UInputMan:KeyHeld(##) and self.MaxDistAtm < 200 then self.MaxDistAtm = self.MaxDistAtm + 1; end Replace ## with any number from 1 to 26.
|
Wed Aug 12, 2009 8:48 am |
|
|
Fooby
Joined: Tue Mar 25, 2008 1:17 am Posts: 11 Location: In a room with a moose
|
Re: Grappling Gun
Roon3 wrote: Avenski and Mr.Numbers, try redownloading, if that doesn't work, download the attached file and extract to Grapple.rte (Have it replace Hook.lua). This might fix it, if not fire the gun, open the console and look for "PRINT:Found" I'm getting the same error as Avenski and Numbers. I got the Hook.lua update and got "PRINT:Found" in console, so was this an way of finding a leak in code?
|
Wed Aug 12, 2009 2:38 pm |
|
|
Foogooman
Joined: Sat Nov 18, 2006 8:11 pm Posts: 267
|
Re: Grappling Gun
Alright, I have a comment and a crash report.
If you are grappled onto a craft when it leaves the top of the screen, the game crashes. Although, I think I might have been killed a second before it left too. That could have something to do with it, I never want back to test if it mattered if you were dead or not.
Also, it would be great the have a feature where you could change the length of the rope. And a way to pull whatever you're attached to to you. So you could latch onto a ceiling for example, and make the rope short so you stick to the ceiling rather than bouncing around constantly. And you could grab a clones gun and pull it out of his hand rather that having to fly away to pull it. EDIT: Already addressed I guess.
|
Wed Aug 12, 2009 7:41 pm |
|
|
NaXx
Joined: Mon Feb 02, 2009 9:18 pm Posts: 618 Location: Ancient Hispania
|
Re: Grappling Gun
Roon3 wrote: It seems to happen when you are attached to a craft or actor. The crashing doesn't occur when devices gib or when MOSRots settle. NaXx, put this in the update part of your code: Code: if UInputMan:KeyHeld(##) and self.MaxDistAtm > 0 then self.MaxDistAtm = self.MaxDistAtm - 1; end
if UInputMan:KeyHeld(##) and self.MaxDistAtm < 200 then self.MaxDistAtm = self.MaxDistAtm + 1; end Replace ## with any number from 1 to 26. Ok cool, and thanks for your attention Gonna check it right now! [EDIT] Doesn't work
Last edited by NaXx on Wed Aug 12, 2009 8:51 pm, edited 1 time in total.
|
Wed Aug 12, 2009 8:07 pm |
|
|
Foogooman
Joined: Sat Nov 18, 2006 8:11 pm Posts: 267
|
Re: Grappling Gun
Roon3 wrote: It seems to happen when you are attached to a craft or actor. The crashing doesn't occur when devices gib or when MOSRots settle. NaXx, put this in the update part of your code: Code: if UInputMan:KeyHeld(##) and self.MaxDistAtm > 0 then self.MaxDistAtm = self.MaxDistAtm - 1; end
if UInputMan:KeyHeld(##) and self.MaxDistAtm < 200 then self.MaxDistAtm = self.MaxDistAtm + 1; end Replace ## with any number from 1 to 26. Where exactly can I put it? I've tried to put it a bunch of different places in the code but it just ends up breaking it every time.
|
Wed Aug 12, 2009 8:30 pm |
|
|
Roon3
Joined: Sun May 11, 2008 12:50 pm Posts: 899
|
Re: Grappling Gun
If you're using a fresh install of the mod (No 'patches' and whatnot) the open Grapple.rte/Hook.lua and scroll all the way to the bottom. You should see a line without any tabs, and only an 'end'. Paste it directly above that line. Also, the craft leaving crash works the same way as the gibbing one.
|
Wed Aug 12, 2009 8:51 pm |
|
|
Foogooman
Joined: Sat Nov 18, 2006 8:11 pm Posts: 267
|
Re: Grappling Gun
Roon3 wrote: If you're using a fresh install of the mod (No 'patches' and whatnot) the open Grapple.rte/Hook.lua and scroll all the way to the bottom. You should see a line without any tabs, and only an 'end'. Paste it directly above that line. Also, the craft leaving crash works the same way as the gibbing one. EDIT: Trying something else Okay that didn't work either. This is what I have Code: if (self.Grab == 2) then Grapple(self.LinePow, self.Parent, self, self.MaxDistAtm); end else MovableMan:RemoveMO(self); --You want this to be cleaned up ASAP! If you try to perform actions on a non-existant object...CRASH! end
if UInputMan:KeyHeld(24) then self.Lifetime = 1; end
if UInputMan:KeyHeld(6) and self.MaxDistAtm > 0 then self.MaxDistAtm = self.MaxDistAtm - 1; end
if UInputMan:KeyHeld(7) and self.MaxDistAtm < 200 then self.MaxDistAtm = self.MaxDistAtm + 1; end end
|
Wed Aug 12, 2009 8:58 pm |
|
|
Roon3
Joined: Sun May 11, 2008 12:50 pm Posts: 899
|
Re: Grappling Gun
Try this, (replace with all the stuff in Hook.lua) also the rope is at max length at the beginning, so you need to shorten it before you can increase length.
|
Wed Aug 12, 2009 9:05 pm |
|
|
Foogooman
Joined: Sat Nov 18, 2006 8:11 pm Posts: 267
|
Re: Grappling Gun
Roon3 wrote: Try this, (replace with all the stuff in Hook.lua) also the rope is at max length at the beginning, so you need to shorten it before you can increase length. Didn't work :/ Now it just shoots out a hook that sticks into walls but that's it. No rope or anything, just fires a hook that sticks. console gives me this error over and over Code: ERROR: luaguns.rte/Minidrone/Grappling Hook/Hook.lua:19: attempt to index local 'Origin' (a number value)
|
Wed Aug 12, 2009 11:48 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Grappling Gun
Luaguns and this mod are conflicting.
Remove luagun's .rte filename appendix.
|
Thu Aug 13, 2009 12:51 am |
|
|
Trebgah
Joined: Wed Jun 17, 2009 7:34 am Posts: 11 Location: None of your friggin' business!
|
Re: Grappling Gun
Oh sorry. I'm a little new to all this. My brother refuses to teach me the way these mods work. Sorry…
|
Thu Aug 13, 2009 2:10 am |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
Re: Grappling Gun
learn it yourself. thats how we all got to where we were. also to fix the crashing cant you just do a MovableMan:ValidMO(thing on each end) check?
|
Thu Aug 13, 2009 2:54 am |
|
|
|