Sign In Register

How can we help you today?

Start a new topic

New GameSparks Plugin Broke My Unreal Game

To fix previous compatibility issues with the Plugin that would confuse most devs we have decided to remove the following option from the .uplugin file:


"EnabledByDefault" : true


This will mean no more compatibility problems would be faced in the future and your packaging process will be unhindered. However, if you've already got a project with GameSparks in it and you want to use the latest plugin, you have two options to enable it:


1- Edit(Top bar in the Editor window) > Plugins > GameSparks > Enable

2- Paste '"Enabled": true' in the .uplugin file in the GameSparks module :


"Plugins": [
  {
  "Name": "GameSparks",
  "Enabled": true
  }
  ]


Hope this does not cause you guys too much inconvenience. 


Cheers,

Omar


Also, UGamesparksComponent does not need to derive from USceneComponent. UActorComponent is enough since it does not need to be physically attached to the scene.


Moreover, I often get this error: Trying to recreate class 'UGameSparksComponent' outside of hot reload!


Which causes me to clean and rebuild the project, which is not the fastest way to develop :/


Last thing: for an unknown reason, even when I don't update the files of the gamesparks plugin, the DLL is always recompiled. It does not happen with some other plugins we use in our solution. And I suspect this is what caused the above error.


1 person likes this

Okay, could you pleeeeaase make sure that these Plugins are properly setup before submitting them to UE4?

1. 4.17 (as an example) requires this in the UPLUGIN file:

 

  "Plugins": [
		{
			"Name": "OnlineSubsystem",
			"Enabled": true
		},
		{
			"Name": "OnlineSubsystemUtils",
			"Enabled": true
		},
	]

 You put that right behind the "Modules" entry, don't forget the comma.
That's the warning the person above me has (the 3 rows saysing that OnlineSubsystem etc is not listed).


2. Thanks a lot for putting up a UObject instead of the Component, but please, who just copy pasted the UCLASS specifiers?

 

UCLASS(ClassGroup=(GameSparks), meta = (BlueprintSpawnableComponent))

 That's simply wrong for a UObject!

 

UCLASS(Blueprintable, BlueprintType)

 You need this, as this makes it able to be Spawned and also saved in a variable.


3. You still need to expose the Message Listener the same way. It's a component atm.

 Hi Cedric,


We're aware of most of these and working to solve them. As always thank you for your feedback!


Cheers,

Omar

 Hi Alex,


Sorry I didnt see the reply. Yes we realised it does not. I'm sorry about the inconvenience, we're working on a fix to accomodate for 4.17 + 4.17<

 Hi guys,


New release is out. All the above should be fixed. Please let us know if you face any further problems.


Cedric, the global listener is out as well. Thank you for applying pressure on getting it released.


Cheers,

Omar

  This does not work

1>D:\UEP4.16\Unreal Projects\testSpark\Plugins\GameSparks\Source\GameSparks\GameSparks.Build.cs : warning : Module constructors should take a ReadOnlyTargetRules argument (rather than a TargetInfo argument) and pass it to the base class constructor from 4.15 onwards. Please update the method signature.
1>D:\UEP4.16\Unreal Projects\testSpark\Plugins\GameSparks\Source\OnlineSubsystemGameSparks\OnlineSubsystemGameSparks.Build.cs : warning : Module constructors should take a ReadOnlyTargetRules argument (rather than a TargetInfo argument) and pass it to the base class constructor from 4.15 onwards. Please update the method signature.
1>  Performing full C++ include scan (no include cache file)
1>EXEC : warning : Plugin 'GameSparks' does not list plugin 'OnlineSubsystemUtils' as a dependency, but module 'GameSparks' depends on 'OnlineSubsystemUtils'.
1>EXEC : warning : Plugin 'GameSparks' does not list plugin 'OnlineSubsystem' as a dependency, but module 'GameSparks' depends on 'OnlineSubsystem'.
1>EXEC : warning : Plugin 'GameSparks' does not list plugin 'OnlineSubsystem' as a dependency, but module 'OnlineSubsystemGameSparks' depends on 'OnlineSubsystem'.
1>  Parsing headers for testSparkEditor
1>    Running UnrealHeaderTool "D:\UEP4.16\Unreal Projects\testSpark\testSpark.uproject" "D:\UEP4.16\Unreal Projects\testSpark\Intermediate\Build\Win64\testSparkEditor\Development\testSparkEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
1>  Reflection code generated for testSparkEditor in 12,5527531 seconds
1>  Performing 20 actions (4 in parallel)
1>  [2/20] Resource ModuleVersionResource.rc.inl
1>  [4/20] Resource PCLaunch.rc
1>  [3/20] Resource PCLaunch.rc
1>  [5/20] Resource PCLaunch.rc
1>cl : Command line warning D9002: ignoring unknown option '/source-charset:utf-8'
1>cl : Command line warning D9002: ignoring unknown option '/execution-charset:utf-8'
1>  SharedPCH.Engine.cpp
1>d:\program files\ue_4.17\engine\source\runtime\core\public\Windows/WindowsPlatformCompilerSetup.h(19): error C2338: Visual Studio 2015 Update 3 is required to compile on Windows (http://go.microsoft.com/fwlink/?LinkId=691129)
1>ERROR : UBT error : Failed to produce item: D:\UEP4.16\Unreal Projects\testSpark\Plugins\GameSparks\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-GameSparks.lib
1>  Total build time: 37,75 seconds (Local executor: 0,00 seconds)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(42,5): error MSB3073: The command ""D:\Program Files\UE_4.17\Engine\Build\BatchFiles\Rebuild.bat" testSparkEditor Win64 Development "D:\UEP4.16\Unreal Projects\testSpark\testSpark.uproject" -waitmutex" exited with code -1.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

  

Login to post a comment