digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 13 Aug 2013 06:22 AM |
How would I make an output window? I mean one that actually tells me where the errors are, not just print()s, error()s and assert()s - I'm making a Script Builder and I want people to be able to find out where errors in their scripts are.
I've heard you can do it with the ScriptContext::Error event, but that's locked. Apparently there's a 'model hack' which allows you to do it, but I don't know how to do that.
I want to be able to catch errors similar to the example error shown in this page:
http://wiki.roblox.com/index.php/Error_(Event) |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2013 06:26 AM |
If you're looking for an in game error debug, use ROBLOX's one.
Possibru. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 13 Aug 2013 06:26 AM |
Okay, I'm on the wrong account.
'PsudeoPlayer' is the account where I have my Script Builder. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 13 Aug 2013 06:27 AM |
@Luke
Ew, no.
Why should I use their ugly code, and modify it every time it starts just so I can get output errors? |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
| |
|
As8D
|
  |
| Joined: 24 Dec 2009 |
| Total Posts: 2907 |
|
|
| 13 Aug 2013 07:27 AM |
As I said in ze IRC thing:
local succ, errM = ypcall(function()
Your script source here!
end)
while wait(0.1) do if not succ and errM then
Do stuff here, like printing errM (the error message)
succ, errM = true, nil end end
- As, there's always a chance that you cannot leave the claws of evil. I mean... KeyDown! |
|
|
| Report Abuse |
|
|