Automatic downloads from my server.

General help for server-related problems. Also including basic help and news regarding q4maxXML

Moderators: panni, Q4MAX Team

Automatic downloads from my server.

Postby mike2001 » Mon Jul 13, 2009 5:29 am

Hi there,

I'm trying to add maps to my regular (non q4max) quake 4 server for players to be able to automatically download them to connect and like many I'm having problems getting this to work. I've been working with the support at gameservers.com (hosting my server & host server) and its seems like I'm not getting anywhere. Any help is greatly appreciated.

This is what I have in my "server.cfg" file:

set net_serverDownload "2"
set net_serverDlBaseURL "http://lunabase.clanservers.com/public_html/q4base/"
set net_serverDlTable "*"

I put a new map file (.pk4) in my server's q4base directory.
I then put that same file in my host website's FTP folder titled q4base which is in the public_html folder in the directory.

When I try to sign on to the server in the game browser it says something like "YOU NEED TO DOWNLOAD 3.97 MB TO CONNECT TO THE SERVER"

When I click Yes it says DOWNLOAD FAILED OR WAS CANCELLED

Is my above server.cfg. code correct?
Its there something else I need to add or enable?

Any help is appreciated!
Thanks,
~mike
mike2001
 
Posts: 9
Joined: Mon Jul 13, 2009 4:28 am

Re: Automatic downloads from my server.

Postby AnthonyJ » Mon Jul 13, 2009 12:47 pm

mike2001 wrote:set net_serverDlBaseURL "http://lunabase.clanservers.com/public_html/q4base/"


This is your error - that URL doesnt exist (try navigating to it in your web-browser). public_html is a folder that is only visible to you for uploading the files, its not actually on the webserver. You also shouldn't include the "q4base" part as q4 will automatically append that (along with the pk4 name).

So the correct setting would be:

Code: Select all
set net_serverDlBaseURL "http://lunabase.clanservers.com/"


For what it's worth:
When I click Yes it says DOWNLOAD FAILED OR WAS CANCELLED

If you ever get this message, you can check the console and see what error is there. In this case, I'd expect it to say 404 error and the URL that is invalid.

BTW, Is there a reason why you're using q4base rather than q4max?
AnthonyJ
Lead developer
 
Posts: 1554
Joined: Tue Nov 29, 2005 8:45 pm

Postby mike2001 » Mon Jul 13, 2009 4:47 pm

Thanks Anthony,
I appreciate your response. I'm new to Quake 4 (and online gaming) so i wanna keep things as simple as possible. My server is really just for playing 1v1 with friends and i just wanna be able to add various DM maps. Someday I might make it q4max. The lunabase website isn't supposed to really be a website, its just supposed to be a host server for my downloads.

Anyway I changed the cfg. line to what you said.
If I go to www.lunabase.clanservers.com it just says INDEX of ...cgi bin
Is this what its supposed to say?

So where exactly in my Host Server FTP directory do I put the new maps so they can be downloaded? Do I make a folder titled q4base and put them in there?

(I just tried it again, i put the map (278.pk4) right in the general directory along with the various folders. I put the same map pak in my servers directory.
And when I got the error message again- DOWNLOAD FAILED OR WAS CANCELLED I accessed the console and the bottom line said something like
"start download from http://lunabaseclansers.com/q4base/278.pk4"

Any suggestions?

Thanks for your time,
~Mike
mike2001
 
Posts: 9
Joined: Mon Jul 13, 2009 4:28 am

Postby AnthonyJ » Mon Jul 13, 2009 9:53 pm

Yea, I noticed the cgi-bin folder. You'd probably want to hide / disable that, or at least make sure theres nothing harmful in there. Q4 doesn't really care though.

Your website side of things was probably fine before - put the files back into the q4base directrory and I think it will work. The only thing you had wrong before was the URL.

The error message q4 is giving you is that http://lunabase.clanservers.com/q4base/278.pk4 doesn't exist - which is because you've moved the file out of the q4base folder. If you put it back in q4base, you should find that clicking that link in this post works, and then it'll also work in q4.

Note that it looks like you've also typo'd it in the cvar - http://lunabase.clanservers.com/ works, while http://lunabaseclansers.com/ doesn't.

Q4 simply takes the path of the files relative to quake4.exe (ie, q4base/278.pk4 or q4max/q4max*.pk4) and adds it onto the end of the URL that you configure in that cvar. As long as the webserver has the files at that URL and visiting that URL in your normal web-browser works, then Q4 will work.
AnthonyJ
Lead developer
 
Posts: 1554
Joined: Tue Nov 29, 2005 8:45 pm

Postby mike2001 » Tue Jul 14, 2009 12:40 am

Thanks Anthony!

You explained it very well. So I think I pretty much understand.

This is what I've tried:

I put the map 278.pk4 into a folder titled q4base which is in my website servers directory but I still can't get this URL in my browser to work:
http://lunabase.clanservers.com/q4base/278.pk4

If I leave off the q4base/278.pk4 it works (I get the index with cgi-bin) but when i add it i get the error message. I doubled checked the spelling and everything.
I wonder if there is something in my FTP that I have to enable?
I tried refreshing it but that didn't work. I checked and it says Downloads - Automatic under mode.
So I'm not sure. Do you think I should contact the server's host?
At this point I'm ready to give you my password to my website server so you can see for yourself. It seems so simple, there has to be a simple solution to why its not working.

I dunno.
Again I appreciate your help. I hope I'm making sense.
Like I said I'm totally new to this stuff so I just wanna do things the simplest way.

Later,
~Mike
mike2001
 
Posts: 9
Joined: Mon Jul 13, 2009 4:28 am

Postby AnthonyJ » Tue Jul 14, 2009 9:32 am

Did you delete the public_html folder from the server? Or are you creating the q4base directory outside of the public_html folder? Any file you place in public_html will become visible at http://lunabase.clanservers.com/

Originally when I went to http://lunabase.clanservers.com/ I could see the q4base directory, and in that the pk4 files. Now the q4base directory has gone, so thats the problem.
AnthonyJ
Lead developer
 
Posts: 1554
Joined: Tue Nov 29, 2005 8:45 pm

Postby mike2001 » Wed Jul 15, 2009 7:46 pm

Anthony, thank you so much! I FINALLY got it to work properly!


One last question and I should be on my way.

When I went to my server in the game browser it successfully downloaded the new maps that I added so I was able to get in and play them. But after that when I went to my q4base folder in my quake4/applications on my computer I didn't see those new maps. Where exactly did it download them to so I was able to play them?
(before when I was just testing the new maps i just put the pk4s in both my server directory and in that folder in my applications and i was able to play them.) So now I'm just curious about where those New files were downloaded to so I can play the maps now automatically without having had put those files there manually......?

Thanks again for your help, I really appreciate it!
mike2001
 
Posts: 9
Joined: Mon Jul 13, 2009 4:28 am

Postby AnthonyJ » Wed Jul 15, 2009 7:54 pm

No probs - glad you got it working.

Are you running Windows, or are you using linux/mac? I suspect not Windows.

In Linux, they get downloaded to ~/.quake4/q4base/, and I guess its a similar place on a Mac (I don't know exactly where, but some per-user location).

Under Windows, they will get stored alongside the app, unless you've set fs_savepath (which I guess you haven't).
AnthonyJ
Lead developer
 
Posts: 1554
Joined: Tue Nov 29, 2005 8:45 pm

Postby mike2001 » Thu Jul 16, 2009 2:13 am

Yeah Im on a Mac. So I dunno,
no big deal though. Its working and thats all that matters :)

~mike
mike2001
 
Posts: 9
Joined: Mon Jul 13, 2009 4:28 am

Postby AnthonyJ » Thu Jul 16, 2009 8:11 am

Just checked another thread, where hemo confirmed it is in "user profile/Library/Application Support/Quake4" on the mac.
AnthonyJ
Lead developer
 
Posts: 1554
Joined: Tue Nov 29, 2005 8:45 pm


Return to Server admin's corner

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron