Page 1 of 1

[SOLVED] Avatars, Maps download issues

Posted: 22 Oct 2014, 12:19
by Rots
Hello everyone!

I have working maniacodes but I can't download maps and avatars (skins and horns download work fine, same maniacode php structure).

Maniacode is executed, planets are charged, but I get a 404 error (file not found) when trying to download. If I open the maniacode through a web browser I get a working <url> (no 404, when copy/pasting, file downloads in browser)

Any idea of what could not be working?

Consider skins (.zip) and horns (.ogg) are downloading fine... But if it was a file extension (.map.gbx or .dds .jpg) problem I would get a 403 error, not a 404, no?
I have byethost webserver... could it be something related to user agent? (didn't try to fake useragent cos am too lazy and i think there should be other solution)

Any htaccess tweak to make .map.gbx , dds files downloadable through ingame browser? (byet cpanel doesnt give much options)

Re: [ML] Avatars, Maps download issues

Posted: 22 Oct 2014, 13:02
by reaby
404 is indeed file not found...

i possible can't know what urls you have... maybe there is spaces or other weird characters in the file names, which are converted right for the browser, but not for maniaplanet httpmanager ?

how about adding rawurlencode($filename) for your maniacode generator..
that should do the trick, if i'm correct :)

Re: [ML] Avatars, Maps download issues

Posted: 22 Oct 2014, 16:02
by Rots
rawurlencode doesn't work :/ still getting 404... filename have simple strings, i don't it's an encoding problem, nothing works except skins and horns :s

an example for an avatar: maniacode working, file not downloading...
http://revival.byethost32.com/ml/maniac ... p?MetalCat

The url displayed is ok and the same shown for a skin .zip file... I think it has to do with something server related

Re: [ML] Avatars, Maps download issues

Posted: 22 Oct 2014, 16:33
by Chris92
Rots wrote:rawurlencode doesn't work :/ still getting 404... filename have simple strings, i don't it's an encoding problem, nothing works except skins and horns :s

an example for an avatar: maniacode working, file not downloading...
http://revival.byethost32.com/ml/maniac ... p?MetalCat

The url displayed is ok and the same shown for a skin .zip file... I think it has to do with something server related
It seems that you are inserting a line break within the <url> tag.
Check your PHP code, that should not be in there I think

Code: Select all

<url>
http://revival.byethost32.com/ml/Content/Avatars/MetalCat.dds
</url>
That's how it looks like when I open that link you posted

Re: [ML] Avatars, Maps download issues

Posted: 22 Oct 2014, 16:53
by Rots
There's no line break, its just browser xml parser that does that

Re: [ML] Avatars, Maps download issues

Posted: 22 Oct 2014, 16:55
by Chris92
Rots wrote:there's no line break, its just browser xml parser that does that

if you use chrome... [url]view-source:http://revival.byethost32.com/ml/maniac ... p?MetalCat[/url]
Ah okay, yea my bad then.

Re: [ML] Avatars, Maps download issues

Posted: 23 Oct 2014, 10:02
by Rots
I'm too good... I made a typo error on maniacode registering in playerpage, this is why it worked through the browser (correct url) but not ingame...
:0010

Solved :lol: