|
| 30 Oct 2011 09:53 AM |
There have been a lot of crashes in my game lately. The output never says anything this is another one of roblox's "Online random errors" which we as scripts could really need the output for. I have an error scanner in my game but it takes 30 seconds just for it to notice and I need one that responds instantly if the script in my game crashes
All I know is that the error is somewhere around line 1325 and line 1355
wait(3) h.Value = "Reloading game" local people = game.Players:GetChildren() CleanTheMess() for i = 1, #people do if people[i]:findFirstChild("leaderstats") then if people[i]:findFirstChild("Dead") then if people[i].leaderstats:findFirstChild("Points") then if people[i].leaderstats:findFirstChild("Wins") then if people[i].Dead.Value == false then people[i].leaderstats.Points.Value = people[i].leaderstats.Points.Value + 50 people[i].leaderstats.Wins.Value = people[i].leaderstats.Wins.Value + 1 end end end end end end local spwns2 = game.Workspace.LobbyReturn:GetChildren() local people = game.Players:GetChildren() for i = 1, #people do local item = math.random(1,#spwns2) if people[i].Character ~= nil then people[i].Character.Torso.CFrame = CFrame.new(spwns2[math.random(1, #spwns2)].Position) end if people[i].Backpack:findFirstChild("Parachute") then people[i].Backpack.Parachute:remove() elseif people[i].Character:findFirstChild("Parachute") then people[i].Character.Parachute:remove() end end |
|
|
| Report Abuse |
|
|
beeep100
|
  |
| Joined: 16 May 2009 |
| Total Posts: 168 |
|
|
| 30 Oct 2011 09:56 AM |
Tools>Test>Start Sever In sever Tools>Test>Start Player I havent known any errors that havent been detected by this system =3 |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 09:57 AM |
You think I haven't tried that
The game usually works fine
Theres just something that happens when a player leaves the game some signal is interupted. |
|
|
| Report Abuse |
|
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 30 Oct 2011 10:39 AM |
You can use xpcall, or coroutines to check errors.
Also see ; http://wiki.roblox.com/index.php/Function_Dump/Core_Functions#xpcall_.28f.2C_err.29 |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 11:51 AM |
| xpcall doesn't catch compile errors, however. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 30 Oct 2011 12:13 PM |
| ^Coroutines would, wouldn't they? |
|
|
| Report Abuse |
|
|
| |
|
willkillu
|
  |
| Joined: 18 Feb 2010 |
| Total Posts: 1187 |
|
|
| 30 Oct 2011 12:42 PM |
its called print
well anyway it helps find them if you but it and the end and the begining of each colum |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 12:44 PM |
> its called print
The print function only writes the parameters you gave it in the output window. It doesn't catch errors. |
|
|
| Report Abuse |
|
|
willkillu
|
  |
| Joined: 18 Feb 2010 |
| Total Posts: 1187 |
|
|
| 30 Oct 2011 12:46 PM |
crazyman32 doesnt use a error detecting script.
he uses print |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 12:47 PM |
Use pcall:
pcall(function() me be script trololol i be errorin' ololololzes end)
Or coroutines:
successful, error = coroutine.resume(coroutine.create(function() i be errorin-my eror goz in the error variable as a string and successful will be false becuz I am errorin' end)) |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 12:48 PM |
| I use an error detecting function for my output feature in my SB. |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 12:49 PM |
> "crazyman32 doesnt use a error detecting script. he uses print"
Obviously, you have no idea what your talking about.
|
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 30 Oct 2011 12:52 PM |
"crazyman32 doesnt use a error detecting script. he uses print"
lololololol |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 01:08 PM |
Can you still catch errors with coroutine.wrap()()?
-[::ƧѡÎḾḠΰῩ::]- -[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 01:13 PM |
I think this is what wil meant:
print("cowz") if true then print("true") if hi then print("yay") end end
>cowz >true
It wouldn't print 'yay', since 'hi' is nil
but its inefficient |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 30 Oct 2011 01:19 PM |
'I use an error detecting function for my output feature in my SB.'
So do I. |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 01:26 PM |
| ***Theres something called 'Output' that detects errors..*** |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 05:39 PM |
@biker
No. I'm looking for a way to spot errors online in a game because the output isn't allowed to be visible in game :) |
|
|
| Report Abuse |
|
|