1. Wulf

    Wulf Community Admin

    You can if you use the GitHub API. :p

    The previous static link still works for now though.
     
  2. But @Wulf, What If I like the idea of the oxide project being bundeled?
    How do I combine them in a single solution now?
    By downloading every project I need and creating my own solution?
    Cos I'd like to see how exact function works.... Cos sometimes there may be an error in oxide itself, so can I bundle them back together?
     
  3. Wulf

    Wulf Community Admin

    I had locally NuGet deployment setup but I need to tweak that to make sure other projects make use of it, but you shouldn't need them under a separate repo or solution.

    The idea though is that if you need a change in a dependency, then it would just be a matter of cloning that and building it generally, then building the dependent project such as Oxide.Rust.
     
  4. No, I mean I just like the idea of being able to see how each function work in the project... So there is no easy way to combine them back, right?
     
  5. Wulf

    Wulf Community Admin

    If you're just wanting to reference a project, use NuGet.
     
  6. Bullshit, you can. Read my post
     
  7. Oh, really? I'm on windows and don't have curl. And never worked with it before. I'm using vbs script to download the rar and the 7zip to unzip it.
    What should I do now?
     
  8. Wulf

    Wulf Community Admin

    PowerShell works great as a curl replacement. There are also curl ports for Windows.
     
  9. Thank You for this!
     
  10. dosn't work for me, but i found other example and made it to oxide, for me is working :)
    Code:
    curl -s https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest | grep browser_download_url | cut -d '"' -f 4 | wget -qi -
     
  11. For windows user's:
    Code:
    @echo offSETLOCAL enabledelayedexpansionecho Download latest oxide for Rust server
    wget https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest --no-check-certificate
    for /f "tokens=2 delims=:" %%a in ('findstr /c:tag_name latest') do set link=%%a
    set link=%link:~1%
    set link=%link:~0,-1%
    set link=%link:"=%
    wget https://github.com/OxideMod/Oxide.Rust/releases/download/%link%/Oxide.Rust.zip --no-check-certificate -O Oxide.Rust.zip
    SETLOCAL Disabledelayedexpansion
    echo Done.
    pause
     
  12. Thanks Tanki!


    From an order of operations standpoint, should it be...


    0) Backup the server folder
    1) Pull down the new server from steam
    2) pull down the latest oxide for rust
    3) unzip and apply to backup
    4) copy backup to game directory

    ??
     
  13. Дайте ссылочку для рустида
    Give please url for Rustide
     
  14. Wulf

    Wulf Community Admin

    The previous URL still works fine.
     
  15. No. do not upgrade. I've pokodoval with the code rustid, now everything is okay.
    But it is advisable to update itself rustide, because not everyone will guess
    sorry. i'm used google translate)

    No. Did not manage to fix it. Waiting for fixation Rustide
     
  16. @Wulf can you help me with PS script? Cos I've never been working with them before...
     
  17. Wulf

    Wulf Community Admin

    Code:
    $json = Invoke-RestMethod "https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest"
    $zip = "https://github.com/OxideMod/Oxide.Rust/releases/download/$json.tag_name/Oxide.Rust.zip"
     
    Last edited: Nov 25, 2017
  18. Invoke-RestRequest not found as the command(
    And I still haven't found anything related on google....
    ===EDIT===
    Got it. Worked with
    Code:
    $json = Invoke-RestMethod -Uri "https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest"
    *Offtopic* where did you found the code block for PS? Can't find it in the options...
    ===EDIT2===
    You've made another mistake - "https://github.com/OxideMod/Oxide.Rust/releases/download/$json.tag_name/Oxide.Rust.zip" wouldn't take the .tag_name, it would take the whole $json, and then add .tag_name as the string to the end of the line...
    [DOUBLEPOST=1511607792][/DOUBLEPOST]Ok, so for everyone interesting - here is my solution for Win10 (no idea if that would work on eariler version of windows, due to I'm not very goot at PS scripts):
    RustUpdate.bat:

    Code:
    start /W .\steamcmd\steamcmd.exe +login anonymous +force_install_dir D:\servers\source\Rust\server +app_update 258550 validate +quit D:\servers\source\Rust\server\Oxide-Rust.zip
    cd rust/server
    del Oxide-Rust.zip
    powershell "& ""./download.ps1"""
    7z x D:\servers\source\Rust\server\Oxide-Rust.zip -aoa
    And download.ps1:

    Code:
    $json = Invoke-RestMethod -Uri "https://api.github.com/repos/OxideMod/Oxide.Rust/releases/latest"
    $url = $json.tag_name
    $url = "https://github.com/OxideMod/Oxide.Rust/releases/download/$url/Oxide.Rust.zip"
    echo $url
    (New-Object System.Net.WebClient).DownloadFile($url, "Oxide-Rust.zip")
     
    Last edited by a moderator: Nov 25, 2017
  19. Wulf

    Wulf Community Admin

    I was going off memory, memory was a bit wrong. :p