Playmaker Forum

PlayMaker News => General Discussion => Topic started by: createasaurus on November 29, 2017, 07:06:43 AM

Title: Playmaker working on Nintendo Switch (Full Setup)
Post by: createasaurus on November 29, 2017, 07:06:43 AM
Prerequisites:
1. Register as a Nintendo Developer https://developer.nintendo.com/ (https://developer.nintendo.com/)
2. Become approved for Switch Development - (Just) posted some accurate information on the current state of affairs here, forth comment down http://hutonggames.com/playmakerforum/index.php?topic=15033.msg70095#msg70095 (http://hutonggames.com/playmakerforum/index.php?topic=15033.msg70095#msg70095)
3. Get and setup Dev Kit + Switch for Unity

Here is the Full Setup for Playmaker on Nintendo Switch:

Import Playmaker
File/Build Settings/Platform, select Nintendo Switch (of course)
Plugins/PlayMaker/WebGL, check Editor, check Standalone, check Switch
Plugins/PlayMaker, uncheck Editor, uncheck Standalone
Comment out or delete the following Playmaker Actions:
   The Entire ProceduralMaterial Folder
   MovieTextureAudioSettings
   PauseMovieTexture
   PlayMovieTexture
   SetMaterialMovieTexture
   StopMovieTexture
   WWWObject
Build and run
Compiles to dev unit!!   ;)

Let's all keep helping each other out by sharing custom Switch actions on the Nintendo Switch dev forums.  See you there!   ;D

Best,
Createasaurus
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: jeanfabre on November 30, 2017, 01:29:15 AM
Hi,

 Excellent, thanks for sharing!

 Bye,

 Jean
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: djaydino on November 30, 2017, 04:18:21 PM
Hi.
Very nice!
Maybe a dedicated Git would be nice so we could make a nintendo switch action package for the Ecosystem  :D
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: Just on November 30, 2017, 05:13:14 PM
I'm proud of everyone that got in Switch development.

Keep living of your dream, and keep striving for even better!
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: jeanfabre on December 01, 2017, 01:02:48 AM
Hi,

 I am thinking that instead of making a dedicated package, we should simply properly edit these actions so that they are disabled on that platform.

 I'll raise this to Alex for a possible update on this.

 Bye,

 Jean
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: djaydino on December 01, 2017, 03:25:26 AM
Hi jean.
Quote
I am thinking that instead of making a dedicated package, we should simply properly edit these actions so that they are disabled on that platform.


i mend a dedicated package for this part :
Quote
Let's all keep helping each other out by sharing custom Switch actions on the Nintendo Switch dev forums.  See you there!   ;D

If a git is used all the actions can be reached both in pm and NSD forums :)
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: jeanfabre on December 04, 2017, 02:35:38 AM
Hi,

 I talked to Alex, the next update will feature proper handling of Switch for the necessary actions. So this is going to be officially supported with no additional steps.

 bye,

 Jean
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: bryan on December 07, 2017, 04:44:48 AM
Excellent!
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: charming_fox on February 02, 2018, 04:21:18 AM
Hi guys,

I am working with a Nintendo Switch EDEV unit and would be very happy to help test out PM support.

Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: jeanfabre on February 07, 2018, 04:08:28 AM
Hi,

 get in touch with us and we can give you access to the beta.

 Bye,

 Jean
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: miguelfanclub on February 07, 2018, 10:34:19 AM
I have both kits as well

Can you clarify this?

"Plugins/PlayMaker/WebGL, check Editor, check Standalone, check Switch
Plugins/PlayMaker, uncheck Editor, uncheck Standalone"

Dont see those options
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: charming_fox on February 08, 2018, 01:59:31 PM
Hi miguelfanclub,

For me, the instructions kindly posted by createasaurus didn't quite work for me, I still had compile errors and couldn't generate the build. I'm a little tied up with an impending Steam launch but I should be able to run through the steps again next week and see how it goes. I'll report findings in whatever way Jean etc feel is best!

Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: miguelfanclub on February 09, 2018, 04:56:58 AM
Same for me, it didnt work after doing same setup.

error CS1704: An assembly with the same name `PlayMaker' has already been imported. Consider removing one of the references or sign the assembly
Assets/plugins/PlayMaker/PlayMaker.dll (Location of the symbol related to previous error)
Assets/plugins/PlayMaker/WebGL/PlayMaker.dll (Location of the symbol related to previous error)


UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x00207] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:172
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)


Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: jeanfabre on February 09, 2018, 05:08:25 AM
Hi,

 you likely need to delete one of these, have you tried?

 Bye,

 Jean
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: charming_fox on March 09, 2018, 02:54:32 AM
Hi, just wanting to add in my journey so far with getting Unity to build:
Unity version: 5.6.5p1
Playmaker version: 1.8.4

1 - Installed the Nintendo Plugin
2 - Changed platform in Unity to Nintendo Switch
3 - Attempting to build causes 999+ errors and fails due to playmaker import settings
4 - Changed import settings on plugins/playmaker/playmaker.dll to include Nintendo Switch
5 - Now attempting to play or build results in 'Error building Player because scripts had compiler errors' yet no errors were displayed
6 - Closed and reopened Unity, game now runs in editor
7 - Building fails now due to error 'Assets/PlayMaker/Actions/ComponentAction.cs(60,19): error CS0246: The type or namespace name `NetworkView' could not be found. Are you missing an assembly reference?'

8 - Added "UNITY_SWITCH ||" to line 59 of ComponentAction.cs to exclude Switch from the latter part of the script concerning NetworkView.
9 - Then had 29 new errors (The type or namespace name `MovieTexture' could not be found. Are you missing an assembly reference?) , relating to the following PM actions:
MovieTextureAudioSettings.cs, PlayMovieTexture.cs, PauseMovietexture.cs, RebuildTextures.cs, SetProceduralXXX.cs, SetMaterialMovieTexture.cs, StopMovieTexture.cs, WWWObject.cs

10 - I thought I didn't need these actions so moved them out of the project and can now build!
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: jeanfabre on March 20, 2018, 02:38:29 AM
Hi,

 Thanks for these clear steps. The current beta is already taking into account the few scripts that have issues, so now it will be then a matter of setting up the dll properly.

 Bye,

 Jean
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: daniellogin on June 09, 2020, 12:05:55 AM
Has anything changed since this topic was last updated? Earlier messages talked about a possible dedicated Git directory for Switch actions and possible official PM support to set it up. Any of this come to be, or have set up instructions changed?

Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: jeanfabre on June 10, 2020, 03:35:46 AM
Hi,

 I am not aware of any move on that, but hopefully we can integrate some of these changes in the coming updates.

Bye,

 Jean
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: djaydino on June 10, 2020, 05:45:51 AM
Hi.
What specific switch actions are you looking for?

So far we used standard actions (and standard custom actions)
and all works fine so far.

Only issue we had is with easy save but not because of the actions, but the way to save data.

Using unity 2018.4.13f1 and playmaker 1.9.0p19
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: daniellogin on June 12, 2020, 01:04:27 AM
Hi.
What specific switch actions are you looking for?
I think when I asked that I had in mind simply just the input stuff. Normally I use InControl for controller actions... anyone have any experience with using that for Switch? And though I'm not specifically wanting it yet, would it be hard to use the motion control that switch controllers have?

Oh and if Easy Save doesn't work, does anyone have any suggested alternatives? What about PlayerPrefs? Is that compatible? Otherwise I'm really wondering what the process would be to even save things like settings and player progress.
Title: Re: Playmaker working on Nintendo Switch (Full Setup)
Post by: djaydino on June 12, 2020, 03:00:16 AM
Hi.
We use Rewired, but i think InControl Should be capable as well.
for motion control i do not know tho.

For easy save you can use it but you need to do some coding as you need a part from the api of the switch (which is not allowed to be shared, therefore not officially supported, same as for playstation)

https://docs.moodkie.com/easy-save-2/supported-platforms/