GithubHelp home page GithubHelp logo

theemidee / ue4powershellpackager Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 11 KB

Powershell scripts to help package games in UE4 without using the editor

License: MIT License

PowerShell 100.00%

ue4powershellpackager's Introduction

See https://github.com/Zoubi/UE4Packager for a more complete and multi platforms implementation in Python

Powershell scripts to ( Build / Cook / Package / Archive / Patch ) Unreal Engine Projects

Usage

Call .\Utils\Package.ps1 with the following mandatory arguments (with the authorized values): -Action : "BuildEditor", "Build", "Cook", "BuildCook", "BuildCookArchive", "Patch" -Platform : "Win64", "XboxOne", "PS4", "Switch" -Configuration: "Development", "Debug", "Shipping"

The full list of the accepted parameters can be found in BuildParameters.ps1

To avoid passing arguments which do not change accross all package options (like UERootFolder, ArchiveDirectoryRoot or ProjectName), you can edit the file UserVariables.ps1, which is included automatically by Package.ps1

The script checks the arguments you give to it to make sure everything is correct before calling RunUAT, and will exit prematurely with an error message so you can fix your command line. (For example, you must provide a version number when building a shipping package, or you must define against which release number you want to create a patch)

Some options worth noting:

-Backup : if set to $true, the packager will use RoboCopy to copy the output located in the archive directory to a backup location of your choice (defined by the argument BackupDirectoryRoot)

-Stub : if set to $true, the packager won't run any action, but will output in the console the processes it should use, with the arguments. This is useful to check if everything is allright

-PlatformRegionMap : it's a dictionary property which allows, for some platforms (mainly for consoles) to specify which regions your game can be packaged to, associated with the titleid argument you must give to RunUAT, which is the real id of your game in the console administrative backend

As a convenience, you will find some scripts which will call Package.ps1 with predefined options to quickly use the packager. They are named BuildCookArchive-XXX.ps1. You just need to update UserVariables according to your working environment and you are good to go! Note than you can add a param section at the top of those scripts in case you need to pass user defined arguments to the packager (like the version number in BuildCookArchive-Win64-Shipping.ps1)

ue4powershellpackager's People

Contributors

theemidee avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

brentclarke

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.