openmohaa/docs/getting_started_running.md

65 lines
3.9 KiB
Markdown
Raw Permalink Normal View History

2023-12-28 20:54:05 +01:00
# Running
## Game selection
2025-04-12 22:47:52 +02:00
**Medal of Honor: Allied Assault** is the default game, but expansions are also supported.
2024-11-23 21:14:42 +01:00
### From the launchers
2025-04-12 22:47:52 +02:00
Base game and expansions can be started from one of the 3 launchers:
2024-11-23 21:14:42 +01:00
- `launch_openmohaa_base`, this starts OpenMoHAA in **Medal of Honor: Allied Assault** mode which is the base game
- `launch_openmohaa_spearhead`, this starts OpenMoHAA in **Medal of Honor: Allied Assault: Spearhead** mode
- `launch_openmohaa_breakthrough`, this starts OpenMoHAA in **Medal of Honor: Allied Assault: Breakthrough** mode
2024-11-04 22:54:46 +01:00
### From command-line
2025-04-12 22:47:52 +02:00
**Spearhead** and **Breakthrough** are supported in OpenMoHAA using the `com_target_game` variable.
2024-09-24 20:06:37 +02:00
2025-04-12 22:47:52 +02:00
To change the target game, append the following command-line arguments to the `openmohaa` and `omohaaded` executable:
2023-12-28 20:54:05 +01:00
2025-04-12 22:47:52 +02:00
- `+set com_target_game 0` for the default base game (mohaa, uses `main` folder)
- `+set com_target_game 1` for the Spearhead expansion (mohaas, uses `mainta` folder)
- `+set com_target_game 2` for the Breakthrough expansion (mohaab, uses `maintt` folder)
2023-12-28 20:54:05 +01:00
2025-04-12 22:47:52 +02:00
OpenMoHAA will also use the correct network protocol version accordingly. The default value of `com_target_game` is 0.
2023-12-28 20:54:05 +01:00
2024-11-04 22:54:46 +01:00
On Windows, a shortcut can be created to the `openmohaa` executable, with the command-line argument appended from above to play an expansion.
2023-12-28 20:54:05 +01:00
You can now start a local OpenMOHAA server or play on a server.
2025-04-12 22:47:52 +02:00
### Using a demo version
2025-04-12 22:47:52 +02:00
The argument `+set com_target_demo 1` must be appended to command-line to play the game or host a server using demo assets. Allied Assault, Spearhead and Breakthrough demos are supported.
2024-09-07 23:58:56 +02:00
## User data location
2023-12-28 20:54:05 +01:00
2024-09-09 23:32:08 +02:00
The location of user-writable data, like the console logfile, saves and configuration files can be found in different locations depending on the platform:
2023-12-28 20:54:05 +01:00
- `%APPDATA%\openmohaa` on Windows
- `~/.openmohaa` on Linux
- `~/Library/Application Support/openmohaa` on macOS
There will be one or more subdirectories like in the game installation folder, they match the game being used: either base game `main` or expansions `mainta`/`maintt`.
2023-12-28 20:54:05 +01:00
2024-09-09 23:32:08 +02:00
This is by design since ioquake3 and has two advantages:
2023-12-28 20:54:05 +01:00
- On a multi-user system, each user will have their own configuration file
- It doesn't overwrite the existing MOHAA configuration in the MOHAA installation directory.
2024-09-22 14:23:51 +02:00
If necessary, the location of user-writable data can be changed manually by setting the `fs_homepath` variable in the command-line argument. This is useful when running a dedicated server that can only use the game directory to store/read data. The value can be a relative path (relative to the current working directory) or an absolute path. Example:
- `+set fs_homepath Z:\openmohaa_data` data will be written inside the fully qualified path `Z:\openmohaa_data`
- `+set fs_homepath homedata` will use the subfolder `homedata` in the process current working directory to write data (will be created automatically)
- `+set fs_homepath .` not recommended, will write data inside the process current working directory
The game directory is intended to be read-only, which is the reason why the home path exists. This prevents existing files in the game directory from being accidentally overwritten.
2024-09-09 23:32:08 +02:00
Note that the configuration file isn't created nor written automatically on a dedicated server (**omohaaded**).
## Playing with bots
OpenMoHAA has a basic bot system that emulates real players. The maximum number of bots is defined by the `sv_maxbots` variable, and the number of initial bots is defined by the `sv_numbots` variable. Bots can also be added or removed using the `addbot` and `removebot` commands.
2024-09-22 14:23:51 +02:00
This feature is a great way to test the gameplay and mods.
2024-10-27 18:19:58 +01:00
Note that maps must have path built for bots to move, multiplayer maps don't have path built by default. The [mp-navigation](https://github.com/openmoh/mp-navigation) PK3 file can be downloaded and installed in the `main` directory, it adds navigation for all multiplayer maps, including multiplayer maps from Spearhead and Breakthrough.