Raised This Month: $64 Target: $400
 16% 

[NMRiH] WorkshopDL


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MsDysphie
Junior Member
Join Date: Dec 2017
Location: CShell
Plugin ID:
6331
Plugin Version:
0.2
Plugin Category:
General Purpose
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Enables map downloads through the workshop.
    Old 11-06-2018 , 21:03   [NMRiH] WorkshopDL
    Reply With Quote #1

    This is a band-aid fix to the borked server workshop support in NMRiH 1.10.0.

    It enables clients to download maps through the Workshop whenever possible, reducing FastDL dependence. The maps and their respective workshop IDs must be specified in configs/workshop-dl/map_connections.cfg

    Structure:
    PHP Code:
    "WorkshopMaps"
    {
        
    "nmo_subside_v5"
        
    {
            
    "workshop_id" "1480550740"
        
    }

        
    "nmo_emergency_1101"
        
    {
            
    "workshop_id" "1480487685"
        
    }

        
    "nmo_brainstorm_a4"
        
    {
            
    "workshop_id" "1497854909"
        
    }

    I've gone ahead and included a CFG containing all of the IDs for recently uploaded maps, however, no efforts will be made to keep this up to date. There's no need to remove maps that your server doesn't run, they'll simply be ignored.

    Workshop IDs can be obtained by simply looking at the URL for that item:




    You must be extremely careful when it comes to specifying workshop IDs. Server will crash if an invalid workshop ID is defined. This is an issue with the game, not the plugin itself (I may eventually add a sanity check for this, anyway)
    Attached Files
    File Type: cfg map_connections.cfg (1.6 KB, 13 views)
    File Type: sp Get Plugin or Get Source (workshop-dl.sp - 17 views - 1.4 KB)
    __________________

    Last edited by MsDysphie; 11-07-2018 at 13:54.
    MsDysphie is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:42.


    Powered by vBulletin®
    Copyright ©2000 - 2018, vBulletin Solutions, Inc.
    Theme made by Freecode