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 » Scripting Helpers
Home Search
 

Re: Play Solo vs. Online Modes

Previous Thread :: Next Thread 
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2013 03:29 PM
What are the differences between these modes, as to how scripts function?

Because on numerous occassions I have had scripts that work in play solo mode but not in online mode.

I am pretty sure that in play solo mode all scritps run on the client, but the script that has this problem of working only in play solo mode is a LocalScript.

So is there something different about how the script works in play solo mode, like the variables (both local and global) or anything else?
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
03 Jan 2013 03:33 PM
Since there is a server in online mode, lag tends to be an issue in certain scripts. what type of script are you making?
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
03 Jan 2013 03:36 PM
Heres an example of a possible error:

Sometimes in online mode, a script executes before all child objects in a parent object load. Indexing these child objects could raise an error.
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
03 Jan 2013 03:41 PM
hmm.. that seems like it may be happening. I am making a gui that consists of a shop, a donate system, a player viewing system, etc.
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
03 Jan 2013 03:44 PM
I make GUIs, and sometimes when they work in build but not in online mode, I simply add a wait() at the start of the script.
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
03 Jan 2013 04:05 PM
on Online mode your client is connected to a server but in solo mode it is only a client, this will do so not everything will work on both online and solo
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Jan 2013 04:08 PM
PlaySolo Mode => Connected To The Client
Server/Online Mode => Connected To The Server

More Information:

When connected to the client, all scripts run LOCALLY, since the client (in the case is RobloxStudio.exe) is on your computer
When connected to the server, normal scripts run normally and local scripts run locally (in this case, the host is roblox.com)
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
03 Jan 2013 04:10 PM
actually, server is not connected to host.roblox.com

server is also connected to your computer, the client. both the server and the client are run on your computer.

server scripts are run locally too, they just have a different client.

¬ LuaLearners Elite/Writer
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Jan 2013 04:13 PM
I never said host.roblox.com

The server is not connected to your computer, only the client.

Here's why:
What's the use of the server connecting to your computer.The client does the "computer controlled" stuff while the server sends and receive packets from the client, usually in little endian (Off Topic)

Unless, by connecting to the computer, you meant to the client from the computer?
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
03 Jan 2013 04:13 PM
furthermore, servers can have a localplayer/currentcamera.

¬ LuaLearners Elite/Writer
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
03 Jan 2013 04:14 PM
yeah oops. i misread that as host.roblox.com

¬ LuaLearners Elite/Writer
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Jan 2013 04:16 PM
doombringer, that's why roblox invented the local script. So it can communicate with your client instead of all clients at the same time.

It's hard to explain bit I'm sure there is some palce that has this.

The reason i know this:
I am some-what experienced with packets and packet editing as well as the communication links between client and server.
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
03 Jan 2013 04:22 PM
i believe we have a miscommunication.

when I say server, i mean test server/player.

¬ LuaLearners Elite/Writer
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Jan 2013 04:23 PM
Ohh LOL my bad, sorry.
Fail me, fail me so bad.....
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
03 Jan 2013 04:24 PM
nah it was my bad. 'server' is an ambiguous term.

¬ LuaLearners Elite/Writer
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Jan 2013 04:25 PM
True, but if I read it twice, I would see that you meant the server/player.
Report Abuse
rayzan00 is not online. rayzan00
Joined: 07 Jul 2010
Total Posts: 7
03 Jan 2013 04:39 PM
soooo...is solo mode like minecraft LAN? where if there are CPUS on the same network as you and only they can join?
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
03 Jan 2013 04:41 PM
nope.

i think LAN in roblox is possible. have you ever heard of RBXPri?

¬ LuaLearners Elite/Writer
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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