generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Is there any script that detects errors?

Previous Thread :: Next Thread 
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
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 is not online. 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
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
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
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
30 Oct 2011 10:37 AM
@beep

most of mine

~Pompey
Report Abuse
nate890 is not online. 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
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10017
30 Oct 2011 11:51 AM
xpcall doesn't catch compile errors, however.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
30 Oct 2011 12:13 PM
^Coroutines would, wouldn't they?
Report Abuse
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10017
30 Oct 2011 12:40 PM
Yes
Report Abuse
willkillu is not online. 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
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10017
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 is not online. 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
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
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
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
30 Oct 2011 12:48 PM
I use an error detecting function for my output feature in my SB.
Report Abuse
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10017
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 is not online. 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
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
30 Oct 2011 01:08 PM
Can you still catch errors with coroutine.wrap()()?

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
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 is not online. 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
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
30 Oct 2011 01:26 PM
***Theres something called 'Output' that detects errors..***
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image