keywords:UE4, CMD arguments, Launch Game, Windowed

Common Commands

Run Game In Windowed Mode

Example:

MyProject.exe -WINDOWED

If running game in windows package, you can change to Windowed Mode from Fullscreen Mode by press F11.

Client & Server

Dedicated Server:

"C:\UE\Engine\Binaries\Win64\UE4Editor.exe" "%CD%\MyGame.uproject" /Game/Maps/TestMap port=7777 -server -log

Listen Server:

"C:\UE\Engine\Binaries\Win64\UE4Editor.exe" "%CD%\MyGame.uproject" /Game/Maps/TestMap?Listen port=7777 -game -log

Client:

"C:\UE\Engine\Binaries\Win64\UE4Editor.exe" "%CD%\MyGame.uproject" 127.0.0.1:7777 -game -log -ResX=1280 -ResY=960 -WinX=800 -WinY=20

Server don’t check client tick for replication, in order to debug client:

MyGame.exe -NoTimeouts

Reference:
Command-Line Arguments
https://docs.unrealengine.com/latest/INT/Programming/Basics/CommandLineArguments/index.html

Client-Server Model
https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Networking/Server/

Commandlets

Documents

UE4: How To Write a Commandlet
https://www.oneoddsock.com/2020/07/08/ue4-how-to-write-a-commandlet/


我住长江头,君住长江尾;日日思君不见君,共饮长江水。—李之仪《卜算子》