[SOLVED] Avatars, Maps download issues

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
User avatar
Rots
Translator
Translator
Posts: 1101
Joined: 01 Sep 2010, 14:39
Location: España, Barcelona

[SOLVED] Avatars, Maps download issues

Post 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)
Last edited by Rots on 23 Oct 2014, 10:02, edited 1 time in total.
Image
Image
Image
TrackMania Original brought me here... Here I am since 2006
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: [ML] Avatars, Maps download issues

Post 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 :)
User avatar
Rots
Translator
Translator
Posts: 1101
Joined: 01 Sep 2010, 14:39
Location: España, Barcelona

Re: [ML] Avatars, Maps download issues

Post 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
Image
Image
Image
TrackMania Original brought me here... Here I am since 2006
User avatar
Chris92
Translator
Translator
Posts: 950
Joined: 15 Jun 2010, 13:22
Location: Vilshofen, Germany
Contact:

Re: [ML] Avatars, Maps download issues

Post 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
Check out my Personal Twitter account!
User avatar
Rots
Translator
Translator
Posts: 1101
Joined: 01 Sep 2010, 14:39
Location: España, Barcelona

Re: [ML] Avatars, Maps download issues

Post by Rots »

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.
Image
Image
Image
TrackMania Original brought me here... Here I am since 2006
User avatar
Chris92
Translator
Translator
Posts: 950
Joined: 15 Jun 2010, 13:22
Location: Vilshofen, Germany
Contact:

Re: [ML] Avatars, Maps download issues

Post 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.
Check out my Personal Twitter account!
User avatar
Rots
Translator
Translator
Posts: 1101
Joined: 01 Sep 2010, 14:39
Location: España, Barcelona

Re: [ML] Avatars, Maps download issues

Post 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:
Image
Image
Image
TrackMania Original brought me here... Here I am since 2006
Post Reply

Return to “ManiaLink”

Who is online

Users browsing this forum: No registered users and 1 guest