Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Downloading (https://forums.graalonline.com/forums/showthread.php?t=67778)

excaliber7388 07-31-2006 11:29 PM

Downloading
 
I could swear I saw some servers with this.
When you first log on, all the images the player will need (or at least the large ones) are downloaded so they don't lag later.
How is this done without showing the image then hiding it, and how would I make use of a gui that would come up when the player is downloading it?
edit:
also, how could I display something that tells the player they are downloading something?

Malinko 08-01-2006 12:42 AM

Quote:

Originally Posted by excaliber7388
I could swear I saw some servers with this.
When you first log on, all the images the player will need (or at least the large ones) are downloaded so they don't lag later.
How is this done without showing the image then hiding it, and how would I make use of a gui that would come up when the player is downloading it?
edit:
also, how could I display something that tells the player they are downloading something?

Good question! I think all worlds should on this route, it would be much better.

Though, to answer this good question, I will direct you to a forum thread created by petro1212 (Angelus).

http://forums.graalonline.com/forums...ad.php?t=63734

excaliber7388 08-01-2006 02:49 AM

ugh, that's not a ton of help. Unless all you have to do is create the file and every thing else just happens :\
I wanted to be able to trigger it at certain times, or when an images is downloading, it would show a progress bar, etc

napo_p2p 08-01-2006 02:52 AM

Quote:

Originally Posted by excaliber7388
Unless all you have to do is create the file and every thing else just happens :\

Yup, pretty much.

Quote:

I wanted to be able to trigger it at certain times, or when an images is downloading, it would show a progress bar, etc
That's a little bit different from what (I thought) you were originally asking for. The update package is the best and easiest way to go though.

excaliber7388 08-01-2006 03:00 AM

Quote:

Originally Posted by napo_p2p
Yup, pretty much.

That's a little bit different from what (I thought) you were originally asking for. The update package is the best and easiest way to go though.

Okay, and for the update packages, how do you tell it what to update?
I don't quite get how it knows to go from the base to another text file :confused:

ApothiX 08-01-2006 04:09 PM

Quote:

Originally Posted by excaliber7388
I wanted to be able to trigger it at certain times, or when an images is downloading, it would show a progress bar, etc

You're looking for these three variables then:

Quote:

downloadfile - string (read only)
downloadpos - integer (read only)
downloadsize - integer (read only)


All times are GMT +2. The time now is 03:30 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.