Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-24-2004, 01:08 AM
middo middo is offline
VHE Monkey
middo's Avatar
Join Date: Aug 2002
Location: California
Posts: 327
middo is on a distinguished road
Send a message via AIM to middo
Downloadsize

Here is a snippet from a test I am conducting for a script.

this.var=downloadsize;
say2
DL SIZE: #v(downloadsize)#b
DL SIZE #s(downloadsize)#b
DL SIZE #v(this.var)#b
DL NAME: #D#b
DL PROGRESS: #v(downloadpos);

I have gotten everything to work except the variable; downloadsize.
The say2 is set to only come up when a download is in progress, but downloadsize is always blank (I just delete the tileset from the server im working with and relog, and it gives me the say2)
I tried different methods but nothing works.

I found this inside the newfeatures txt

new scripting variable 'downloadsize': when the
graal client is currently downloading a big file
(>32k) then this variable contains the size of the
file; using downloadpos, downloadsize and #D you can
check if a file is currently downloaded can
display a process bar or similar

No luck yet.
Reply With Quote
  #2  
Old 12-24-2004, 02:37 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
I do not think downloadsize works correctly. Have you tried your script with the Graal 3 client?
__________________
Skyld
Reply With Quote
  #3  
Old 12-24-2004, 03:33 AM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by middo
Here is a snippet from a test I am conducting for a script.

this.var=downloadsize;
say2
DL SIZE: #v(downloadsize)#b
DL SIZE #s(downloadsize)#b
DL SIZE #v(this.var)#b
DL NAME: #D#b
DL PROGRESS: #v(downloadpos);

I have gotten everything to work except the variable; downloadsize.
The say2 is set to only come up when a download is in progress, but downloadsize is always blank (I just delete the tileset from the server im working with and relog, and it gives me the say2)
I tried different methods but nothing works.

I found this inside the newfeatures txt

new scripting variable 'downloadsize': when the
graal client is currently downloading a big file
(>32k) then this variable contains the size of the
file; using downloadpos, downloadsize and #D you can
check if a file is currently downloaded can
display a process bar or similar

No luck yet.

Check forums before posting, I've already posted this problem a while ago http://forums.graalonline.com/forums...ad.php?t=56117
__________________

Reply With Quote
  #4  
Old 12-24-2004, 07:47 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
downloadsize/downloadpos/#D should apply to all files or something smaller like >=16k
Reply With Quote
  #5  
Old 12-25-2004, 01:41 AM
JudgeDurst JudgeDurst is offline
Malorian
JudgeDurst's Avatar
Join Date: Jan 2002
Posts: 145
JudgeDurst is on a distinguished road
Maybe something could be implemented that can be used to specify the file size minimum before it sets the download variables.. or something.

Probably a bad idea I guess but it is an idea.
__________________
MrWorry, Lover of Maloria
Reply With Quote
  #6  
Old 12-26-2004, 03:48 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by JudgeDurst
Maybe something could be implemented that can be used to specify the file size minimum before it sets the download variables.. or something.

Probably a bad idea I guess but it is an idea.
It sounds like a good idea. maybe a server option?
downloadsize=16000 or something.
Reply With Quote
  #7  
Old 12-26-2004, 01:46 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally Posted by Slash-P2P
It sounds like a good idea. maybe a server option?
downloadsize=16000 or something.
16kb would be downloaded by even a 56k modem in like 4-5 seconds, hardly enough to even matter
Reply With Quote
  #8  
Old 12-26-2004, 05:40 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by Python523
16kb would be downloaded by even a 56k modem in like 4-5 seconds, hardly enough to even matter
Still, it would be useful for players to know whats downloading.
Reply With Quote
  #9  
Old 12-26-2004, 09:59 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
When the variable works again, you could show only larger files downloading with something like:
PHP Code:
if (downloadsize 16000){
  
//stuff

Reply With Quote
  #10  
Old 12-27-2004, 12:55 AM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Quote:
Originally Posted by Tolnaftate2004
When the variable works again, you could show only larger files downloading with something like:
PHP Code:
if (downloadsize 16000){
  
//stuff

only large files show with #D and downloadpos now the way to check it would be
PHP Code:
if(strlen(#D)>0){
  
setplayerprop #c,Downloading: #D-#v(downloadpos);

__________________

Reply With Quote
  #11  
Old 12-27-2004, 10:35 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by ZeroTrack
only large files show with #D and downloadpos now the way to check it would be
PHP Code:
if(strlen(#D)>0){
  
setplayerprop #c,Downloading: #D-#v(downloadpos);

I was just saying that there would be no need to make a serveroption for a file size minimum (It wouldn't have to be 16000).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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