Author Topic: Obbligatory Autodownload of some files  (Read 9856 times)

|MoT|Erfe555

  • Posts: 75
  • Turrets: +2/-4
Obbligatory Autodownload of some files
« on: May 24, 2009, 06:59:29 pm »
Hi all, I'm |MoT|Erfe555 the leader of the |MoT| clan that i setted up a server :D
Today i realize a new pack of textures in a .pk3 file that is hosted on the game server in .tremulous/base (is a linux server).
I need to enable the autodownload of that file throughout Tremulous itself (so from the server) or from an HTTP URL.
Can someone explain me the two metod to download (obbligatory) that file with Tremulous or HTTP URL?
Thanks for your attention. ;)

bacon665

  • Posts: 180
  • Turrets: +12/-186
Re: Obbligatory Autodownload of some files
« Reply #1 on: May 24, 2009, 09:41:22 pm »
If the user does not have the map when they go to play if they have autodownload set to enable it should download it from your server.
For setting up an HTTP repository read the stickied post http://tremulous.net/forum/index.php?topic=5215.0

|MoT|Erfe555

  • Posts: 75
  • Turrets: +2/-4
Re: Obbligatory Autodownload of some files
« Reply #2 on: May 24, 2009, 09:48:49 pm »
No u don't understand. They don't need to download maps, but a .pk3 file that contains textures and they need to download in the C:/Document and Settings/Application Data/Roaming/Tremulous/Base folder for Windows Vista.They must download that file! Who can help me?

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Obbligatory Autodownload of some files
« Reply #3 on: May 24, 2009, 11:17:34 pm »
I'm not sure if you can force texture files, as they aren't required for the client to be able to play.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

|MoT|Erfe555

  • Posts: 75
  • Turrets: +2/-4
Re: Obbligatory Autodownload of some files
« Reply #4 on: May 24, 2009, 11:24:51 pm »
That's i want to do.

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: Obbligatory Autodownload of some files
« Reply #5 on: May 25, 2009, 12:35:13 am »
Put the file into the servers base folder, then restart the server. If you make your server pure now, it should force clients to download that .pk3 file.

That's at least how it worked on my server when I had a little typo in my config.

bacon665

  • Posts: 180
  • Turrets: +12/-186
Re: Obbligatory Autodownload of some files
« Reply #6 on: May 25, 2009, 01:39:25 am »
unless the user has administrative access that will trip off the UAC because standard users arent able to modify the contents of C:\\Program files\
or
C:\\Program files(x86)\

but that will be a minor setback vista will automatically bring the game out of fullscreen mode to ask for permission to modify the contents.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Obbligatory Autodownload of some files
« Reply #7 on: May 25, 2009, 05:08:58 am »
unless the user has administrative access that will trip off the UAC because standard users arent able to modify the contents of C:\\Program files\
or
C:\\Program files(x86)\

but that will be a minor setback vista will automatically bring the game out of fullscreen mode to ask for permission to modify the contents.
any non-1.1 client doesn't write to program files.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

|MoT|Erfe555

  • Posts: 75
  • Turrets: +2/-4
Re: Obbligatory Autodownload of some files
« Reply #8 on: May 25, 2009, 10:35:43 am »
My server is a pure server and i put that .pk3 textures file in .tremulous/base folder and the autodownload is on but the server don't force the download of that file.
Then, if the autodownload go ok, how can i set the option to download that files here?

Code: [Select]
-on Windows XP (newer clients): C:\Documents and Settings\Username\Application Data\Tremulous\base\
-on Windows XP (tjw client): C:\Documents and Settings\Username\Local Settings\Application
Data\Tremulous\base\
-on Linux: ~/.tremulous/base
-on Mac: [...]


 ???Pls help me.

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Obbligatory Autodownload of some files
« Reply #9 on: May 25, 2009, 12:36:17 pm »
I think the pure server forces only the download of pk3s that it references itself - but the server doesn't load any textures. If you put the textures into a pk3 together with the cgame qvm, the clients should load it.

Of course the chance that I am completely wrong are strictly greater than zero.

And the target directory is selected by the client, the server cannot (and should not) mess with this.

|MoT|Erfe555

  • Posts: 75
  • Turrets: +2/-4
Re: Obbligatory Autodownload of some files
« Reply #10 on: May 25, 2009, 03:15:20 pm »
So?
How can i do the .pk3 file with .qvm? (That is referenced?)
Explain me. ;D

player1

  • Posts: 3062
  • Turrets: +527/-401
    • My Avatar! (if they were enabled) [by mietz]
Re: Obligatory w/ options
« Reply #11 on: May 25, 2009, 07:17:13 pm »
And the target directory is selected by the client, the server cannot (and should not) mess with this.

thanks for pointing that out
the server shouldn't "force" a particular DL to a particular directory of a particular OS
it should make the pk3 available for autoDL, and the client and user should do the rest

& I believe what Bissig meant was to toggle pure, after you have uploaded/added the necessary texture file to your server (make unpure, make pure again)

|MoT|Erfe555

  • Posts: 75
  • Turrets: +2/-4
Re: Obbligatory Autodownload of some files
« Reply #12 on: May 25, 2009, 09:14:38 pm »
I try to do that u explain.
But doesn't go.
I can't understand why...any help? ???

bacon665

  • Posts: 180
  • Turrets: +12/-186
Re: Obbligatory Autodownload of some files
« Reply #13 on: May 25, 2009, 10:08:41 pm »
Why cant you do like everyone else and make it an option for the players and have an announcement on your site for it.
If i was forced to use some peoples textures id be pissed.
Not everyones style appeals to everyone else.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Obbligatory Autodownload of some files
« Reply #14 on: May 25, 2009, 10:16:55 pm »
BTW, that's the exact reason auto-downloads are disabled by default.
In CS etc, every server has a different set of retarded sounds etc.  It sucks.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

|MoT|Erfe555

  • Posts: 75
  • Turrets: +2/-4
Re: Obbligatory Autodownload of some files
« Reply #15 on: May 25, 2009, 10:34:46 pm »
I don't want to know if i should do this or not.
I'am the server owner and if anyone connect to my server he must download that textures, if he doesn't want, disconnect.
Is there any other way to force autodownload without build a new client?

cactusfrog

  • Posts: 390
  • Turrets: +678/-176
    • tremulous fun server offical site
Re: Obbligatory Autodownload of some files
« Reply #16 on: May 26, 2009, 02:08:08 am »
isn't there a way you can run the server from a different base folder and have all the custom stuff in there.

bacon665

  • Posts: 180
  • Turrets: +12/-186
Re: Obbligatory Autodownload of some files
« Reply #17 on: May 26, 2009, 05:02:44 am »
That wont force the client to download the textures.
And dude should i put it this way?
"stop trying. textures arent a mandontory part of the game so theres no coded way for the client to force a download"

you can password the server so that when they download the texture file in a zip from your site they have a password in a text file.
and how would you even know if they are using your textures?

player1

  • Posts: 3062
  • Turrets: +527/-401
    • My Avatar! (if they were enabled) [by mietz]
Re: Obligatory?
« Reply #18 on: May 26, 2009, 06:01:55 am »
... but, mostly, why do you care if they are using your textures?

... and why are you so concerned about learning how to force a DL on clients?

I don't think you have a clear enough understanding of what free and open-source means, or of the related issues (like, Vista is not the only OS out there), to be trusted with such information, even if such a method does exist.

I, for one, would not be interested in playing such a server.

I am the client owner and if I connect to a server, I prefer to decide what files to put where on MY machine.

/disconnect

|MoT|Erfe555

  • Posts: 75
  • Turrets: +2/-4
Re: Obbligatory Autodownload of some files
« Reply #19 on: May 26, 2009, 10:21:05 am »
Exactly!
In other terms, that's i want to do:
If anyone connect to my server could download or not the textures but i need that the server advertise the client that are new textures, and if the client accept, he download the textures, if not stop, no problem.
Understand now?
Maybe i explained bad what i would to do.
Sry for the incomprension.
Now...are there ways to do this? :angel:

bacon665

  • Posts: 180
  • Turrets: +12/-186
Re: Obbligatory Autodownload of some files
« Reply #20 on: May 26, 2009, 07:40:10 pm »
what is your native language.
When you set up the server it has a thing for announcements you can put a message there.
also some servers display it in chat when a player joins.

We all thought you meant if they didnt have the texture they didnt play on your server.

Archangel

  • Guest
Re: Obbligatory Autodownload of some files
« Reply #21 on: May 26, 2009, 08:21:35 pm »
semipure

|MoT|Erfe555

  • Posts: 75
  • Turrets: +2/-4
Re: Obbligatory Autodownload of some files
« Reply #22 on: May 26, 2009, 08:21:55 pm »
I'm italian.  ;D
Anyway i have the g_motd command, but i want to show in CP when a player enter to try our textures.
ùHow can i do this?

bacon665

  • Posts: 180
  • Turrets: +12/-186
Re: Obbligatory Autodownload of some files
« Reply #23 on: May 26, 2009, 11:03:38 pm »
non conosco la risposta. Ho visto completati Sono sicuro che qualcuno sa come fare
good luck
as for the english people i said "i do not know but i have seen it done so i know its possible"
i got the translation as close as possible.

ghostisback

  • Posts: 139
  • Turrets: +8/-1
Re: Obbligatory Autodownload of some files
« Reply #24 on: May 27, 2009, 08:56:30 am »
put the CPs in default.cfg that is in "/base/mapconfigs" folder.

All commands in this file will be executed at any maps start.

|MoT|Erfe555

  • Posts: 75
  • Turrets: +2/-4
Re: Obbligatory Autodownload of some files
« Reply #25 on: May 27, 2009, 12:47:46 pm »
Ave ghost , senti il server è con linux e nella cartella tremulous/base (dove ci stanno le mappe) non vi è nessuna cartella chiamata mapconfigs, tantomeno un default.cfg.
Devo crearlo io?
E poi dimmi il comando se puoi così lo inserisco.

I don't see any folder called mapconfigs...

bacon665

  • Posts: 180
  • Turrets: +12/-186
Re: Obbligatory Autodownload of some files
« Reply #26 on: May 28, 2009, 12:38:44 am »
I believe it will be in the pk3

Archangel

  • Guest
Re: Obbligatory Autodownload of some files
« Reply #27 on: May 28, 2009, 01:47:08 am »
wrong. he has to create it.

bacon665

  • Posts: 180
  • Turrets: +12/-186
Re: Obbligatory Autodownload of some files
« Reply #28 on: May 28, 2009, 04:12:01 am »
k

ghostisback

  • Posts: 139
  • Turrets: +8/-1
Re: Obbligatory Autodownload of some files
« Reply #29 on: May 28, 2009, 09:59:37 am »
You have to create the /base/mapconfigs folder and a text file called default.cfg. ifu want a CP just add lines like "cp ^1No Noobs on This ^2Noob Server", if u want a echo stamp just add "echo ^4enjoy the Dark Side ^5of the Moon" without "" :)

Have Fun !!!