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: Is it possible to check if textures have loaded?

Previous Thread :: Next Thread 
TheBreadlnspector is not online. TheBreadlnspector
Joined: 30 Apr 2012
Total Posts: 2102
30 Sep 2015 12:46 PM
or even terrain?

Recently, textures are taking crazy long to load. I was wondering if it was possible to make a loading intro of some sort that would stay there until all textures have loaded.


TBI
Report Abuse
gooey333 is not online. gooey333
Joined: 24 Mar 2013
Total Posts: 1208
30 Sep 2015 12:57 PM
Use preload
Report Abuse
secret6timb1 is not online. secret6timb1
Joined: 11 Sep 2013
Total Posts: 1817
30 Sep 2015 12:57 PM
get a stopwatch, join the game, count how many seconds it takes for everything to load.

then make a loading bar corresponding to that time.
Report Abuse
secret6timb1 is not online. secret6timb1
Joined: 11 Sep 2013
Total Posts: 1817
30 Sep 2015 12:57 PM
@gooey333

I thought you could only do that for sounds e.e.
Report Abuse
TheBreadlnspector is not online. TheBreadlnspector
Joined: 30 Apr 2012
Total Posts: 2102
30 Sep 2015 01:00 PM
oh yeah, not a bad idea


TBI
Report Abuse
EradicateTheNoobs is not online. EradicateTheNoobs
Joined: 03 Feb 2012
Total Posts: 1314
30 Sep 2015 01:01 PM
@Secret except that everyone has a different computer


The noobs shall be eradicated.
Report Abuse
TheBreadlnspector is not online. TheBreadlnspector
Joined: 30 Apr 2012
Total Posts: 2102
30 Sep 2015 01:02 PM
I guess the textures loading would generally be the same.


TBI
Report Abuse
rubene45 is not online. rubene45
Joined: 08 May 2012
Total Posts: 333
30 Sep 2015 01:06 PM
All depends of the computer and internet speed
Is not the same a guy which have a gaming computer and a high speed internet than a guy with a 2008 pc with low speed internet...
But good idea.
Report Abuse
Luxurize is not online. Luxurize
Joined: 31 Mar 2015
Total Posts: 1289
30 Sep 2015 01:09 PM
Renderstepped?
Tick?


“Insane isn't always black or white. We're all pathological, in our own ways.”
Report Abuse
BJCarpenter is not online. BJCarpenter
Joined: 04 Nov 2008
Total Posts: 4416
30 Sep 2015 01:15 PM
No idea,

But here is one way to wait for Sounds to load:

local ContentProvider = Game:GetService("ContentProvider")

local function LoadAssets(AssetList)
-- Takes an asset list and preloads it. Will not wait for them to load.

--ContentProvider:Preload("http://www.roblox.com/asset/?id=155403867") -- Ghost Ship. Doesn't work.

for _, AssetId in pairs(AssetList) do


ContentProvider:Preload(AssetId)
end
end


AsList = {}
list = Workspace.Sound.FX_Sounds:GetChildren()
num = 0
for _, Sound in pairs(list) do
num=num+1
AsList[num] = Sound.SoundId
Sound.Volume = .5


end

--list = Workspace.Sounds.FX_Sounds:GetChildren()

--for _, Sound in pairs(list) do
-- num=num+1
-- AsList[num] = Sound.SoundId
-- Sound.Volume = .5

-- end







LoadAssets(AsList)

--LoadAssets({2253543, 2434541, 5133543, 2423433, 41143243, 2453865, 21433365, 2154549})



local function WaitForAssetsToLoad()
-- Yields until all requested assets are loaded.

while (ContentProvider.RequestQueueSize > 0) do
wait(1)
end
end


WaitForAssetsToLoad()
if false then

for _, Sound in pairs(list) do
print(Sound)
Sound:Play()

wait(2)
end
end -- false

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