Add server configs, update README, combine repos

This commit is contained in:
Rim 2023-12-10 09:14:42 -05:00
parent 080b3ff484
commit 6d2d85836f
5 changed files with 392 additions and 6 deletions

100
README.md
View File

@ -1,20 +1,108 @@
# H1-Mod Client
![license](https://img.shields.io/github/license/h1-mod/h1-mod.svg)
[![open bugs](https://img.shields.io/github/issues/h1-mod/h1-mod/bug?label=bugs)](https://github.com/h1-mod/h1-mod/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
[![Build](https://github.com/h1-mod/h1-mod/workflows/Build/badge.svg)](https://github.com/h1-mod/h1-mod/actions)
[![Build status](https://ci.appveyor.com/api/projects/status/0sh80kdnsvm53rno?svg=true)](https://ci.appveyor.com/project/h1-mod/h1-mod)
[![Discord](https://img.shields.io/discord/945420505157083208?color=%237289DA&label=members&logo=discord&logoColor=%23FFFFFF)](https://discord.gg/RzzXu5EVnh)
# H1-Mod
[![website](https://img.shields.io/badge/Repackers-_Website-blue)](https://rimmyscorner.com/)
<p align="center">
<img src="assets/github/banner.png?raw=true" />
<img src="assets/github/banner-h1.png?raw=true" />
</p>
## Download
Clone the Git repository or download as ZIP.
- <u>**Download Release (EASIEST)**</u>
- Click on `Releases` at the top and navigate to the latest release
- Download `h1-mod.zip`
- If you plan on running a server, download `H1DedicatedConfigs.zip`
- <u>**Download ZIP**</u>
- Click on the three dots at the top of the repo ( `◘◘◘` )
- Click `Download ZIP`
- <u>**Clone the repository:**</u>
- Open a terminal or command prompt.
- Run the following command:
```
git clone https://git.rimmyscorner.com/Rim/h1-mod.git
```
## Installation
1. Place the executable `h1-mod.exe` in your `Call of Duty Modern Warfare Remastered` directory.
> **Note**: Default location is `C:\Program Files (x86)\Steam\steamapps\common\Call of Duty Modern Warfare Remastered`
2. Place the `localappdata\h1-mod` folder into your Local AppData. Place **ONLY** the `h1-mod` folder in, not `localappdata\h1-mod`. Your final path should look like `C:\Users\%USERPROFILE%\AppData\Local\h1-mod\*`
> **Note**: On Windows, press `Win + R`, type `%localappdata%`, click ok. Default location is `C:\Users\%USERPROFILE%\AppData\Local`
3. Launch `h1-mod.exe`.
4. You can change your name by using `/name PLAYERNAME` in-game.
5. If running a server, extract `H1DedicatedConfigs.zip` into your `Call of Duty Modern Warfare Remastered` folder.
## Repository Contents
- H1-Mod Client
- H1-Mod Dedicated Server Configuration Files
- All Necessary Files
## Added Features
- Removed H1-Mod Watermark
- No Auto-Update
- Changed Console Title
## Getting Game Files
- You can torrent the `Call of Duty Modern Warfare Remastered` game files from [here](https://git.rimmyscorner.com/Rim/cod-games-download/releases/download/v1.0.0/h1_full_game.zip).
- The DLC torrent is included.
## Installing Git (Optional)
If you don't have `git` installed on your machine, follow these steps:
1. Visit the [Git download page](https://git-scm.com/downloads).
2. Download the appropriate version for your operating system.
3. Run the installer.
- During the installation, you will be asked if you want to add Git to your system's PATH environment variable. Ensure you choose the option to do so. This allows you to use Git from the command line without specifying its full path.
4. After installation, open a terminal or command prompt and type `git --version` to ensure Git is correctly installed.
## Compile from Source Code
### Prerequisites
- [Visual Studio 2022](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&cid=2030&passive=false)
- The required code libraries installed using [VSBuildTools](https://aka.ms/vs/17/release/vs_BuildTools.exe)
### Build
1. Clone the Git repository using `git clone https://git.rimmyscorner.com/Parasyn/h1-mod.git` (It is recommended to clone, however you can `Download ZIP` as all submodules have been localized).
2. Run `generate.bat` to initialize the submodules and build the VS .sln file.
3. Open the project in Visual Studio, change the top drop down lists to `Release`, `x64`. You can also modify (or leave same) the Visual Studio edition/path in the `build.bat` file and build the solution via the batch script.
4. Build the application.
<br>
## Disclaimer
This software has been created purely for the purposes of
academic research. It is not intended to be used to attack
other systems. Project maintainers are not responsible or
liable for misuse of the software. Use responsibly.
## Credits:
- [Dss0](https://github.com/Dss0/t7-server-config) - Dedicated Server Files & Tutorial
- [momo5502](https://github.com/momo5502) - Arxan/Steam research, original developer
## ***End README***
# <u>Legacy README.md</u>
### H1-Mod
A client for Call of Duty: Modern Warfare Remastered.
[This project is based on S1x.](https://github.com/XLabsProject/s1x-client)
## Compile from source
### Compile from source
- Clone the Git repo. Do NOT download it as ZIP, that won't work.
- Update the submodules and run `premake5 vs2022` or simply use the delivered `generate.bat`.
@ -27,7 +115,7 @@ A client for Call of Duty: Modern Warfare Remastered.
| `--copy-to=PATH` | Optional, copy the EXE to a custom folder after build, define the path here if wanted. |
| `--dev-build` | Enable development builds of the client. |
## Credits:
### Credits:
- [XLabsProject](https://github.com/XLabsProject) - codebase and iw6x/s1x research
- [quaK](https://github.com/Joelrau) - lots of insight and help
@ -35,6 +123,6 @@ A client for Call of Duty: Modern Warfare Remastered.
- [Skull](https://github.com/skkuull) + [mjkzy](https://github.com/mjkzy) - porting code from s1x
- [momo5502](https://github.com/momo5502) - Arxan/Steam research, developer of XLabsProject :D
## Disclaimer
### Disclaimer
This software has been created purely for the purposes of academic research. It is not intended to be used to attack other systems. Project maintainers are not responsible or liable for misuse of the software. Use responsibly.

BIN
assets/github/banner-h1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 KiB

20
cfg/!start_mp_server.bat Normal file
View File

@ -0,0 +1,20 @@
@echo off
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
set name=H1-MOD Dedicated Server
::Name of the config file the server should use. (default: server.cfg)
set cfg=server.cfg
::Port used by the server (default: 27016)
set port=27016
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS!
set gamepath=%cd%
title H1-MOD - %name% - Server restarter
echo Server "%name%" will load %cfg% and listen on port %port% UDP!
echo To shut down the server close this window first!
echo (%date%) - (%time%) %name% server start.
:server
start /wait /abovenormal h1-mod.exe "%gamepath%" -dedicated +exec "%cfg%" +set net_port %port% +map_rotate
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
goto server

278
cfg/main/server.cfg Normal file
View File

@ -0,0 +1,278 @@
/////////////////////////////////////////////////////////////////////////
// Call of duty: Modern Warfare Remastered MP Dedicated Server Config //
// H1-MOD //
/////////////////////////////////////////////////////////////////////////
// This config best view with Notepad++ OR //
// other *nix compatible editors of your choice.//
//////////////////////////////////////////////////
// Remove "//" in front of lines to allow the //
// server to read them. //
// Anything after "//" is a comment. //
//////////////////////////////////////////////////
//////////////////////////////////////////////////
// SERVER NAME & COLORS TIPS //
//////////////////////////////////////////////////
// //
// ^1 Red //
// ^2 Green //
// ^3 yellow //
// ^4 Blue //
// ^5 Cyan //
// ^6 Pink //
// ^7 White //
// ^8 Depends on the team colors playing. //
// ^9 Dark Red //
// ^0 Black //
// ^: Rainbow //
// //
//////////////////////////////////////////////////
set sv_hostname "H1-Mod Dedicated Server" // Sets the name of your server on the server browser
set sv_motd "" // Sets a custom motd which is shown on the intel message loadscreen when a player joins. Leave blank for defualt intel messages.
//////////////////////////////////////////////////
// BASIC CONFIGURATION //
//////////////////////////////////////////////////
set g_password "" // Password Protected Server. Leave blank if you want players to join or set password if you want to keep public out.
set party_maxplayers "18" // Max players in your server. (Range 2-18)
set sv_timeout "20" // Timeout time period. You will timeout after (20) seconds when attempting to connect or if you are getting connection interruptions
set sv_reconnectlimit "3" // How many times you can try to reconnect
set g_inactivity "420" // Time in seconds before the server will kick a user for inactivity (range 0 - 10000)
set sv_kickBanTime "3600" // Time in seconds for a player temporary ban (on kick/tempban) (range 0 - 3600)
seta g_allowVote "1" // Toggle voting for [player kick/map restart/next map] (0 or 1 (default) )
seta g_deadChat "0" // Toggle allowing dead players to chat with living players (0 (default) or 1)
//////////////////////////////////////////////////
// GENERIC GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_game_disablesprint 0 // Disables the possibility of sprinting
set scr_game_forceuav 0 // Constant UAV
set scr_game_deleteturrets 0 // Disable the use of turrets
set scr_player_forcerespawn 1 // Disable auto respawn
set scr_game_onlyheadshots 0 // Only headshots are valid
set scr_thirdPerson 0 // All players play in third person
//set scr_killstreak_kills_uav 3 // Kills to get UAV
//set scr_killstreak_kills_airstrike 5 // Kills to get Airstrike
//set scr_killstreak_kills_heli 3 // Kills to get Helicopter
set scr_diehard 0 // Hardcore mode
//set scr_killcount_persists 0 // Killstreaks count persist after player died ( Need Testing! )
set scr_game_deathpointloss 0 // Penalty when player die
set scr_game_suicidepointloss 0 // Penalty when player suicide
set scr_team_teamkillpointloss 0 // Penalty when player kill a team mate
set pm_bouncing 0 // Enable bouncing.
set pm_bouncingAllAngles 0 // Enable bouncing from all angles.
set pm_cs_strafing 0 // Enable CS like strafing.
set g_enableElevators 0 // Enable Elevators.
set jump_height 39 // The maxium height of a player's jump (0-1000)
set jump_enableFallDamage 1 // Enable/Disable fall damage. Recommend if you set a higher jump.
set g_speed 190 // Increase or decrease game speed. (0-1000)
set scr_game_perks 1 // Enable/Disable perks
//////////////////////////////////////////////////
// HARDCORE CONFIGURATION //
//////////////////////////////////////////////////
// uncomment below commands for some hardcore //
// by removing the // before each set dvar. //
//////////////////////////////////////////////////
// set g_hardcore "1" // Enable hardcore mode
// set scr_hardcore "1" // Enable hardcore mode again...
// set ui_hud_hardcore "1" // Removes Heads up display which can be used both regular and HC
// set scr_player_maxhealth "30" // Percent of Health players will have on Respawn. (100 is normal. 30 is hardcore)
// set scr_team_fftype "1" // Enable or Disable Friendly Fire. (1 on, 2 reflect, 3 shared)
// set scr_player_healthregentime "0" // Time it takes you to recover damage. (5 is normal, 0 is hardcore)
// set scr_team_teamkillkicklimit "3" // How many times to get kick for team killling.
//////////////////////////////////////////////////
// B3, IW4MADMIN, GAME LOG & RCON SETTINGS //
//////////////////////////////////////////////////
set logfile "2" // Enable loging 1-2? enable. 0 disable. Leave it on if you plan on using B3 or IW4MAdmin.
set g_logSync "1" // 0 only flush on game end, 1 flush when buffer full, 2 always flush after a write, 3 append to old logs.
set g_log "h1-mod\logs\games_mp.log" // IMPORTANT! Make sure the filename is unique for each server you clone!
set rcon_password "" // RemoteControl password, needed for most management tools like IW4MADMIN and B3. Do not skip if you installing IW4MADMIN.
set sv_sayName "^7Server^7" // name server-side 'say' commands show up as.
//////////////////////////////////////////////////
// FREE FOR ALL GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_dm_scorelimit "15" // Score limit to win the game.
set scr_dm_timelimit "10" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_dm_playerrespawndelay "0" // How long player will wait until respawn.
set scr_dm_numlives "0" // Number of lives per player 0 for unlimited.
set scr_dm_roundlimit "1" // Rounds per game.
set scr_dm_winlimit "1" // amount of wins needed to win a round-based game
//////////////////////////////////////////////////
// TEAM DEATHMATCH GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_war_scorelimit "75" // Score limit to win the game.
set scr_war_timelimit "10" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_war_playerrespawndelay "0" // How long player will wait until respawn.
set scr_war_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_war_numlives "0" // Number of lives per player 0 for unlimited.
set scr_war_roundlimit "1" // Rounds per game.
set scr_war_winlimit "1" // amount of wins needed to win a round-based game
//////////////////////////////////////////////////
// Kill Confirmed GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_conf_scorelimit "65" // Score limit to win the game.
set scr_conf_timelimit "10" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_conf_playerrespawndelay "0" // How long player will wait until respawn.
set scr_conf_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_conf_numlives "0" // Number of lives per player 0 for unlimited.
set scr_conf_roundlimit "1" // Rounds per game.
set scr_conf_winlimit "1" // amount of wins needed to win a round-based game
//////////////////////////////////////////////////
// DOMINATION GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_dom_scorelimit "200" // Score limit to win the game.
set scr_dom_timelimit "0" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_dom_playerrespawndelay "0" // How long player will wait until respawn.
set scr_dom_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_dom_numlives "0" // Number of lives per player per game. 0 is unlimited.
set scr_dom_roundlimit "1" // Rounds per game
set scr_dom_winlimit "1" // amount of wins needed to win a round-based game
//////////////////////////////////////////////////
// SEARCH AND DESTROY GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_sd_scorelimit "1" // Score limit to win the game.
set scr_sd_timelimit "2.5" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_sd_playerrespawndelay "0" // How long player will wait until respawn.
set scr_sd_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_sd_numlives "1" // Number of lives per player per game.
set scr_sd_roundlimit "0" // Rounds the game is limited to 0 for unlimited.
set scr_sd_winlimit "4" // amount of wins needed to win a round-based game.
set scr_sd_roundswitch "3" // after X rounds, switch sides.
set scr_sd_bombtimer "45" // Time taken for the bomb to detonate.
set scr_sd_defusetime "5" // Time taken to defuse the bomb.
set scr_sd_multibomb "0" // allow multiple people to 'have the bomb'.
set scr_sd_planttime "5" // How long will it take player to 'plant the bomb'.
//////////////////////////////////////////////////
// SABOTAGE GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_sab_scorelimit "0" // Score limit to win the match.
set scr_sab_timelimit "20" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_sab_bombtimer "30" // Duration in seconds the bomb takes to detonate.
set scr_sab_defusetime "5" // Time taken to defuse the bomb.
set scr_sab_hotpotato "0" // One bomb that the teams must fight over. One defending and one have to plant at the site.
set scr_sab_numlives "0" // Number of lives per player per game.
set scr_sab_planttime "2.5" // Time taken to plant the bomb.
set scr_sab_playerrespawndelay "7.5" // Time before respawn.
set scr_sab_roundlimit "1" // Rounds per game.
set scr_sab_roundswitch "1" // Rounds needed to be played before the teams switch sides.
set scr_sab_waverespawndelay "0" // Time delay for first respawn before the game.
//////////////////////////////////////////////////
// CAPTURE THE FLAG GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_ctf_scorelimit "3" // Score limit to win the match.
set scr_ctf_timelimit "20" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_ctf_numlives "0" // Number of lives per player per game.
set scr_ctf_playerrespawndelay "2.5" // Time before respawn.
set scr_ctf_roundlimit "1" // Rounds per game.
set scr_ctf_waverespawndelay "0" // Time delay for first respawn before the game.
//////////////////////////////////////////////////
// DEMOLITION GAMETYPE SETTINGS //
//////////////////////////////////////////////////
set scr_dd_scorelimit "0" // Score limit to win the match.
set scr_dd_timelimit "20" // Duration in minutes for the game to end if the score limit isn't reached.
set scr_dd_bombtimer "45" // Duration in seconds the bomb takes to detonate.
set scr_dd_defusetime "5" // Time taken to defuse the bomb.
set scr_dd_numlives "0" // Number of lives per player per game.
set scr_dd_planttime "5" // Time taken to plant the bomb.
set scr_dd_playerrespawndelay "0" // Time before respawn.
set scr_dd_roundlimit "3" // Rounds per game.
set scr_dd_roundswitch "1" // Rounds needed to be played before the teams switch sides.
set scr_dd_waverespawndelay "0" // Time delay for first respawn before the game.
//////////////////////////////////////////////////
// GAMETYPES LIST //
//////////////////////////////////////////////////
// //
// dm - Free-for-all //
// war - Team Deathmatch //
// sd - Search and Destroy //
// dom - Domination //
// conf - Kill Confirmed //
// sab - Sabotage //
// koth - Headquarters //
// hp - Hardpoint //
// gun - Gun Game //
// ctf - Capture The Flag //
// dd - Demolition //
// //
//////////////////////////////////////////////////
set g_gametype "war" // Sets the defualt gametype of the server if no gametype exist on map rotation
set ui_gametype "war"
//scr_game_hodgepodgeMode "9" // Custom Gamemodes. 2 - Slasher | 4 - Snipers only | 6-7 - RPG Only | 9 - Prophunt
//////////////////////////////////////////////////
// MAP SHORT NAMES ROTATION LIST //
//////////////////////////////////////////////////
// //
// Ambush* - mp_convoy //
// Backlot* - mp_backlot //
// Bog* - mp_bog //
// Crash* - mp_crash //
// Crossfire* - mp_crossfire //
// District* - mp_citystreets //
// Downpour* - mp_farm //
// Overgrown - mp_overgrown //
// Shipment - mp_shipment //
// Vacant* - mp_vacant //
// Lobby Map - mp_vlobby_room //
// //
// Variety Map Pack //
// //
// Broadcast - mp_broadcast //
// Chinatown - mp_carentan //
// Countdown - mp_countdown //
// Bloc - mp_bloc //
// Creek - mp_creek //
// Killhouse - mp_killhouse //
// Pipeline* - mp_pipeline //
// Strike* - mp_strike //
// Showdown* - mp_showdown //
// Wet Work - mp_cargoship //
// //
// Event Updates //
// //
// Winter Crash - mp_crash_snow //
// Day Break - mp_farm_spring //
// Beach Bog* - mp_bog_summer //
// //
// * - Prop Hunt Maps //
// //
//////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
// EXAMPLE MAP+GAMETYPES ROTATIONS //
////////////////////////////////////////////////////////////////////////
// Single Game Mode + Maps: //
// sv_mapRotation "gametype war map mp_bog map mp_crash map mp_farm" //
// //
// Several Mix Game Modes + Maps: //
// sv_mapRotation "gametype war map mp_bog gametype dm map mp_crash" //
////////////////////////////////////////////////////////////////////////
set sv_maprotation "gametype war map mp_convoy map mp_backlot map mp_bog map mp_crash map mp_crossfire map mp_citystreets map mp_farm map mp_overgrown map mp_shipment map mp_vacant map mp_boardcast map mp_carentan map mp_countdown map mp_bloc map mp_creek map mp_killhouse map mp_pipeline map mp_strike map mp_showdown map mp_cargoship map mp_crash_snow map mp_farm_spring map mp_bog_summer"

BIN
h1-mod.exe Normal file

Binary file not shown.