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 » Scripters
Home Search
 

Re: TestService

Previous Thread :: Next Thread 
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
17 Feb 2012 11:05 PM
Is it new? Is it old? It isn't preliminary and it has some nice methods that seem to let you print stuff in the output.

What is it for?

Oh, and btw... none of its methods/events/properties are protected.. :3


Look at it in the object browser, it has stuff that really seems interesting.

I think you might be able to set some physics stuff on the server with it (there are some properties that look oddly like the ones in the settings). And you can also have fun with plugins by printing your text in blue! (not black, nor red, BLUE! :D)
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
17 Feb 2012 11:08 PM
It didn't exist in the previous release! (well, at least, if it did, then it wasn't present in Anaminus's ReflectionMetadata, because I had added every object I saw to the class reference on the wiki and the TestService isn't on it)
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
17 Feb 2012 11:41 PM
yaaay!

You can get blue, red and yellow text!!! :D

That service is awesome!
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
18 Feb 2012 12:02 AM
It's probably so you can use it for plugins.
Not too much of a point, since you can use "print", but, it adds a nice touch.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
18 Feb 2012 12:05 AM
@coplox

"Not too much of a point" ?!?!?

But it's awesome! You can print warnings in yellow, and you can print errors without requiring to stop your plugin. Errors don't show in the output if used in pcall or coroutines, and if you use it in your plugin, then your plugin will stop running. As for creating a script to do it, what if the game isn't running?
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
18 Feb 2012 12:23 AM
It's useful because I don't have to write my own unit test code anymore. Using it for what it was designed... who'd have thought.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
18 Feb 2012 12:27 AM
@stravant

I know I shouldn't use it for what it hasn't been designed for, but, really, being able to print yellow, red and blue text is useful.
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
18 Feb 2012 12:28 AM
"Not too much of a point" ~= "No point".

What I was saying is, it isn't useless, but it isn't dynamic lighting either.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
18 Feb 2012 12:29 AM
Oh, and, what are you going to do about your signal class in the RbxUtility library? Are you still going to keep it, even though there now are BindableEvents? I haven't used them yet, but they seem to have the same functionality. You can fire it and connect listeners/handlers/connections/receivers to it.
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
18 Feb 2012 12:31 AM
They still don't look like normal events unlike mine. And mine are intended to be lightweight Lua-side things. They have almost 0 cost (Don't create any Roblox objects) until you actually connect something to them.

I may change the internal implementation to be backed by the bindable events, but I still find them useful.
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
18 Feb 2012 12:32 AM
My question is, does the event/method stay bound when the "BindableEvent/Method" Instance is removed?
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
18 Feb 2012 12:37 AM
@Stravant

But ROBLOX's implementation of it is in C++. :)
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
18 Feb 2012 12:41 AM
And ROBLOX's implementation of it is official.

Wait, yours is official too... :/

And then there are CustomEvents too, but they only accept numbers.


I'm not sure what game ROBLOX is playing at right now, with CustomEvents and BindableEvents. I don't get what they're trying to do. When CustomEvents were released, I found them completely useless and not worth using, because they worked exactly like a NumberValue but had to use a receiver.

Now, there are BindableEvents, which are way better than these "custom events", which are not really custom, since you can only send them numbers between 0 and 1..

Ok, so which am I supposed to use? The changed event of a value, CustomEvents, BindableEvents, or RbxUtility's Signal class? O_e

Too much kinds of events! Haalp!

Anyways, I'm going to modify my signal class right now to use these BindableEvents. Yay for connection handling on C++ side!
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
18 Feb 2012 12:53 AM
Hum...

How do you get the fire method to send the arguments and how do you recover them with the Event event?

I tried this in the command bar:

> test = Instance.new('BindableEvent')
> test.Event:connect(function(a,b,c) print(a,b,c) end)
> test:Fire({2, 5, 12}, 6, 1, 4, 1)
nil nil nil


It was just random stuff, really. I just wanted to see what it would print. :/
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
18 Feb 2012 01:00 AM
I think it's just broken at the moment. I tested it when it first came out and it worked as expected.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
18 Feb 2012 01:20 AM
Broken? Why would they release it, if it was broken?
Report Abuse
Legend26 is not online. Legend26
Joined: 08 Sep 2008
Total Posts: 10586
18 Feb 2012 08:13 AM
Know how we're supposed to use BindableFunction? The BindableEvent object is straightforward, but how are we supposed to use a callback?
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
18 Feb 2012 09:55 AM
The explorer icon for it is a check mark O_o
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
10 Apr 2012 01:56 AM
Bumping this thread.

Yes, I'm bumping a somewhat old thread (not really old at all, if you look at the dates). Why? Because there has just been a blog post about it. And bumping older threads is sometimes better than creating a new one.

And yeah, I'd suggest reading the blog post.

Any idea of what kinds of things this could be used for? I'm sure we can find some nice testing uses for it.
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
10 Apr 2012 06:48 AM
I wonder if it's actually a "test service" or if it is a service used to test.

o_0
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
10 Apr 2012 07:06 AM
This was designed when plugins were designed.
Report Abuse
HotThoth is not online. HotThoth
Forum Moderator
Joined: 24 Aug 2010
Total Posts: 1176
10 Apr 2012 12:31 PM
TestService is mostly for us; lets us create automated testing suites using Lua from .rbxl levels which we can plug in to a C++ framework.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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