playMaker

Author Topic: PS4 Playmker Build Errors  (Read 2053 times)

rjuro

  • Playmaker Newbie
  • *
  • Posts: 2
PS4 Playmker Build Errors
« on: September 06, 2015, 07:25:34 PM »
I am getting errors when building to PS4, the errors are re: error CS0246: The type or namespace name `FsmStateAction' could not be found. Are you missing a using directive or an assembly reference?

Does anyone have any experience with this or have an idea of how to solve it?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: PS4 Playmker Build Errors
« Reply #1 on: September 06, 2015, 09:09:43 PM »
There is some setup required. Or you can PM for access to the 1.8.0 beta which is already setup to work with PS4 and XBox One.

Unity Networking is not supported on PS4 and XBox One, so you need to use a PlayMaker dll without networking.

You can do this with the Plugin Importer Settings:

- Select Plugins\PlayMaker\Playmaker.dll
- Uncheck PS4 and XBONE
- Select Plugins\PlayMaker\WebGL\Playmaker.dll (WebGL dll has no networking)
- Check PS4 and XBONE

You will also need to add || UNITY_PS4 || UNITY_XBOXONE to all Network and other unsupported actions. These actions already have a list of unsupported platforms that looks like this:

#if !(UNITY_FLASH || UNITY_NACL || UNITY_METRO || UNITY_WP8 || UNITY_WIIU || UNITY_PSM || UNITY_WEBGL)

You will need to add || UNITY_PS4 || UNITY_XBOXONE to that list in these actions:

MovieTextureAudioSettings.cs
NetworkGetMessagePlayerProperties.cs
NetworkGetMessageDisconnectionInfo.cs
NetworkGetNetworkErrorInfo.cs
PauseMovieTexture.cs
PlayMovieTexture.cs
RebuildTexture.cs
SetProceduralBoolean.cs
SetProceduralColor.cs
SetProceduralFloat.cs
SetMaterialMovieTexture.cs
StopMovieTexture.cs
WWWObject.cs

Or you can delete these actions if you're not using them.

Let me know how it goes.