설명 없음

lumberyard-employee-dm 9f0d624b82 Updated the README.md to account for the correct source folder path to 3 년 전
.github ce015bf1e6 Add initial bug and feature templates 3 년 전
Assets e9dbf10e36 Implement initial performance test harness 3 년 전
BURT 861e63dd50 Fixed casing of all .fbx.assetinfo files to match their .fbx (#84) 3 년 전
Config a9c9a11fc4 Setup repository content 4 년 전
Gem 30541b97be Removed the assets_scan_folder.setreg file as it is no supported for 3 년 전
InputBindings 3d71ca9275 Adding in in-progress input bindings for improved camera controls (not fully hooked up yet) 3 년 전
Jack e2feca38ed Updated the @assets@ alias to be @projectproductassets@ 3 년 전
Levels 2fc2ec9540 Added a workaround switch to avoid issues with deactivating network entities. 3 년 전
LightingPresets a9c9a11fc4 Setup repository content 4 년 전
Materials bb83e9c6c1 Final update copyright headers to reference license files at the repo root (#23) 4 년 전
Objects 419b3cfb68 Added test assets 4 년 전
Platform 9f0d624b82 Updated the README.md to account for the correct source folder path to 3 년 전
Prefabs 8f3e910e43 Updated prefabs 3 년 전
Registry 30541b97be Removed the assets_scan_folder.setreg file as it is no supported for 3 년 전
Scripts 10e6e9f32b Added jenkinsfile 3 년 전
ShaderLib e7d22b7afc Merged main 4 년 전
Shaders bb83e9c6c1 Final update copyright headers to reference license files at the repo root (#23) 4 년 전
cmake 0bdec351ab Adapts to new template (#98) 3 년 전
scriptcanvas cccbb74c92 Resaving SpawnIfAuthority script canvas. No edits, but the resave fixes an issue and allows the cube/sphere prefab to be spawned. Validated the spheres exist on server, but are filtered out on clients 3 년 전
.gitattributes 9cd7e08167 Initial commit 4 년 전
.gitignore 9cd7e08167 Initial commit 4 년 전
.lfsconfig d139a3a602 Updating .lfsconfig comments only 4 년 전
CMakeLists.txt 0bdec351ab Adapts to new template (#98) 3 년 전
LICENSE.txt 93c55dc674 o3de-multiplayersample main - license update 4 년 전
LICENSE_APACHE2.TXT 93c55dc674 o3de-multiplayersample main - license update 4 년 전
LICENSE_MIT.TXT 93c55dc674 o3de-multiplayersample main - license update 4 년 전
README.md 9f0d624b82 Updated the README.md to account for the correct source folder path to 3 년 전
README_LINUX.md 2b1cc4bbe9 Address CR feedback 3 년 전
SurfaceTypeMaterialLibrary.physmaterial 3a00b5d968 SPEC-6404 Added networked rigid body component 4 년 전
autoexec.cfg a9c9a11fc4 Setup repository content 4 년 전
client.cfg 6ad2db0f9e Added server.cfg and client.cfg to the project 3 년 전
default.blastconfiguration a9c9a11fc4 Setup repository content 4 년 전
editor.cfg 8f40c460c0 Correcting case 3 년 전
game.cfg a9c9a11fc4 Setup repository content 4 년 전
generate_asset_cmake.bat bb83e9c6c1 Final update copyright headers to reference license files at the repo root (#23) 4 년 전
multiplayersample_asset_files.cmake bb83e9c6c1 Final update copyright headers to reference license files at the repo root (#23) 4 년 전
preview.png ed9bf00ac9 Replace Lumberyard Beaver preview image with default O3DE image 3 년 전
project.json 9f0d624b82 Updated the README.md to account for the correct source folder path to 3 년 전
server.cfg 6ad2db0f9e Added server.cfg and client.cfg to the project 3 년 전

README.md

MultiplayerSample Project

A simple third-person multiplayer sample for O3DE.

NOTE: For Linux, see the Linux specific setup in README_LINUX.

Download and Install

This repository uses Git LFS for storing large binary files. You will need to create a Github personal access token to authenticate with the LFS service.

Create a Git Personal Access Token

You will need your personal access token credentials to authenticate when you clone the repository.

Create a personal access token with the 'repo' scope.

(Recommended) Verify you have a credential manager installed to store your credentials

Recent versions of Git install a credential manager to store your credentials so you don't have to put in the credentials for every request. It is highly recommended you check that you have a credential manager installed and configured

Step 1. Clone the repository

You can clone the project to any folder locally, including inside the engine folder. If you clone the project inside an existing Git repository (e.g. o3de) you should add the project folder to the Git exclude file for the existing repository.

Option #1 (Recommended) - cloning into a folder outside the engine repository folder

# clone the project into a folder outside your engine repository folder
> git clone https://github.com/o3de/o3de-multiplayersample.git
Cloning into 'o3de-multiplayersample'...

Option #2 - cloning into the engine repository folder

# clone the project into a folder named 'o3de-multiplayersample' in your existing engine repository folder
> git clone https://github.com/o3de/o3de-multiplayersample.git c:/path/to/o3de/o3de-multiplayersample
Cloning into 'o3de-multiplayersample'...

# modify the local engine git exclude file to ignore the project folder
> echo o3de-multiplayersample > c:/path/to/o3de/.git/info/exclude

If you have a Git credential helper configured, you should not be prompted for your credentials anymore.

Step 2. Register the engine and project

# register the engine (only need to do this once)
> c:/path/to/o3de/scripts/o3de register --this-engine

# register the project
> c:/path/to/o3de/scripts/o3de register -p c:/path/to/o3de-multiplayersample

Step 3. Configure and build

Option #1 (Recommended) - Project-centric approach

This option will output all the project binaries in the project's build folder e.g. c:/path/to/o3de-multiplayersample/build

# example configure command
> cmake -S c:/path/to/o3de-multiplayersample -B c:/path/to/o3de-multiplayersample/build/windows_vs2019 -G "Visual Studio 16" -DLY_3RDPARTY_PATH="c:/3rdparty"

# example build command
> cmake --build c:/path/to/o3de-multiplayersample/build/windows_vs2019 --target Editor MultiplayerSample.GameLauncher MultiplayerSample.ServerLauncher --config profile -- /m /nologo

Option #2 - Engine-centric approach to building a project

This option will output all the project and engine binaries in the engine's build folder e.g. c:/path/to/o3de/build

# example configure command
> cmake -S c:/path/to/o3de -B c:/path/to/o3de/build/windows_vs2019 -G "Visual Studio 16" -DLY_3RDPARTY_PATH="c:/3rdparty" -DLY_PROJECTS="c:/path/to/o3de-multiplayersample"

# example build command
> cmake --build c:/path/to/o3de/build/windows_vs2019 --target Editor MultiplayerSample.GameLauncher MultiplayerSample.ServerLauncher --config profile -- /m /nologo

Step 4. Setup Client and Server

Under project root, there should be 2 files: client.cfg and server.cfg. File client.cfg should contain:

connect

File server.cfg should contain:

host
LoadLevel Levels/SampleBase/SampleBase.spawnable

If these cfg files are not present, create them as they will be used to when launching server and client launchers.

Running the Server

A server can be run as follows

MultiplayerSample.ServerLauncher.exe --console-command-file=server.cfg 

Running the Server in the Editor

By default, launching a local server from the editor during Play Mode is enabled. To disable this behavior, update the editorsv_enabled value in the editor.cfg file to false.

Refer to the O3DE document Test Multiplayer Games in the O3DE Editor for the complete list of console variables (cvar) which support play in the editor with servers.

Running the Client

A client can be run with:

MultiplayerSample.GameLauncher.exe --console-command-file=client.cfg

This will connect a client to the local server and start a multiplayer session.

More Information

License

For terms please see the LICENSE*.TXT file at the root of this distribution.