playMaker

Author Topic: Create object need to be delete for wii u but need replacement...  (Read 2702 times)

daidokoro

  • Playmaker Newbie
  • *
  • Posts: 17
Hi back to this forum after a while... And back to dev game ;)
I'm using a lot playmaker so was happy with the trick from the Wii u forum in order to jave playmaker compiling/working on the wii u unity versio  except : one trock was deleting the action Create object and it is a killer for me as i'm using this action a lot to spawn objects like touch this and it will trigger a bridge. Can you please let me know how to replace it with a valid Wii compatible one ?

Thanks

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Create object need to be delete for wii u but need replacement...
« Reply #1 on: March 14, 2015, 10:28:40 PM »
Can you reference the thread on the wii u dev forum so I can see the reason behind deleting this action?

Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Create object need to be delete for wii u but need replacement...
« Reply #2 on: March 15, 2015, 12:03:51 AM »
You don't need to delete Create Object, you can modify it to work with Wii U.

Find this line in CreateObject.cs:

#if !(UNITY_FLASH || UNITY_NACL || UNITY_METRO || UNITY_WP8)

And replace it with this:

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

A lot of actions have this kind of conditional compilation when Unity doesn't support a feature on all platforms. So it's always good to look for it in the source code to see if you can add your platform to the list. We add new platforms with updates (e.g. Wii U is in 1.8.0), but it's good to know how to do it yourself so you don't have to wait on us...

EDIT: Looking at the files in the Unity Playstation Mobile patch should give you a good idea of the files you'd need to add UNITY_WIIU to:
http://hutonggames.com/playmakerforum/index.php?topic=7821.0



« Last Edit: March 15, 2015, 12:09:28 AM by Alex Chouls »

daidokoro

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Create object need to be delete for wii u but need replacement...
« Reply #3 on: March 15, 2015, 10:38:15 AM »
Hi

I have deleted the action based on someone explanation on the Wii U forum (under NDA so can't link it) but i will post your solution there

Thanks a lot, it is working perfectly, will look at the PSM examples now. Should recieved my dev kit soon so will test my game (created with playmaker www.saqgame.com) and will let you know if all is working on the Wii U.
« Last Edit: March 15, 2015, 11:12:53 AM by daidokoro »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Create object need to be delete for wii u but need replacement...
« Reply #4 on: March 15, 2015, 11:31:36 AM »
I'm a registered dev with Nintendo, so you can pm the link to me.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Create object need to be delete for wii u but need replacement...
« Reply #5 on: March 15, 2015, 08:40:11 PM »
Okay, from the looks of the thread over there this is sorted out. It seems to basically just be using the NACL version, removing networking actions and updating any actions as Alex outlined above.

I don't really keep up with the forum over there, if this is a recurring topic or problem over there I can just make a post with a conclusive list of changes to make it work.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D