Ergebnis 1 bis 2 von 2

Thema: Fastdownload der Addons funktioniert nicht

  1. #1

    Standard Fastdownload der Addons funktioniert nicht

    Hallo zusammen,
    ich bin schon lange stiller Leser dieses Forums und Gmod Spieler.
    Nun habe ich mir endlich einen dedizierten Gmod 10 Server gemietet und habe bei der Einrichtung ein Problem.
    Die Addons werden nicht per sv_downloadurl geladen. Mit Maps geht es jedoch ohne Probleme. Schalte ich FastDownload aus, funktioniert der Addon-Download.

    Im Wiki steht, dass man ein "Cachefile" mit auf den Webserver laden muss. Ich nehme an, es handelt sich um den Cache-Ordner, den ich mit auf den Webserver geladen habe.

    Auszug aus meiner Server.cfg
    Code:
    // Fast Download
    sv_downloadurl "http://serverfiles.quabit.net/garrysmod/"
    sv_allowupload 1
    sv_allowdownload 1
    Die Ordnerstruktur auf dem Webserver sieht so aus:
    http://serverfiles.quabit.net/garrysmod/.

    Hat wer eine Idee? Ich bin für jeden Tip dankbar.

    Gruß
    Quabit

  2. #2
    Avatar von DarkZone
    Registriert seit
    12.05.2008

    Standard AW: Fastdownload der Addons funktioniert nicht

    Also wenn du willst das Spieler deine Adons runterladen musst du die ganzen Files erstmal freigeben

    Siehe

    Dedicated Server Downloads(for windows)

    If you wish to make players download non standard files from your server (i.e addons that they should have) you can do this with a very simple Lua script.

    in your server go to the folder "garrysmod/lua/autorun/server" in here create a lua file (can be done by saving a file with notepad with suffix ".lua" instead of ".txt") called resources.lua .

    Here is an example of what you can put in there:

    {

    resource.AddFile( "sound/sound.wav" )
    resource.AddFile( "sound/music/song.wav")
    AddCSLuaFile("effects/explosion/init.lua")
    AddCSLuaFile("entities/ball/cl_init.lua")
    AddCSLuaFile("entities/ball/shared.lua")

    }

    resource.AddFile tells it to download the file located in the brackets (speech marks around path and file name).

    It defaults to the garrysmod directory so as you can see i have put sound on for those files, you can use materials or so. If the files are in the addons folder you can simply use what comes after "addons/[mod]/" in explorer as gmod redirects it.

    If the file is a lua you use

    AddCSLuaFile

    This defaults to the lua directory. again if the file is in addons simply only use what comes after "addons/[mod]/lua/" in explorer
    Das hier ist eines weiter oben über Remote file downloads/sv_downloadurl

    Also wenn das große Addons sind
    LASS ES es hat nämlich kein Spieler bock drauf ewig zu warten.
    Wenn es aber STools sind musst du dir halt die arbeit machen und alles freigeben indem du die Pfade zu den Dateien in einer lua File angibst. Steht alles oben

    Hoffe konnte helfen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •