robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 25 Mar 2015 09:15 PM |
I tried this; http://wiki.roblox.com/index.php?title=API:Class/DataModel/GetRemoteBuildMode It didn't work as anticipated based on the documentation. Alternatives?
-=Robo=- |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2015 09:17 PM |
| Check if the PlaceId is equal to 0. If it is equal to 0, it is a studio game. |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 25 Mar 2015 09:17 PM |
You want your game to know whether you are on Studio or playing it online?
That sounds like an awesome idea and it looks like that should work. Surprised it didn't. I personally don't know any other alternatives, sorry. |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2015 09:18 PM |
| GetRemoteBuildMode doesn't function properly. |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 25 Mar 2015 09:21 PM |
@randomletters
Problem with that is, if I remotely edit the place, the PlaceId property equates the ID of the place you launched it from. I probably butchered that sentence, but, say I launched it from here via the edit button; http://www.roblox.com/harv-test-place?id=207721280,
placeid would equal 207721280
that's problematic as far as flexibility is concerned
-=Robo=- |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 25 Mar 2015 09:26 PM |
Well if nothing anyone else suggests works you could always try to write to a data store which will error in studio.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 25 Mar 2015 09:28 PM |
There's quite a bit of things that will error when called in studio. I didn't want to have to resort to that because I considered it hacky. I guess that's the only viable option. gg roblox. lol
-=Robo=- |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2015 09:29 PM |
Use game.JobId
On an actual server it will contain a random string of letters and numbers. On studio, it will contain whitespace. |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 25 Mar 2015 09:29 PM |
| http://wiki.roblox.com/index.php?title=API:Class/DataModel/JobId |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 25 Mar 2015 09:31 PM |
Ahh, nice. Thanks guys.
-=Robo=- |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2015 09:35 PM |
| Alternatively, you can check for the existence of the MeshContentProvider. In studio, it exists and is a member of the datamodel. However, on an actual server it is nil. |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 29 Mar 2015 03:36 PM |
The meshcontentprovider thing doesn't seem to work anymore in servertest.
-=Robo=- |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 29 Mar 2015 03:38 PM |
JobId continues to work as anticipated.
-=Robo=- |
|
|
| Report Abuse |
|
|