Announcement

Collapse
No announcement yet.

PARTIAL-FIXED Packaging ClientOnly game in the editor..

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    If i change Type to TargetType.Game, i can cook using the "cook content for windows", but with client i get the error..

    Leave a comment:


  • PARTIAL-FIXED Packaging ClientOnly game in the editor..

    Hi,

    So i'm trying to build a ClientOnly build, i have

    PHP Code:
    public ShooterGameTarget(TargetInfo Target)
    {
        
    Type TargetType.Client;
        
    bUsesSteam true;        

    and in .uproject

    PHP Code:
        "TargetPlatforms": [
            
    "WindowsClient"
        
    ], 
    I already fixed the editor code (to show WindowsClient in the options)

    changed
    PHP Code:
    PackageProjectMenu.h

                
    // Only care about game targets
                
    if ( VanillaPlatform.PlatformInfo->PlatformType != PlatformInfo::EPlatformType::Game || !VanillaPlatform.PlatformInfo->bEnabledForUse || (!VanillaPlatform.PlatformInfo->bEnabledInBinary && FRocketSupport::IsRocket()))
                {
                    continue;
                } 
    to

    PHP Code:
    PackageProjectMenu.h
                
    // Only care about game targets
                
    if (
                    (
                    
    VanillaPlatform.PlatformInfo->PlatformType != PlatformInfo::EPlatformType::Game &&
                    
    VanillaPlatform.PlatformInfo->PlatformType != PlatformInfo::EPlatformType::Client
                    
    )
                    || !
    VanillaPlatform.PlatformInfo->bEnabledForUse || (!VanillaPlatform.PlatformInfo->bEnabledInBinary && FRocketSupport::IsRocket()))
                {
                    continue;
                } 
    and changed

    PHP Code:
    SProjectTargetPlatformSettings.cpp
            
    if(PlatformInfo.IsVanilla() && PlatformInfo.PlatformType == PlatformInfo::EPlatformType::Game)
            {
                
    AvailablePlatforms.Add(&PlatformInfo);
            } 
    to

    PHP Code:
    SProjectTargetPlatformSettings.cpp
            
    if(PlatformInfo.IsVanilla() && 
                (
    PlatformInfo.PlatformType == PlatformInfo::EPlatformType::Game
                
    || PlatformInfo.PlatformType == PlatformInfo::EPlatformType::Client))
            {
                
    AvailablePlatforms.Add(&PlatformInfo);
            } 
    the result is:

    Click image for larger version

Name:	1.png
Views:	1
Size:	851.4 KB
ID:	1137993

    Click image for larger version

Name:	2.png
Views:	1
Size:	298.0 KB
ID:	1137994

    BUUUUUUT, when i try packaging i got a error and idk what means, someone have idea of what means this:

    Click image for larger version

Name:	3.png
Views:	1
Size:	317.8 KB
ID:	1137995


    Thaaaanks
Working...
X