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 » Roblox » Suggestions & Ideas
Home Search
 

Re: Script Analysis: WaitForChild() Highlighting

Previous Thread :: Next Thread 
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
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
PenguinvilleRescue1 is not online. PenguinvilleRescue1
Joined: 06 Nov 2011
Total Posts: 5438
22 Jul 2015 08:08 AM
I like this.
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
22 Jul 2015 08:15 AM
Support even though someone can make a plugin for this.
Report Abuse
FrozenSmite is not online. FrozenSmite
Joined: 17 Jul 2013
Total Posts: 2242
22 Jul 2015 08:38 AM
+Support
:D
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
DragonOfWar900 is not online. DragonOfWar900
Joined: 11 May 2011
Total Posts: 1508
22 Jul 2015 09:44 AM
Support
Report Abuse
Flufska is not online. 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 is not online. 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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
22 Jul 2015 04:26 PM
Support, but I usually do my pre-cautions so I don't encounter these problems.
Report Abuse
Casadis is not online. Casadis
Joined: 05 Aug 2013
Total Posts: 115
22 Jul 2015 04:43 PM
Great idea!
Report Abuse
IsolatedDesire is not online. IsolatedDesire
Joined: 05 Feb 2014
Total Posts: 1695
22 Jul 2015 04:48 PM
hi again
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
22 Jul 2015 05:24 PM
Hai, long time no see.

Keep the support up guys. <3
Report Abuse
fight4money is not online. fight4money
Joined: 25 Dec 2013
Total Posts: 23
22 Jul 2015 05:35 PM
GREAT IDEA!!!!
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
25 Jul 2015 07:06 AM
More support guys!
Report Abuse
XenonLi is not online. 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
SneakyDudeman is not online. SneakyDudeman
Joined: 30 Mar 2012
Total Posts: 7460
25 Jul 2015 08:23 AM
support
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
29 Jul 2015 05:40 AM
>Implying roblox would listen to someone not in rbxdev
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
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
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
29 Jul 2015 10:12 AM
hehe support

"My Life is going Good... but..."
Report Abuse
Ghorre is not online. 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 is not online. 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
WolfgangVonPrinz is not online. WolfgangVonPrinz
Joined: 24 Oct 2013
Total Posts: 4656
31 Jul 2015 02:25 AM
Great idea.

Women are like fine wine, I can't get their tops off
Report Abuse
2I6 is not online. 2I6
Joined: 03 Jan 2015
Total Posts: 1564
31 Jul 2015 02:37 AM
Support, really good idea!
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
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
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • 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