![]() |
downloadsize
How come downloadsize it returning zero everytime? simple test will prove it does
if(created||timeout){ setplayerprop #c, #D #v(downloadpos) / #v(downloadsize); timeout = .05; } Notice the var downloadsize comes up 0 |
If there is no current download, the variable will become 0, are you running the script client-side? I may be wrong but I think it doesn't work server-side.
|
yea its clientside, and #D work as such
#D,#D(filename) The player chat i got was this filename.png 32000 / 0 this script returned this to RC : NPC Code: Downloading:bravo_tileset.png 32000 / 0 Downloading:bravo_tileset.png 32000 / 0 Downloading:bravo_tileset.png 32000 / 0 Downloading:bravo_tileset.png 64000 / 0 Downloading:bravo_tileset.png 64000 / 0 Downloading:bravo_tileset.png 64000 / 0 Downloading:bravo_tileset.png 96000 / 0 Downloading:bravo_tileset.png 96000 / 0 Downloading:bravo_tileset.png 96000 / 0 Downloading:bravo_tileset.png 128000 / 0 Downloading:bravo_tileset.png 128000 / 0 Downloading:bravo_tileset.png 160000 / 0 Downloading:bravo_tileset.png 160000 / 0 Downloading:bravo_tileset.png 160000 / 0 Downloading:bravo_tileset.png 192000 / 0 Downloading:bravo_tileset.png 192000 / 0 Downloading:bravo_tileset.png 192000 / 0 Downloading:bravo_tileset.png 224000 / 0 Downloading:bravo_tileset.png 224000 / 0 Downloading:bravo_tileset.png 256000 / 0 Downloading:bravo_tileset.png 256000 / 0 |
Your script is pretty insecure, you don't really need to use sendtonc and even inside a timeout loop.
It is returning 0, because of this: triggeraction 0,0,serverside,Sern,#D,#v(downloadpos),#v(download size),; The name of the variable is downloadsize, and you used space. |
no i didnt the fourm made it that way for some reason, which leads me to believe that the gserver is doing it too, and the sendtonc is for debuging
|
Maybe you should try:
sendtonc Downloading:#p(0) #p(1) / #v(downloadsize); It may just be that the client doesn't know how large the file is because it has yet to download? |
Quote:
-new scripting variable 'downloadsize': when the graal client is currently downloading a big file (>32k) then this variable contains the size of the file |
Has anyone figured out this problem yet?
|
Quote:
|
Quote:
Bug perhaps? |
Quote:
and BTW! read the first post here i did without using the code tags, ... oh whats that ?? its not spaced? oh loookk at thatt |
Geez, he is trying to help, don't be so rude.
|
NPC Code: Edit: works? |
na i tired that too returns 0 still
|
Quote:
huh, it seems to work fine in v3, but not 2 :\ |
Quote:
The first thing for one to do when they have a problem should not be to say "There's something wrong with the system." but instead, ask yourself "What could I possibly be doing wrong?" |
Quote:
|
Quote:
|
Quote:
NPC Code://#CLIENTSIDE Edit: Had to fix something. Erm, it should work, haven't tested so. |
Nice work malinko, I see why you are part of the debug team :P
|
NPC Code:1+textwidth(comic sans ms,,11/textheight(verdana,1),|),13,comic sans ms,,|; The same error in my original one, how bizarre. :) And it's also strange that you would use font comic sans ms everywhere but there. And if downloadsize is 0, as is the problem, it can't divide by 0. |
Quote:
|
Quote:
|
I'm thinking the var is bugged, didn't work for me really when I tested it a day or so ago
|
Quote:
|
Quote:
|
Quote:
But you are a debugger and missed that? Shame ;) |
Everyone pakes mistakes pfa, I mean look what you did to UN, You can just about do anything on UN..
|
Quote:
And it wasn't intended to be mean. But I didn't make most, if any, of the buggy stuff on UN. |
It seems that the modifications for the "downloadsize" variable were accidently removed in the last Graal v2 release, so the variable doesn't contain something right now except you are running v3. In the next version (will be released in a few weeks) it will be fixed.
|
When will the new scripting engine be out?;o
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 06:01 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.