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: game works in server test and solo test..not in game?

Previous Thread :: Next Thread 
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
24 Jun 2016 10:40 AM
It glitches once it resets your character and gamemode in the actual game, but works fine in test server with test player and solo test.
Does anyone know how I can debug this?
Report Abuse
pketny is not online. pketny
Joined: 27 Dec 2010
Total Posts: 1162
24 Jun 2016 10:41 AM
1) Never test in play solo.

2) Never test in play solo.

3) Code snippet? hierarchy? output?
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
24 Jun 2016 10:43 AM
1. game is run through localscripts only so doesn't really matter
2. also tested in test server
3. no output
Report Abuse
pketny is not online. pketny
Joined: 27 Dec 2010
Total Posts: 1162
24 Jun 2016 10:43 AM
Code snippet? hierarchy?
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
24 Jun 2016 10:51 AM
its in current camera, i have no idea how to begin debugging it since it works properly in test server
Report Abuse
eRanged is not online. eRanged
Joined: 15 Jun 2013
Total Posts: 9746
24 Jun 2016 10:53 AM
put prints everywhere?


Report Abuse
pketny is not online. pketny
Joined: 27 Dec 2010
Total Posts: 1162
24 Jun 2016 11:06 AM
Code snippet?
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
24 Jun 2016 11:10 AM
as pketny said, NEVER test in play solo

you could be testing for hours with what you think will work, only to see you have to rewrite tons of code when you play online


Add 13,000 posts
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
24 Jun 2016 11:22 AM
My game is only localscripts, everything is handled by localscripts. Testing in solo would be fine for that purpose

As long as you know the difference between testing in solo and how it will treat your scripts, testing in solo is fine.

local camera = workspace.CurrentCamera
local map = camera:WaitForChild("map")

map:WaitForChild("Turrets").ChildAdded:connect(function(turret)
print('TURRETS ADDED')


this will not print when the turrets are added, although works fine the first time

it will not print

print('RUNTHRU COMPLETE') at the bottom of the script, outside of all functions although it does the very first time

the script is inside startergui and thus is a new script each time the character reloads, and worked before.
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
24 Jun 2016 11:46 AM
it works speratically

won't work 1 game, reset it works, resset again it wont work, reset again it wont work, reset again it works.
Report Abuse
pketny is not online. pketny
Joined: 27 Dec 2010
Total Posts: 1162
24 Jun 2016 11:46 AM
Put a print("some unique text here") before and after the line:

local map = camera:WaitForChild("map")


With 2 different unique strings, copy paste output.

You can indeed test in play solo if you know what you are doing.
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
24 Jun 2016 11:49 AM
I use playsolo all the time and my code always works when I go to online. ;)
But that's because I understand how the server and client work.
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
24 Jun 2016 01:22 PM
it prints

not yet loaded
and

"map" map.Name
correctly even when not functioning
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
24 Jun 2016 01:22 PM
i just found it works if you start a round before placing a turret, i think that can help me solve it thank you
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
24 Jun 2016 01:23 PM
Use FE and stop using the current camera


Report Abuse
pketny is not online. pketny
Joined: 27 Dec 2010
Total Posts: 1162
24 Jun 2016 03:19 PM
Ye, listen to TimeTicks, because he's never wrong....


LOLOLOLOL
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