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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 1162 |
|
| |
|
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
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
| |
|
pketny
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 1162 |
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Jun 2016 01:23 PM |
Use FE and stop using the current camera
|
|
|
| Report Abuse |
|
|
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 |
|
|