|
| 22 Jul 2015 08:05 AM |
Hello all,
Too Long; Don't Read below.
I am here to propose a new feature to extend the existing capabilities of the powerful debugging tool, Script Analysis.
Script Analysis was introduced quite a while ago, and brang an advanced debugging tool, that solved countless headaches for developers. It notified the developer if he/she, let's say, forgot to put a bracket. Or gave advice for improving the scripts performance/efficiency by placing a 'local' variable in front.
However, I know a lot of developers have been very, annoyed by :WaitForChild(). At the moment, WaitForChild() is a very efficient and useful function which allows us to properly wait for objects without breaking.
But, a lot of us these days, make spelling mistakes within WaitForChild(). And we have scripts which have 100's, 1000's of lines of code. When we go to test out code, we see we have no errors, but nothing happens. The script is constantly yielding, because of a mis-spelt argument in WaitForChild, which brings countless headaches. And endless searching.
If searching doesn't work, developers need to put "print()" after each and every line to see where it stops. But, if we had 100's and 1000's lines of code, it would be a pain and in practical. So this is where my idea concept comes in.
A new script context color, a dark green, used to show that the object cannot be found at that moment. This is how it would work.
When I type:
local RemoteEvent = game.ReplicatedStorage:WaitForChild("RemoveEvent") --I spelt Remote wrong.
ROBLOX Studio, would in the background, scan ReplicatedStorage for that specific object, if it is not found, the entire line would be highlighted in dark green. The text in Script Analysis would be:
"Unable to locate 'RemoveEvent' in 'game.ReplicatedStorage'. Did you spell something wrong?"
Something like that would be suitable.
But, What About When The Object Isn't There On Purpose?
So, we want to wait for a new object created by a script. This can easily be solved. On the line where the green underlining is displayed, the user right clicks, and an option would be added called: "Dismiss Warning", something like that.
That would remove the warning, but if the line is changed, the green highlighting would come back, just in case.
Too Long; Don't Read: Add a new green context color for showing that an object doesn't exist at that moment.
This concludes my concept of an idea. It is more centered towards developers. HOWEVER, players can support this as it will decrease the time developers spend fixing bugs.
Please tell me your suggestions/ideas/reports about this idea.
Thanks for reading!
#Support |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jul 2015 08:15 AM |
| Support even though someone can make a plugin for this. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jul 2015 09:39 AM |
Support
"Support even though someone can make a plugin for this."
No, you cannot. Plugins have no way of accessing what line you're on, nor can they highlight WaitForChild. |
|
|
| Report Abuse |
|
|
| |
|
Flufska
|
  |
| Joined: 25 Mar 2010 |
| Total Posts: 4466 |
|
|
| 22 Jul 2015 09:45 AM |
Didn't read it but support
- and tips his hat |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 22 Jul 2015 03:40 PM |
Never use pcalls either. They hide errors instead of fixing them.
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
|
| 22 Jul 2015 04:26 PM |
| Support, but I usually do my pre-cautions so I don't encounter these problems. |
|
|
| Report Abuse |
|
|
Casadis
|
  |
| Joined: 05 Aug 2013 |
| Total Posts: 115 |
|
| |
|
| |
|
|
| 22 Jul 2015 05:24 PM |
Hai, long time no see.
Keep the support up guys. <3 |
|
|
| Report Abuse |
|
|
| |
|
| |
|
XenonLi
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 5013 |
|
|
| 25 Jul 2015 08:13 AM |
isn't it supposed to highlight the line that's running when you pause it
that would be more useful
especially considering the purpose of waitforchild is to wait for a child that doesn't exist yet |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Jul 2015 05:40 AM |
| >Implying roblox would listen to someone not in rbxdev |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2015 06:10 AM |
Hopefully I'll be in RbxDev... Very soon... Very soon indeed. Well maybe.
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2015 10:12 AM |
hehe support
"My Life is going Good... but..." |
|
|
| Report Abuse |
|
|
Ghorre
|
  |
| Joined: 15 Feb 2015 |
| Total Posts: 160 |
|
|
| 30 Jul 2015 02:31 AM |
Supported
Also... Maybe at runtime, when WaitForChild yields forever (or simply too long - like for 60 seconds or so) a warning could show up saying something along: "script_object#line: WaitForChild yields longer than 60 seconds"
That would also be usefull and I think way easier to implement in Studio...
GOD is a DJ |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 30 Jul 2015 02:40 AM |
@ghor
that is also a great idea, which would be a great add on to OP's idea.
this would save me a lot of headache, so i fully support! |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 02:25 AM |
Great idea.
Women are like fine wine, I can't get their tops off |
|
|
| Report Abuse |
|
|
2I6
|
  |
| Joined: 03 Jan 2015 |
| Total Posts: 1564 |
|
|
| 31 Jul 2015 02:37 AM |
| Support, really good idea! |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 03:28 PM |
Keep up the support guys!
(By the way, my last campaign worked! Everyone supporting my previous campaign succeeded in fulfilling the goals of it, which was to change the icons for gamepasses. But it even reached even further! Link: http://www.roblox.com/Forum/ShowPost.aspx?PostID=159443142 ).
Let's make the same thing happen here!
Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784 |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 03:42 PM |
It doesn't really matter how many people contribute to supporting, what really matters is timing (a mod has to see it, a mod who likes it, the more supports the more likely it'll be up at the time), and it has to be a good idea which they think is worth it.
They will probably already planning to add the image changing eventually any, you probably just boosted it's priority.
For example I have 313 supports for GravityPoint, all I can do is hope that if I continue to get supports they'll eventually see how important/wanted it is. But so far no luck, and probably won't in the future (however if any of you haven't supported it yet and you'd like to it's here:
www.roblox.com/Forum/ShowPost.aspx?PostID=150177730
) |
|
|
| Report Abuse |
|
|