The Letter W Posted September 17, 2020 Share Posted September 17, 2020 Title. Alright so awhile back I made Elec Man for DST (with the lovely help of our dear Mobbstar) and he worked fine for quite awhile. However at some point his lightning cast decided it was going to crash servers sometimes, and I'm not really particularly savvy with coding so I need a little bit of help figuring it out. We've ran the mod isolated and it doesn't necessarily happen every crash, but it happens frequently enough it's a problem. I'll attach the client log from the last crash as well as the lines I THINK it's referring to. Any help with this issue would be greatly appreciated! If further information is needed, please let me know, I'd love to get this mod to be less of a ticking time bomb. I'm an artsy sort so I'm pretty much dependent on other people for the coding aspects of mods *sobs* client_log.txt 1 Link to comment Share on other sites More sharing options...
Hornete Posted September 18, 2020 Share Posted September 18, 2020 22 hours ago, The Letter W said: [snip] inst:FacePoint(buffaction.pos) Try changing this line to this inst:FacePoint(buffaction.pos.local_pt) I'm not completely sure if that'll fix it. so let me know if it works! Link to comment Share on other sites More sharing options...
The Letter W Posted September 21, 2020 Author Share Posted September 21, 2020 On 9/18/2020 at 12:14 PM, Hornete said: inst:FacePoint(buffaction.pos) Try changing this line to this inst:FacePoint(buffaction.pos.local_pt) I'm not completely sure if that'll fix it. so let me know if it works! I'll give it a shot, thank you! 1 Link to comment Share on other sites More sharing options...
The Letter W Posted November 3, 2020 Author Share Posted November 3, 2020 On 9/18/2020 at 12:14 PM, Hornete said: inst:FacePoint(buffaction.pos) Try changing this line to this inst:FacePoint(buffaction.pos.local_pt) I'm not completely sure if that'll fix it. so let me know if it works! Ah beans, I finally was able to test it with someone and it's still causing crashes. I appreciate the help though but I'll ahve to keep searching!! Link to comment Share on other sites More sharing options...
The Letter W Posted November 3, 2020 Author Share Posted November 3, 2020 Figured I should actually attach the log this go around, oops server_log.txt 1 Link to comment Share on other sites More sharing options...
Hornete Posted November 6, 2020 Share Posted November 6, 2020 (edited) On 11/3/2020 at 1:41 PM, The Letter W said: Figured I should actually attach the log this go around, oops server_log.txt 132.89 kB · 1 download This ones a different crash so we're making progress! It looks like theres something wrong with the way your character spawns lightning (I assume thats whats happening anyways) Do you think you could share the code of your characters custom action? Edit: Actually, Ill just download the character themself and look at the code that way :] Edited November 6, 2020 by Hornete 1 Link to comment Share on other sites More sharing options...
The Letter W Posted November 6, 2020 Author Share Posted November 6, 2020 18 hours ago, Hornete said: This ones a different crash so we're making progress! It looks like theres something wrong with the way your character spawns lightning (I assume thats whats happening anyways) Do you think you could share the code of your characters custom action? Edit: Actually, Ill just download the character themself and look at the code that way :] Yeah, he has a lightning strike on command. I thought it was just breaking with nighthands originally but it just seems to be whenever, but more often than not. Your help is greatly appreciated. 1 Link to comment Share on other sites More sharing options...
Hornete Posted November 20, 2020 Share Posted November 20, 2020 @The Letter W Okay, sorry for the delay but here's the problem ! Change line 119 here local pt = act.pos or act.target and act.target:GetPosition() to this local pt = (act.pos and act.pos.local_pt) or (act.target and act.target:GetPosition()) And that'll fix the crash, have fun : ) 1 Link to comment Share on other sites More sharing options...
The Letter W Posted December 15, 2020 Author Share Posted December 15, 2020 On 11/20/2020 at 9:11 AM, Hornete said: @The Letter W Okay, sorry for the delay but here's the problem ! Change line 119 here local pt = act.pos or act.target and act.target:GetPosition() to this local pt = (act.pos and act.pos.local_pt) or (act.target and act.target:GetPosition()) And that'll fix the crash, have fun : ) !! Thank you so much for your help! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now