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)
[SOLVED] Avatars, Maps download issues
Moderator: NADEO
- Rots
- Translator
- Posts: 1101
- Joined: 01 Sep 2010, 14:39
- Manialink: revival
- Location: España, Barcelona
[SOLVED] Avatars, Maps download issues
Last edited by Rots on 23 Oct 2014, 10:02, edited 1 time in total.
Re: [ML] Avatars, Maps download issues
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
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

- Rots
- Translator
- Posts: 1101
- Joined: 01 Sep 2010, 14:39
- Manialink: revival
- Location: España, Barcelona
Re: [ML] Avatars, Maps download issues
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
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
It seems that you are inserting a line break within the <url> tag.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
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>
Check out my Personal Twitter account!
- Rots
- Translator
- Posts: 1101
- Joined: 01 Sep 2010, 14:39
- Manialink: revival
- Location: España, Barcelona
Re: [ML] Avatars, Maps download issues
There's no line break, its just browser xml parser that does that
Last edited by Rots on 22 Oct 2014, 16:56, edited 1 time in total.
Re: [ML] Avatars, Maps download issues
Ah okay, yea my bad then.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]
Check out my Personal Twitter account!
- Rots
- Translator
- Posts: 1101
- Joined: 01 Sep 2010, 14:39
- Manialink: revival
- Location: España, Barcelona
Re: [ML] Avatars, Maps download issues
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...
Solved

Solved

Who is online
Users browsing this forum: No registered users and 1 guest