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: Depicting if you're on studio

Previous Thread :: Next Thread 
robocu3 is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
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 is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
25 Mar 2015 09:18 PM
GetRemoteBuildMode doesn't function properly.
Report Abuse
robocu3 is not online. 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 is not online. 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 is not online. 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
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
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 is not online. 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 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
25 Mar 2015 09:31 PM
Ahh, nice. Thanks guys.

-=Robo=-
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
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 is not online. 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 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
29 Mar 2015 03:38 PM
JobId continues to work as anticipated.

-=Robo=-
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