gergy008
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 7039 |
|
|
| 28 May 2015 10:02 PM |
I have made a custom loading screen.
In this code, I have tried to implement a thing where it downloads textures, but it doesn't work. The textures are just loaded when the player views them (It's very obvious they're downloading when it gets to it)
Is there something I'm not doing right?
game.ReplicatedFirst:RemoveDefaultLoadingScreen() local screen = game.ReplicatedFirst.LoadingGui:Clone() screen.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") screen.LoadingFrame.LoaderScript.Disabled = false
-- load a bunch of assets local assets = {77176863, 77178853, 77178961, 77177517, 77178079, 77179215, 77181816, 77182204, 77188373, 77183036, 77187285, 246619223, 10526794, 131573697, 232223678, 138129320, 157869722, 252497073, 252497112, 252497163, 252497179, 252497213, 252497238, 252497267, 252497298, 252497324} for _, asset in ipairs(assets) do game.ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. asset) end
local top = game.ContentProvider.RequestQueueSize local count = 0 local slice while game.ContentProvider.RequestQueueSize > 0 do count = game.ContentProvider.RequestQueueSize wait(0.33) end
screen.Parent = nil |
|
|
| Report Abuse |
|
|
nodnard2
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 596 |
|
|
| 28 May 2015 10:24 PM |
Anything in output?
http://www.roblox.com/Cardboard-Domino-Crown-item?id=240294006 HELP ME GET PUBLISHED |
|
|
| Report Abuse |
|
|
gergy008
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 7039 |
|
|
| 28 May 2015 10:27 PM |
Nothing at all. Nothing regarding the loading screen anyway.
Here's the client: --------------------------------------------- 04:25:45.317 - Use the new http api: yes 04:25:49.566 - ! Joining game '' place 0 at localhost 04:25:49.567 - Connecting to localhost:53640 04:25:49.762 - Connection accepted from 127.0.0.1|53640
(Things start getting irrelevant here) Waiting... Waiting... Loading taxes thing Running Tut|Script ---------------------------------------------
Here's the server: --------------------------------------------- 04:25:37.391 - Use the new http api: yes 04:25:41.806 - Started network server on 192.168.1.128|53640 04:25:41.806 - Started network server on 127.0.0.1|53640 04:25:41.930 - Successfully opened file - [ Removed ] 04:25:48.271 - New connection from 127.0.0.1|58212
04:25:48.437 - Replication: Can't create default object of type Workspace Player -1 added ---------------------------------------------
|
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 28 May 2015 10:30 PM |
| make sure the ids are of the textures. Other than that nothing much you can do :/ |
|
|
| Report Abuse |
|
|
nodnard2
|
  |
| Joined: 24 Jun 2011 |
| Total Posts: 596 |
|
|
| 28 May 2015 10:31 PM |
Nothing seems wrong :L
http://www.roblox.com/Cardboard-Domino-Crown-item?id=240294006 HELP ME GET PUBLISHED |
|
|
| Report Abuse |
|
|
gergy008
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 7039 |
|
|
| 28 May 2015 11:10 PM |
THis is what I thought, but the textures are very clearly loading as the player views it.
I wonder if it downloads into an internal cache and is then displayed on demand? |
|
|
| Report Abuse |
|
|
FootBa11
|
  |
| Joined: 16 Sep 2008 |
| Total Posts: 11501 |
|
|
| 28 May 2015 11:15 PM |
Try preloading each texture individually and see if that works.
Yeah it will take some time lol, but it may work. just to test to see if the service is working. |
|
|
| Report Abuse |
|
|