bad length got (Redirect 0.3DL) -
axellech - 08.07.2018
Estou tentando usar Redirect de download para 0.3dl, sу que na hora de baixar da um erro:
[error] file 0x180FC25E bad length got:250 expected:84972. Deleting..
Code:
PHP код:
new SERVER_DOWNLOAD[] = "http://meusite.com.br/downloads/03DL/models";
public OnPlayerRequestDownload(playerid, type, crc)
{
if(!IsPlayerConnected(playerid)) return 0;
if (IsPlayerNPC(playerid)) return 1;
new filename[64], filefound, url_final[256];
if(type == DOWNLOAD_REQUEST_TEXTURE_FILE)
filefound = FindTextureFileNameFromCRC(crc, filename, sizeof(filename));
else if(type == DOWNLOAD_REQUEST_MODEL_FILE)
filefound = FindModelFileNameFromCRC(crc, filename, sizeof(filename));
if(filefound) {
format(url_final, sizeof(url_final), "%s/%s", SERVER_DOWNLOAD, filename);
RedirectDownload(playerid, url_final);
}
return 1;
}
Como posso resolver isso?
Re: bad length got (Redirect 0.3DL) -
willttoonn - 08.07.2018
Desative o Redirect e verifique se o erro persiste, caso sim, o problema estб no model que estб com algum bug.
Re: bad length got (Redirect 0.3DL) -
axellech - 08.07.2018
Quote:
Originally Posted by willttoonn
Desative o Redirect e verifique se o erro persiste, caso sim, o problema estб no model que estб com algum bug.
|
Sim, tambйm pensei que fosse o model, mas testei esse e outros models e todos funciona normalmente sem o Redirect, dai quando tento usar o redirect da isso.
Re: bad length got (Redirect 0.3DL) -
willttoonn - 08.07.2018
Ok.
Pegue a linha do artconfig do objeto que estб dando erro e envie aqui.
Re: bad length got (Redirect 0.3DL) -
axellech - 08.07.2018
Essa
PHP код:
AddCharModel(102, 20000, "wmymech.dff", "wmymech.txd");
Re: bad length got (Redirect 0.3DL) -
willttoonn - 08.07.2018
Confirme se o arquivo estб neste url:
http://meusite.com.br/downloads/03DL/models/wmymech.dff
http://meusite.com.br/downloads/03DL/models/wmymech.txd
Re: bad length got (Redirect 0.3DL) -
axellech - 08.07.2018
Quote:
Originally Posted by willttoonn
|
Sim estб "Alterei a url antes de postar aqui" mas estб sim todos os arquivos, realmente nem ideia do que seja, tambйm testei os models que vem padrгo na pasta "
0.3.DL-R1 Windows Server" e nada.
Existe algum outro meio que possa acelerar o download sem ser Redirect?
Re: bad length got (Redirect 0.3DL) -
ForT - 08.07.2018
Parece o mesmo problema que tive ao tentar hospedar os arquivos pra testar no g00gle site, se vocк estб usando uma VPS, hospede os arquivos na mesma que nгo terб problemas.
Re: bad length got (Redirect 0.3DL) -
willttoonn - 09.07.2018
Faz o seguinte, abre um contador de caracteres e verifique o tamanho do URL que й feito.
Por exemplo:
http://meusite.com.br/downloads/03DL/models/wmymech.dff
E me diga o tamanho de caracteres que apareceu.