NS/README.md

175 lines
10 KiB
Markdown
Raw Normal View History

2021-10-31 23:57:37 +00:00
# Natural Selection v3.3
2015-12-10 17:29:55 +00:00
2023-09-01 03:40:10 +00:00
An updated build of the game [Natural Selection] for Windows and Linux focused on quality-of-life improvements and bug fixes. For a new custom-built bot for NS, go check out [Evobot].
2015-12-10 17:29:55 +00:00
2018-05-01 19:10:04 +00:00
## Downloads
2021-11-02 18:54:33 +00:00
The **[Natural Selection Launcher](https://github.com/ENSL/NaturalLauncher/releases/)** (Windows) can install, update, or repair the game.
2018-11-18 20:22:46 +00:00
2021-11-01 03:48:21 +00:00
**[Manual installation](https://github.com/ENSL/NS/releases)** (Windows / Linux)
2018-05-01 19:10:04 +00:00
2018-08-16 10:08:14 +00:00
As the game is a Half-Life mod, Steam and Half-Life installations are required to play the game.
2018-05-01 19:10:04 +00:00
2023-09-01 03:40:10 +00:00
A fresh install of NS comes with updated config files containing everything you need to get playing on the standard settings most players prefer. Customization options are built into the advanced options menu, like the Nine Legends competitive UI option. For further customization, team and weapon specific config files are also now available.
2015-12-10 17:29:55 +00:00
2022-08-23 18:57:35 +00:00
## Game not working? Troubleshooting tips
2020-11-13 23:50:45 +00:00
If the game doesn't load, check the following:
2022-08-23 18:57:35 +00:00
1. If you recieve a "could not load library" error for the client.dll, please install the **[latest Microsoft Visual C++ Redistributable package](https://aka.ms/vs/17/release/vc_redist.x86.exe)**.
2021-11-02 18:54:33 +00:00
1. Make sure you have verified Half-Life's integrity. Click [here](https://support.steampowered.com/kb_article.php?ref=2037-QEUH-3335) for detailed instructions.
2021-11-01 00:06:05 +00:00
1. Check if Half-Life works for you.
2022-08-23 18:57:35 +00:00
1. Make sure you have a clean install. Go to the half-life directory (eg. `c:\Program Files\Steam\steamapps\common\Half-Life`) and remove or rename the ``ns`` folder, then try installing NS.
2021-11-01 00:06:05 +00:00
1. Make sure you don't have any additional command line options for NS.
2022-08-23 18:57:35 +00:00
1. For more help, ask on #help in [the community discord](https://discord.gg/ZUSSBUA)
2020-11-13 23:50:45 +00:00
2021-11-02 18:54:33 +00:00
For Linux:
2023-09-05 14:38:36 +00:00
- Remove or rename the `libstdc++so.6` in the `hlds` directory so the linux distro's can be used instead. The one steam provides is outdated. You may need to rename the `libgcc.so.1` file in the same directory as well.
2023-09-01 03:40:10 +00:00
- 32 bit C libraries might need to be installed. Try `apt-get install libc6-i386` if on debian or ubuntu. The libm.so.6 from it may need to be placed in your half-life or HLDS folder if you cannot install that package.
2021-11-02 18:54:33 +00:00
2018-08-16 10:08:14 +00:00
## Changes
2018-05-01 19:10:04 +00:00
2018-08-16 10:08:14 +00:00
Updates include:
2022-08-23 18:57:35 +00:00
- Widescreen support (now expands FOV up to 16:9 aspect instead of cropping the image)
2021-10-31 23:57:37 +00:00
- AI upscaled model textures can be turned on with the "Use High Definition models" video option
2022-08-23 18:57:35 +00:00
- Many FPS dependent bugs fixed, including jetpack acceleration, so the game can now be fairly played at 200+ FPS
2021-10-31 23:59:21 +00:00
- Quake style queued jumping to make bunnyhopping more accessible (server adjustable via sv_jumpmode)
2023-09-01 03:40:10 +00:00
- Shotgun and grenade launcher have been reworked to fix reload bugs and animate better
2021-10-31 23:57:37 +00:00
- Weapon reloads are now predicted on the client
- New minimal HUD and the Nine Legends HUD can be selected through advanced options or hud_style and hud_mapstyle
2018-08-16 10:08:14 +00:00
- New crosshair system that can be adjusted through the advanced options and cl_cross commands (Thanks [OpenAG](https://github.com/YaLTeR/OpenAG))
- Ambient sounds can be changed in advanced options or via cl_ambientsound
2023-09-01 03:40:10 +00:00
- The marine HUD now tracks research progress and the alien HUD tracks hive growth
- Raw input and sensitivity scaling options are now available and non-accelerated mouse input is now default
- The many other improvements, customization options, and bug fixes can be found in the [release notes](https://github.com/ENSL/NS/releases)
2015-12-10 17:29:55 +00:00
2018-05-01 19:10:04 +00:00
## Compiling
2021-11-01 00:00:37 +00:00
For Windows, compilation should be working if you have VS2019 installed.
2018-08-16 10:08:14 +00:00
For Linux:
First you need some libraries. On Ubuntu it is:
2018-05-01 19:10:04 +00:00
2015-12-10 17:29:55 +00:00
```sh
2023-09-01 03:40:10 +00:00
apt-get install build-essential git gdb gcc-multilib g++-multilib libc6-dev-i386 mesa-common-dev
2015-12-10 17:29:55 +00:00
```
2018-05-01 19:10:04 +00:00
Then you will need to get the files:
```sh
2022-03-07 04:45:35 +00:00
git clone https://github.com/ENSL/NS.git
2018-05-01 19:10:04 +00:00
```
2021-10-31 23:57:37 +00:00
Then cd to the linux directory:
2018-05-01 19:10:04 +00:00
```sh
cd NS/main/source/linux
```
2021-10-31 23:57:37 +00:00
Then build
```sh
make
```
or `make ns` to build the server binary and `make cl_dll` for the client binary. `make clean` to clean.
2015-12-10 17:29:55 +00:00
2023-09-01 03:40:10 +00:00
If you get this error when running the app: `Fatal Error - could not load library (client.so)`, With a high chance it is because of some `UNDEFINED SYMBOLS` in the shared library. But you can check this with this command:
2018-05-01 19:10:04 +00:00
2015-12-10 17:29:55 +00:00
``` sh
2018-05-01 19:10:04 +00:00
ldd -r -d client.so
2015-12-10 17:29:55 +00:00
```
2014-05-28 13:05:01 +00:00
2021-10-31 23:57:37 +00:00
Make sure you have vgui.so copied to the cl_dll folder too on Linux.
2018-05-01 19:10:04 +00:00
## Debugging
2023-09-01 03:40:10 +00:00
For Windows:
Debug builds can be built with the `Debug` build option. The other debug options are currently broken and are a reference from the original UWE source release. After building the debug version and running it, attach the visual studio debugger to hl.exe.
2018-05-01 19:10:04 +00:00
2023-09-01 03:40:10 +00:00
For Linux:
2015-12-10 17:29:55 +00:00
If you want to debug:
```sh
2018-05-01 19:10:04 +00:00
LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH" gdb ./hl_linux r -game ns -dev -steam
2015-12-10 17:29:55 +00:00
```
2023-09-01 03:40:10 +00:00
Due to the new engine and the nature of Linux a lot of changes were made. You can find them with grep -Ril `@Linux`.
2014-05-28 13:05:01 +00:00
2018-07-15 08:23:05 +00:00
For MacOS & lldb:
```
DYLD_LIBRARY_PATH=".:$DYLD_LIBRARY_PATH" /Applications/Xcode.app/Contents/Developer/usr/bin/lldb -- ./hl_osx r -game ns -dev -steam -windowed
```
Have to use XCode's lldb to get around https://stackoverflow.com/a/33589760 (Lack of environment variables). `-windowed` as windowed mode makes it easier to deal with crashes on MacOS.
2015-12-10 17:29:55 +00:00
### Hosting a server
2018-05-01 19:10:04 +00:00
2023-09-01 03:40:10 +00:00
How to set up a [Natural Selection] server with [HLDS].
2023-06-12 17:54:38 +00:00
1. Follow these steps to get steamCMD installed and HLDS updated in it: https://developer.valvesoftware.com/wiki/SteamCMD
2. You'll want to run `app_update 90 validate` multiple times in steamCMD to install HLDS and fully update it, as it won't completely do it the first time.
3. Copy the `ns` directory into the `hlds` directory after installing HLDS from steamcmd
4. Run the game :
2015-12-10 17:29:55 +00:00
```sh
2023-06-12 17:54:38 +00:00
./hlds_run -game ns -autoupdate +map ns_eclipse + sv_secure 1 + port 27015 +hostname "Natural Selection" +maxplayers 32
2015-12-10 17:29:55 +00:00
```
2023-09-01 03:40:10 +00:00
See the [Troubleshooting Tips](https://github.com/ENSL/NS#game-not-working-troubleshooting-tips) for fixes to linux server issues.
2015-12-10 17:29:55 +00:00
If you are behind a NAT(Router) make sure to open at least those ports:
- 27015 UDP (game transmission, pings)
- 26900 UDP (VAC service) -- automatically increments if used in case of additional server processes
2014-05-28 13:05:01 +00:00
2023-09-01 03:40:10 +00:00
For more information see the [HLDS valve wiki](https://developer.valvesoftware.com/wiki/Half-Life_Dedicated_Server).
2014-05-28 13:05:01 +00:00
2023-09-01 03:40:10 +00:00
In order to check if your server is connected to the steam servers copy the following url in your browser and replace `<your IP address>` with your external ip:
2015-12-10 17:29:55 +00:00
`http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=<your IP address>&format=json`
2014-05-28 13:05:01 +00:00
2023-09-01 03:40:10 +00:00
There is an updated version of metamod called [metamod-p](https://github.com/APGRoboCop/metamod-p/).
2014-05-28 13:05:01 +00:00
2023-09-01 03:40:10 +00:00
There are a few different bots for Natural Selection, with Evobot being the newest and most comprehensive:
* [Evobot]
* [RCbot](http://rcbot.bots-united.com/)
* [Whichbot](https://whichbot.sourceforge.net/)
2018-05-01 19:10:04 +00:00
2023-09-01 03:40:10 +00:00
### Useful links
2022-08-23 18:57:35 +00:00
* [Game manual (some outdated info)](https://www.unknownworlds.com/oldwebsite/manuals/comm_manual/basic/index.htm)
2023-09-01 03:40:10 +00:00
* Useful collections of ns files: server addons, maps and more:
* [Brywright](http://www.brywright.co.uk/downloads/files/index.php?dir=natural-selection/)
* [Number-7](http://number-7.com/)
2014-12-16 13:36:27 +00:00
2015-12-10 17:29:55 +00:00
[Natural Selection]: <http://unknownworlds.com/ns/>
[Unknownworlds Entertainment]:<https://github.com/unknownworlds/NS>
[Steam]: <http://store.steampowered.com/about/>
2023-09-01 03:40:10 +00:00
[HLDS]:<https://developer.valvesoftware.com/wiki/Half-Life_Dedicated_Server>
2015-12-10 17:29:55 +00:00
[rcbot]:<http://filebase.bots-united.com/index.php?act=category&id=19>
2023-09-01 03:40:10 +00:00
[Evobot]:<https://github.com/RGreenlees/evobot_mm>
2014-12-16 13:55:39 +00:00
2014-12-16 13:36:27 +00:00
Half Life 1 SDK LICENSE
=======================
https://github.com/ValveSoftware/halflife/blob/master/README.md
You may, free of charge, download and use the SDK to develop a modified Valve game running on the Half-Life engine. You may distribute your modified Valve game in source and object code form, but only for free. Terms of use for Valve games are found in the Steam Subscriber Agreement located here: http://store.steampowered.com/subscriber_agreement/
You may copy, modify, and distribute the SDK and any modifications you make to the SDK in source and object code form, but only for free. Any distribution of this SDK must include this license.txt and third_party_licenses.txt.
DISCLAIMER OF WARRANTIES. THE SOURCE SDK AND ANY OTHER MATERIAL DOWNLOADED BY LICENSEE IS PROVIDED “AS IS”. VALVE AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES WITH RESPECT TO THE SDK, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT, TITLE AND FITNESS FOR A PARTICULAR PURPOSE.
LIMITATION OF LIABILITY. IN NO EVENT SHALL VALVE OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE ENGINE AND/OR THE SDK, EVEN IF VALVE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
2014-01-22 19:59:38 +00:00
Natural Selection copyright and trademarks
==========================================
2014-01-13 19:16:27 +00:00
All artwork, sounds, audio, screenshots, text and code in Natural Selection, Zen of Sudoku, Spark engine and Natural Selection 2 are Copyright © 2014 Unknown Worlds Entertainment, Inc (http://www.unknownworlds.com).
The mark Natural Selection was first represented in association with video-game software in June of 2001, and was first used in commerce around January, 2002. Natural Selection is Registered with the U.S. Patent and Trademark Office (No. 4,179,393).
2014-01-22 19:59:38 +00:00
Natural Selection license
=========================
See COPYING.txt for the GNU GENERAL PUBLIC LICENSE
EXCLUDED CODE: The code described below and contained in the Natural Selection Source Code release is not part of the Program covered by the GPL and is expressly excluded from its terms. You are solely responsible for obtaining from the copyright holder a license for such code and complying with the applicable license terms.
EXCLUDED CODE AND LIBRARIES
2014-01-13 19:16:27 +00:00
- Half Life 1 SDK LICENSE (Copyright(C) Valve Corp.)
- FMOD 3.7.5
- Lua 5.0 (http://lua.org)
2014-01-13 19:16:27 +00:00
- Particle system library by David McAllister (http://www.cs.unc.edu/techreports/00-007.pdf).
Original code and design by Charlie Cleveland (charlie@unknownworlds.com, @flayra).
Many contributions from Karl Patrick (karl.patrick@gmail.com), Petter Rønningen <tankefugl@gmail.com>, Harry Walsh <harry.walsh@gmail.com>, and probably lots of people I forgot.