Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 12 13 14 15 16 … 18 Next »
Starfall critical error client side
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Starfall critical error client side
18-07-2015, 05:27 PM,
#1
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
Starfall critical error client side
Hello all,

Again I'm posting that in the hope Person or a developper of Starfall can help me. Sometimes when The Raven watches our screens, he succeeds to crash them both at the same time with an unexpected exception I never saw : "net message not started". The error seams to happen only on the first net message I'm sending. This first net message is part of hacking process to cancel the Right Click -> Restart Client Instance.
Usualy it sends a net message with just a string "REBOOT". And it seams that when calling net.start it crashes. Is there any way to fix the error or catch it ?
Find
Reply
18-07-2015, 06:00 PM,
#2
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: Starfall critical error client side
How fast are you trying to start net message? If you paste your chip to ground and try to send a net message instantly it only works once and then stop working. Wait a while and then try to send net message. Lets say 10 seconds.

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
18-07-2015, 06:37 PM,
#3
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Starfall critical error client side
You should be doing:
if net.start() then
--Write stuff
end
for every net message you send.
Find
Reply
19-07-2015, 06:51 AM,
#4
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
RE: Starfall critical error client side
(18-07-2015, 06:37 PM)Person8880 Wrote: You should be doing:
if net.start() then
--Write stuff
end
for every net message you send.

Ok well you ask to remake 50% of the code ! There ar sooooo many net.start in Ship AI II and there are less in all screens... What about if I patch the net.start function to cancel it whenever if (not(oldnet.start)) then I cancel (return) ?
Find
Reply
19-07-2015, 12:12 PM,
#5
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Starfall critical error client side
The problem is you're assuming a net message has started when you start to write data to it. Returning in a wrapper net.start() will do nothing. You would have to throw an error to stop it getting to the first write method. This is the entire reason why it returns a boolean value to indicate whether you actually can start a net message, so you can stop before you write anything.

Sorry, but there's little way out of changing what you have to be correct. Tongue
Find
Reply
19-07-2015, 04:19 PM,
#6
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
RE: Starfall critical error client side
(19-07-2015, 12:12 PM)Person8880 Wrote: The problem is you're assuming a net message has started when you start to write data to it. Returning in a wrapper net.start() will do nothing. You would have to throw an error to stop it getting to the first write method. This is the entire reason why it returns a boolean value to indicate whether you actually can start a net message, so you can stop before you write anything.

Sorry, but there's little way out of changing what you have to be correct. Tongue

Ok then I'll make a helper function that will take a function as parameter where i'll put my net code. The helper function will run the function parameter only when it's net.start returns true.
Find
Reply
01-08-2015, 11:08 AM,
#7
JC2106 Offline
Leader Of SGX
****
Posts: 85
Threads: 34
Joined: Jun 2015
RE: Starfall critical error client side
For one I was no where near you at this time and two what do you mean my succeeds to crash them both at the same time. Are you implying that it was intentional? Because I assure you it was not. And I apologise for any inconvenience I may have unintentionally caused you.

~ The Raven

[Image: homer-backing-into-the-stargate.gif]
Find
Reply
01-08-2015, 03:03 PM,
#8
Yuri6037 Offline
TSCM Member
***
Posts: 216
Threads: 45
Joined: Feb 2015
RE: Starfall critical error client side
The Raven, I'm not blaming you at all.

I appologies if you understood I was blaming you... I just said that when you were near my old AI II, it was crashing it as well as all my screens using AI II lib. But now the problem is solved you should just have updating bugs only on your side but it would no longer crash everything.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.