Template talk:Service: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Blocco
No edit summary
>JulienDethurens
 
(21 intermediate revisions by 5 users not shown)
Line 6: Line 6:


::Yeah.  Thanks.  --<span style="color:#550909; border-color:#880909; border-size:1px; background-color:#dddddd;">Blocco</span> 20:36, 16 April 2010 (UTC)
::Yeah.  Thanks.  --<span style="color:#550909; border-color:#880909; border-size:1px; background-color:#dddddd;">Blocco</span> 20:36, 16 April 2010 (UTC)
::Except that it's wrong. How about "Game:GetService(...)"? :) --[[User:GoldenUrg|GoldenUrg]] 03:40, 17 April 2010 (UTC)
::: Hmm...  didn't see that.  GoldenUrg is right.  It's either Game:Service("name") or Game:GetService("name"). --<span style="color:#550909; border-color:#880909; border-size:1px; background-color:#dddddd;">Blocco</span> 16:08, 17 April 2010 (UTC)
::::RunService creates a new service, which you must do in order to create the service. This is what I thought we were referencing as opposed to "Instance.new", which will not work with a Service. GetService will return a service with the name argument, however the service must be running first. For example, the Debris service is not by default running, therefore to create it in a script you must call it with RunService. ---[[User:Mr Doom Bringer|Mr Doom Bringer]] 17:59, 18 April 2010 (UTC)
::::::RunService is, by itself, a service.  RunService deals with running, pausing and stopping the game.  Game::RunService is not valid, according to the Object Browser.  I would use Game::service. --<span style="color:#550909; border-color:#880909; border-size:1px; background-color:#dddddd;">Blocco</span> 22:20, 18 April 2010 (UTC)
::::On the production servers, I get an error "RunService is not a valid member of DataModel", if this is something on test servers I don't think we should put it on the wiki yet. GetService already creates the service if it didn't exist or returns it otherwise (that's why you don't just index Game). --[[User:GoldenUrg|GoldenUrg]] 02:42, 19 April 2010 (UTC)
:::Ha ha haaaaa found it. [http://blog.roblox.com/?p=126], need to research before I start making claims :D  Swapping now. ---[[User:Mr Doom Bringer|Mr Doom Bringer]] 19:14, 19 April 2010 (UTC)
::::''service'' is deprecated. [[GetService (Function)]] replaces it. Also, why not just make a link to it? --[[User:Anaminus|Anaminus]] ([[User talk:Anaminus|Talk]] | [[Special:Contributions/Anaminus|contribs]]) 19:34, 22 April 2010 (UTC)
== Stop Capitalizing the First Letter of Words in Links ==
Considering this page is protected for <del>some weird reason</del> <ins>no reason at all</ins>, can an editor edit the link to not use uppercase for the first letter of the words in the 'Game Service' link? Also, I think "or as a child of game" should be reworded into "or as a child of the game". <div style="border-top:1px dashed;padding-bottom:.5em;height:1em"><div style="font-size:75%;float:left">[[User:JulienDethurens|JulienDethurens]]</div><div style="font-size:75%;float:right">2 February 2012</div></div>

Latest revision as of 22:20, 2 February 2012

One big flaw

"you have to call it with ..."
'...' is nothing. Wouldn't our viewers want to know what to call it with? --Blocco 21:19, 14 April 2010 (UTC)

That better? ---Mr Doom Bringer 20:01, 16 April 2010 (UTC)
Yeah. Thanks. --Blocco 20:36, 16 April 2010 (UTC)
Except that it's wrong. How about "Game:GetService(...)"? :) --GoldenUrg 03:40, 17 April 2010 (UTC)
Hmm... didn't see that. GoldenUrg is right. It's either Game:Service("name") or Game:GetService("name"). --Blocco 16:08, 17 April 2010 (UTC)
RunService creates a new service, which you must do in order to create the service. This is what I thought we were referencing as opposed to "Instance.new", which will not work with a Service. GetService will return a service with the name argument, however the service must be running first. For example, the Debris service is not by default running, therefore to create it in a script you must call it with RunService. ---Mr Doom Bringer 17:59, 18 April 2010 (UTC)
RunService is, by itself, a service. RunService deals with running, pausing and stopping the game. Game::RunService is not valid, according to the Object Browser. I would use Game::service. --Blocco 22:20, 18 April 2010 (UTC)
On the production servers, I get an error "RunService is not a valid member of DataModel", if this is something on test servers I don't think we should put it on the wiki yet. GetService already creates the service if it didn't exist or returns it otherwise (that's why you don't just index Game). --GoldenUrg 02:42, 19 April 2010 (UTC)
Ha ha haaaaa found it. [1], need to research before I start making claims :D Swapping now. ---Mr Doom Bringer 19:14, 19 April 2010 (UTC)
service is deprecated. GetService (Function) replaces it. Also, why not just make a link to it? --Anaminus (Talk | contribs) 19:34, 22 April 2010 (UTC)

Stop Capitalizing the First Letter of Words in Links

Considering this page is protected for some weird reason no reason at all, can an editor edit the link to not use uppercase for the first letter of the words in the 'Game Service' link? Also, I think "or as a child of game" should be reworded into "or as a child of the game".

2 February 2012