ue4plugins / LoadingScreen

A plugin for Unreal Engine 4 to expose simple controls for managing load screens.
MIT License
504 stars 163 forks source link

'ReadOnlyTargetRules' could not be found #15

Open Gatts011 opened 7 years ago

Gatts011 commented 7 years ago

Hi Nick

Im trying to use this plugin for a game. I get this error when I copy git download into plugins folder and try regenerate: error CS0246: The type or namespace name 'ReadOnlyTargetRules' could not be found (are you missing a using directive or an assembly reference?) UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files.

I did see a incompatible version error in 1 of my many, many attempts to add the plugin. Im using 4.14 source.

any advise is hugely appreciated

Abatron commented 7 years ago

Hi Gatts, Nick already updated the LoadingScreen.Build.cs file to reflect changes in 4.16 targetrules changes. Use this for your 4.14 version


namespace UnrealBuildTool.Rules
{
    public class LoadingScreen : ModuleRules
    {
        public LoadingScreen(TargetInfo Target)
        {
            PrivateIncludePaths.Add("LoadingScreen/Private");

            PublicDependencyModuleNames.AddRange(
                new string[]
                {
                    "Core",
                    "CoreUObject",
                    "MoviePlayer",
                    "Slate",
                    "SlateCore",
                    "InputCore",
                    "RenderCore",
                    "Engine"
                }
                );
        }
    }
}
Gatts011 commented 7 years ago

Thanks,

but im getting this error now:

Severity Code Description Project File Line Suppression State Error All source files in module "LoadingScreen" must include the same precompiled header first. Currently "C:\GAME1\DL Engines\UE4.14GitBasic\Engine\Plugins\Media\LoadingScreen-master\Source\LoadingScreen\Private\LoadingScreenPrivatePCH.h" is included by most of the source files. The following source files are not including "C:\GAME1\DL Engines\UE4.14GitBasic\Engine\Plugins\Media\LoadingScreen-master\Source\LoadingScreen\Private\LoadingScreenPrivatePCH.h" as their first include: UE4 C:\Users\Gatts\Documents\Unreal Projects\RVT6\RVT6\Intermediate\ProjectFiles\EXEC 1

On Tue, Mar 28, 2017 at 3:16 PM, Jason notifications@github.com wrote:

Hi Gatts, Nick already updated the LoadingScreen.Build.cs file to reflect changes in 4.16 targetrules changes. Use this for your 4.14 version

`namespace UnrealBuildTool.Rules { public class LoadingScreen : ModuleRules { public LoadingScreen(TargetInfo Target) { PrivateIncludePaths.Add("LoadingScreen/Private");

  PublicDependencyModuleNames.AddRange(
      new string[]
      {
          "Core",
          "CoreUObject",
          "MoviePlayer",
          "Slate",
          "SlateCore",
          "InputCore",
            "RenderCore",
            "Engine"
      }
      );

} }

}`

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ue4plugins/LoadingScreen/issues/15#issuecomment-289766012, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1U5Etu9iTOcVfXCQBCg5XgVkZfBXB6ks5rqQgygaJpZM4MrcFZ .

-- Regards

Toby French Director Midnight Media CC

2782 815 1063

Disclaimer and Confidentiality Note: This email, any attachments to it (“communication”), as well as all rights attaching to both, unless the context clearly indicates otherwise, are the sole property of Midnight Media CC, and/or its subsidiaries, affiliates, divisions, and/or holding company/companies (“the Group”). The communication contains information intended solely for the addressee/s named above, and is confidential and/or private. Any unauthorised use and/or interception of this e-mail is illegal. The communication may contain confidential and/or privileged information and may not be copied, forwarded or disclosed to any unauthorised person. If you receive this message in error, please notify the sender immediately by email, and thereafter delete the message, and do not disclose or use its contents or that of any attachments in any manner whatsoever. The Group disclaims all liability whatsoever for any and all loss or damages whatsoever and howsoever incurred and/or suffered resulting and/or arising from the communication. The Group does not warrant the integrity of the communication, nor that it is free of errors, viruses, interception or interference, and disclaims all liability for any such. Views and opinions are those of the sender unless clearly stated as being that of the Group. The authority of the sender to bind the Group should be verified by the recipient and can not be assumed.

Abatron commented 7 years ago

In LoadingScreenSettings.cpp make this header change: //#include "LoadingScreenSettings.h"

include "LoadingScreenPrivatePCH.h"

in SSimpleLoadingScreen.cpp make this header change: //#include "SSimpleLoadingScreen.h"

include "LoadingScreenPrivatePCH.h"

and so forth for each file that errors for that

You can see all of the 4.16 changes on Nick's last commit: https://github.com/ue4plugins/LoadingScreen/commit/2d8e61c6f3dc85ecbf5e285eb286ab453c025516

Gatts011 commented 7 years ago

blessed be SonOfJay! this has worked

Thanks a mill!

On Tue, Mar 28, 2017 at 4:29 PM, Jason notifications@github.com wrote:

In LoadingScreenSettings.cpp make this header change: //#include "LoadingScreenSettings.h"

include "LoadingScreenPrivatePCH.h"

in SSimpleLoadingScreen.cpp make this header change: //#include "SSimpleLoadingScreen.h"

include "LoadingScreenPrivatePCH.h"

and so forth for each file that errors for that

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ue4plugins/LoadingScreen/issues/15#issuecomment-289788382, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1U5GyqwnPL5xivznNU2R-iYNyRrXAyks5rqRlRgaJpZM4MrcFZ .

-- Regards

Toby French Director Midnight Media CC

2782 815 1063

Disclaimer and Confidentiality Note: This email, any attachments to it (“communication”), as well as all rights attaching to both, unless the context clearly indicates otherwise, are the sole property of Midnight Media CC, and/or its subsidiaries, affiliates, divisions, and/or holding company/companies (“the Group”). The communication contains information intended solely for the addressee/s named above, and is confidential and/or private. Any unauthorised use and/or interception of this e-mail is illegal. The communication may contain confidential and/or privileged information and may not be copied, forwarded or disclosed to any unauthorised person. If you receive this message in error, please notify the sender immediately by email, and thereafter delete the message, and do not disclose or use its contents or that of any attachments in any manner whatsoever. The Group disclaims all liability whatsoever for any and all loss or damages whatsoever and howsoever incurred and/or suffered resulting and/or arising from the communication. The Group does not warrant the integrity of the communication, nor that it is free of errors, viruses, interception or interference, and disclaims all liability for any such. Views and opinions are those of the sender unless clearly stated as being that of the Group. The authority of the sender to bind the Group should be verified by the recipient and can not be assumed.

Gatts011 commented 7 years ago

sorry to ask but how would I add in the widget functionality as the "bonuses" section on this page

https://wiki.unrealengine.com/Loading_Screen

On Tue, Mar 28, 2017 at 5:33 PM, Toby French midnightmediamail@gmail.com wrote:

blessed be SonOfJay! this has worked

Thanks a mill!

On Tue, Mar 28, 2017 at 4:29 PM, Jason notifications@github.com wrote:

In LoadingScreenSettings.cpp make this header change: //#include "LoadingScreenSettings.h"

include "LoadingScreenPrivatePCH.h"

in SSimpleLoadingScreen.cpp make this header change: //#include "SSimpleLoadingScreen.h"

include "LoadingScreenPrivatePCH.h"

and so forth for each file that errors for that

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ue4plugins/LoadingScreen/issues/15#issuecomment-289788382, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1U5GyqwnPL5xivznNU2R-iYNyRrXAyks5rqRlRgaJpZM4MrcFZ .

-- Regards

Toby French Director Midnight Media CC

2782 815 1063

Disclaimer and Confidentiality Note: This email, any attachments to it (“communication”), as well as all rights attaching to both, unless the context clearly indicates otherwise, are the sole property of Midnight Media CC, and/or its subsidiaries, affiliates, divisions, and/or holding company/companies (“the Group”). The communication contains information intended solely for the addressee/s named above, and is confidential and/or private. Any unauthorised use and/or interception of this e-mail is illegal. The communication may contain confidential and/or privileged information and may not be copied, forwarded or disclosed to any unauthorised person. If you receive this message in error, please notify the sender immediately by email, and thereafter delete the message, and do not disclose or use its contents or that of any attachments in any manner whatsoever. The Group disclaims all liability whatsoever for any and all loss or damages whatsoever and howsoever incurred and/or suffered resulting and/or arising from the communication. The Group does not warrant the integrity of the communication, nor that it is free of errors, viruses, interception or interference, and disclaims all liability for any such. Views and opinions are those of the sender unless clearly stated as being that of the Group. The authority of the sender to bind the Group should be verified by the recipient and can not be assumed.

-- Regards

Toby French Director Midnight Media CC

2782 815 1063

Disclaimer and Confidentiality Note: This email, any attachments to it (“communication”), as well as all rights attaching to both, unless the context clearly indicates otherwise, are the sole property of Midnight Media CC, and/or its subsidiaries, affiliates, divisions, and/or holding company/companies (“the Group”). The communication contains information intended solely for the addressee/s named above, and is confidential and/or private. Any unauthorised use and/or interception of this e-mail is illegal. The communication may contain confidential and/or privileged information and may not be copied, forwarded or disclosed to any unauthorised person. If you receive this message in error, please notify the sender immediately by email, and thereafter delete the message, and do not disclose or use its contents or that of any attachments in any manner whatsoever. The Group disclaims all liability whatsoever for any and all loss or damages whatsoever and howsoever incurred and/or suffered resulting and/or arising from the communication. The Group does not warrant the integrity of the communication, nor that it is free of errors, viruses, interception or interference, and disclaims all liability for any such. Views and opinions are those of the sender unless clearly stated as being that of the Group. The authority of the sender to bind the Group should be verified by the recipient and can not be assumed.

Abatron commented 7 years ago

Glad that helped, those settings are available once the plugin is loaded into your project.

Look at the new category in your editor project settings. A new category under "Game" & "Loading Screen". There you can set your options. Good luck.

CharlieBehan commented 7 years ago

Im getting the exact same error, I made the changes you mentioned but still no change. Any idea what I could be doing wrong? I would really appreciate any other advice or suggestions you may have.

Severity Code Description Project File Line Suppression State Error All source files in module "LoadingScreen" must include the same precompiled header first. Currently "C:\GAME1\DL Engines\UE4.14GitBasic\Engine\Plugins\Media\LoadingScreen-master\Source\LoadingScreen\Private\LoadingScreenPrivatePCH.h" is included by most of the source files. The following source files are not including "C:\GAME1\DL Engines\UE4.14GitBasic\Engine\Plugins\Media\LoadingScreen-master\Source\LoadingScreen\Private\LoadingScreenPrivatePCH.h" as their first include: UE4 C:\Users\Gatts\Documents\Unreal Projects\RVT6\RVT6\Intermediate\ProjectFiles\EXEC 1

Gatts011 commented 7 years ago

Are you adding to engine or project?

Try deleting saved and intermediate folders then regenerate VS files, then rebuild in project in VS. Make to to run in standalone. If you dont come right give me a shout and ill send you my files

On Sat, Apr 15, 2017 at 6:09 PM, CharlieBehan notifications@github.com wrote:

Im getting the exact same error, I made the changes you mentioned but still no change. Any idea what I could be doing wrong? I would really appreciate any other advice or suggestions you may have.

Severity Code Description Project File Line Suppression State Error All source files in module "LoadingScreen" must include the same precompiled header first. Currently "C:\GAME1\DL Engines\UE4.14GitBasic\Engine\Plugins\Media\LoadingScreen- master\Source\LoadingScreen\Private\LoadingScreenPrivatePCH.h" is included by most of the source files. The following source files are not including "C:\GAME1\DL Engines\UE4.14GitBasic\Engine\Plugins\Media\LoadingScreen- master\Source\LoadingScreen\Private\LoadingScreenPrivatePCH.h" as their first include: UE4 C:\Users\Gatts\Documents\Unreal Projects\RVT6\RVT6\Intermediate\ProjectFiles\EXEC 1

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ue4plugins/LoadingScreen/issues/15#issuecomment-294302489, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1U5Mlcg_osPJ-0-cbzPuB-hYh3GcAAks5rwOu_gaJpZM4MrcFZ .

-- Regards

Toby French Director Midnight Media CC

2782 815 1063

Disclaimer and Confidentiality Note: This email, any attachments to it (“communication”), as well as all rights attaching to both, unless the context clearly indicates otherwise, are the sole property of Midnight Media CC, and/or its subsidiaries, affiliates, divisions, and/or holding company/companies (“the Group”). The communication contains information intended solely for the addressee/s named above, and is confidential and/or private. Any unauthorised use and/or interception of this e-mail is illegal. The communication may contain confidential and/or privileged information and may not be copied, forwarded or disclosed to any unauthorised person. If you receive this message in error, please notify the sender immediately by email, and thereafter delete the message, and do not disclose or use its contents or that of any attachments in any manner whatsoever. The Group disclaims all liability whatsoever for any and all loss or damages whatsoever and howsoever incurred and/or suffered resulting and/or arising from the communication. The Group does not warrant the integrity of the communication, nor that it is free of errors, viruses, interception or interference, and disclaims all liability for any such. Views and opinions are those of the sender unless clearly stated as being that of the Group. The authority of the sender to bind the Group should be verified by the recipient and can not be assumed.

CharlieBehan commented 7 years ago

Deleting saved and intermediate folders then regenerating VS files seemed to fix it!

Thank you so much for the help :)

Gatts011 commented 7 years ago

Glad i could help

On Tue, Apr 18, 2017 at 3:29 PM, CharlieBehan notifications@github.com wrote:

Deleting saved and intermediate folders then regenerating VS files seemed to fix it!

Thank you so much for the help :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ue4plugins/LoadingScreen/issues/15#issuecomment-294844404, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1U5GBKoN8NR9crg-eXuueXZs-2VmRCks5rxLrJgaJpZM4MrcFZ .

-- Regards

Toby French Director Midnight Media CC

2782 815 1063

Disclaimer and Confidentiality Note: This email, any attachments to it (“communication”), as well as all rights attaching to both, unless the context clearly indicates otherwise, are the sole property of Midnight Media CC, and/or its subsidiaries, affiliates, divisions, and/or holding company/companies (“the Group”). The communication contains information intended solely for the addressee/s named above, and is confidential and/or private. Any unauthorised use and/or interception of this e-mail is illegal. The communication may contain confidential and/or privileged information and may not be copied, forwarded or disclosed to any unauthorised person. If you receive this message in error, please notify the sender immediately by email, and thereafter delete the message, and do not disclose or use its contents or that of any attachments in any manner whatsoever. The Group disclaims all liability whatsoever for any and all loss or damages whatsoever and howsoever incurred and/or suffered resulting and/or arising from the communication. The Group does not warrant the integrity of the communication, nor that it is free of errors, viruses, interception or interference, and disclaims all liability for any such. Views and opinions are those of the sender unless clearly stated as being that of the Group. The authority of the sender to bind the Group should be verified by the recipient and can not be assumed.

Gatts011 commented 6 years ago

Hi jason,

I get this error now after upgrading to 4.15.2

works fine in standalone but wont build...

1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------ 1> Creating makefile for ShaderCompileWorker (no existing makefile) 1> Target is up to date 1> Deploying ShaderCompileWorker Win64 Development... 1> Total build time: 3.11 seconds (NoActionsToExecute executor: 0.00 seconds) 2>------ Build started: Project: RVT8, Configuration: Development_Editor x64 ------ 2> Performing full C++ include scan (building a new target) 2> Creating makefile for RVT8Editor (no existing makefile) 2> Performing 4 actions (4 in parallel) 2> Module.LoadingScreen.cpp 2> LoadingScreen.generated.cpp 2>C:\GAME1\DL Engines\UE_4.15.2\Engine\Source\Runtime\CoreUObject\Public\CoreUObject.h(6): warning : Monolithic headers should not be used by this module. Please change it to explicitly include the headers it needs. 2> [3/4] Link UE4Editor-LoadingScreen.dll 2> [4/4] Link UE4Editor-LoadingScreen.lib 2> Creating library C:\GAME1\DL Engines\UE_4.15.2\Engine\Plugins\Media\LoadingScreen-master\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-LoadingScreen.lib and object C:\GAME1\DL Engines\UE_4.15.2\Engine\Plugins\Media\LoadingScreen-master\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-LoadingScreen.exp 2> Creating library C:\GAME1\DL Engines\UE_4.15.2\Engine\Plugins\Media\LoadingScreen-master\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-LoadingScreen.suppressed.lib and object C:\GAME1\DL Engines\UE_4.15.2\Engine\Plugins\Media\LoadingScreen-master\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-LoadingScreen.suppressed.exp 2> Deploying RVT8Editor Win64 Development... 2> Total build time: 143.23 seconds (Local executor: 95.20 seconds) ========== Build: 2 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========

On Wed, Apr 19, 2017 at 4:01 PM, Toby French midnightmediamail@gmail.com wrote:

Glad i could help

On Tue, Apr 18, 2017 at 3:29 PM, CharlieBehan notifications@github.com wrote:

Deleting saved and intermediate folders then regenerating VS files seemed to fix it!

Thank you so much for the help :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ue4plugins/LoadingScreen/issues/15#issuecomment-294844404, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1U5GBKoN8NR9crg-eXuueXZs-2VmRCks5rxLrJgaJpZM4MrcFZ .

-- Regards

Toby French Director Midnight Media CC

2782 815 1063

Disclaimer and Confidentiality Note: This email, any attachments to it (“communication”), as well as all rights attaching to both, unless the context clearly indicates otherwise, are the sole property of Midnight Media CC, and/or its subsidiaries, affiliates, divisions, and/or holding company/companies (“the Group”). The communication contains information intended solely for the addressee/s named above, and is confidential and/or private. Any unauthorised use and/or interception of this e-mail is illegal. The communication may contain confidential and/or privileged information and may not be copied, forwarded or disclosed to any unauthorised person. If you receive this message in error, please notify the sender immediately by email, and thereafter delete the message, and do not disclose or use its contents or that of any attachments in any manner whatsoever. The Group disclaims all liability whatsoever for any and all loss or damages whatsoever and howsoever incurred and/or suffered resulting and/or arising from the communication. The Group does not warrant the integrity of the communication, nor that it is free of errors, viruses, interception or interference, and disclaims all liability for any such. Views and opinions are those of the sender unless clearly stated as being that of the Group. The authority of the sender to bind the Group should be verified by the recipient and can not be assumed.

-- Regards

Toby French Director Midnight Media CC

2782 815 1063

Disclaimer and Confidentiality Note: This email, any attachments to it (“communication”), as well as all rights attaching to both, unless the context clearly indicates otherwise, are the sole property of Midnight Media CC, and/or its subsidiaries, affiliates, divisions, and/or holding company/companies (“the Group”). The communication contains information intended solely for the addressee/s named above, and is confidential and/or private. Any unauthorised use and/or interception of this e-mail is illegal. The communication may contain confidential and/or privileged information and may not be copied, forwarded or disclosed to any unauthorised person. If you receive this message in error, please notify the sender immediately by email, and thereafter delete the message, and do not disclose or use its contents or that of any attachments in any manner whatsoever. The Group disclaims all liability whatsoever for any and all loss or damages whatsoever and howsoever incurred and/or suffered resulting and/or arising from the communication. The Group does not warrant the integrity of the communication, nor that it is free of errors, viruses, interception or interference, and disclaims all liability for any such. Views and opinions are those of the sender unless clearly stated as being that of the Group. The authority of the sender to bind the Group should be verified by the recipient and can not be assumed.

Gatts011 commented 6 years ago

Toby French has sent you a message via Indiegogo about the LightFood campaign.

Hi there,

I'm reaching out to ask for your support for my campaign: "LightFood."

There are two ways to help:

  1. Contribute - even small contributions raise our popularity and give us more visibility on the site.
  2. Post to Facebook - in the end, the more people hear about us, the more likely we are to meet our target.

Thank you!

Toby French

Help the "LightFood" campaign reach its goal today!