View Single Post
  #878  
Old 02-04-2011, 12:52 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by MrOmega View Post
When ever you show an image that hasn't been uploaded to the server it give you the correct error in the log 'File download: foo.png not found'. Then when you do upload the file to server, it doesn't bother to try to download it. Reopening Graal fixes this though.
Could probably be fixed with a script like this. My function names are off though but the main idea is there.

PHP Code:
function onLevelFileUpdated() {
  
temp.filename extractfilename(params[0]);
  for (
aallplayersa.triggerclient(this.nametemp.filename);
}

//#CLIENTSIDE
function onLogMessage() {
  if (
logmessage.starts("File download: ")) {
    
this.failed.add(filename);
  }
}

function 
onActionClientSide() {
  if (
params[0] == "fileuploaded") {
    if (
params[1in this.failed) {
      
downloadfile(params[1]);
      
this.failed.remove(params[1]);
    }
  }

or something similar if it's really that big of issue.
__________________
Quote:
Reply With Quote