Code Monkey home page Code Monkey logo

unturned-wine's Introduction

Unturned-Wine

This repository contains scripts for installing x86 Unturned Windows on Linux (optionally using Docker). It does not install RocketMod.

Why?

You may ask why use Wine instead of the native Linux builds of Unturned. The reason for this is that Unity and Linux do not work so well. We often have many issues with Steamworks, Unity and certian libraries not working on Linux.

This should fix:

  • Servers not showing up in server browser when using Linux.
  • Servers crashing randomly.
  • Unturned crashing with Russia map.
  • Various mono crashes.

Docker Usage

To build, use docker build . -t unturned-wine (this will take a while...).

After building, you can start your server like this:

docker run -it -e STEAM_USERNAME=myusername -e STEAM_PASSWORD=mypassword -p 27015:27015 -p 27016:27016 --restart always --name myserverinstance unturned-wine

This will create a docker container that will listen on 27015 for Unturned and 27016 for Steam queries. It will automatically restart should the server shut down or crash.

Also, on each restart the server will automatically update.

You will not get any console input or output (similar issue on native Linux build, because Unity does not use stdin/stdout but creates a separate window for console). To workaround that, you can install the RocketLauncher.

Non-Docker Usage

Install Ubuntu 16.04. After that, set GAME_INSTALL_DIR, GAME_ID (304930 for Unturned), STEAM_USERNAME and STEAM_PASSWORD environment variables.

Finally, run install.sh on first usage. After that you can start and update your server by running init.sh.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.