playMaker

Author Topic: [SOLVED]FSM Script?  (Read 4726 times)

Iwa

  • Playmaker Newbie
  • *
  • Posts: 6
[SOLVED]FSM Script?
« on: April 25, 2012, 04:27:40 AM »
Hi everybody,

I'm starting to use PlayMaker and I found it really nice and clear. Now that I have understand the way to use FSM, I'm trying to concentrate on the actual way I want and need to use them.

What I need to do is quite complicated to explain in a word so here is the point :

I need to create FSMs with playMaker and after that I would like to export the object and its FSM in an simple text file (xmi would be juste perfect, but as far as I've searched, I didn't find anything like that).

The fact is I want to create an environment, with GameObject with FSMs and whatever and export the whole thing without exporting ALL playMaker. I just need the world with objects and the FSMs attached to these objects.

Is that possible?

I'm maybe not really clear, so please tell me if something is not explained correctly because I need this for my work :).

Have a nice day.

(Oops, my post as been send uncomplete, here is the complete version :) )
« Last Edit: April 30, 2012, 04:27:08 AM by Iwa »
Mess with the best, die like the rest

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4143
  • Official Playmaker Support
    • LinkedIn
Re: FSM Script?
« Reply #1 on: April 26, 2012, 07:49:58 PM »
Quote
The fact is I want to create an environment, with GameObject with FSMs and whatever and export the whole thing without exporting ALL playMaker. I just need the world with objects and the FSMs attached to these objects.

I'm not 100% clear on what you want to do. The PlayMakerFSM is a MonoBehavior that contains the data needed to run the FSM.

Are you asking if there's a way to export the FSM as a script that can run separately from Playmaker?

Or if there's a way to export just the structure of the FSM without action data?

Maybe if I can understand your goal better I can suggest a solution...

Iwa

  • Playmaker Newbie
  • *
  • Posts: 6
Re: FSM Script?
« Reply #2 on: April 27, 2012, 03:25:37 AM »
I'm sorry to be a not really clear so I rephrase my question :

My goal is to create an FSM on a GameObject and be able to export the structure of the FSM in a XML file(for exemple). On the other side I also need to do the reverse action, with a XML file, I'd like to recreate the FSM.

Or if there's a way to export just the structure of the FSM without action data?

Yes this is exactly a part of what I want to do, I don't know why I didn't explain it like this before. Just to be sure, what is an "action data" for you? Is it the actions we add on a state? Because if it's actions we add on state I would need it in my structure.

I'm sorry if it's not clear enough, and I hope my english is understandable. Tell me if something is still not clear.

Thanks to take the time to read and answer me :).
Mess with the best, die like the rest

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4143
  • Official Playmaker Support
    • LinkedIn
Re: FSM Script?
« Reply #3 on: April 28, 2012, 06:44:03 PM »
There's no way to do this currently... I'm still curious why you want to do this. What's the use case? If you describe the problem you're trying to solve there might be another solution.

Iwa

  • Playmaker Newbie
  • *
  • Posts: 6
Re: FSM Script?
« Reply #4 on: April 30, 2012, 04:26:38 AM »
Okay, after chatting with Alex, it appears that there's a simple solution to get the unity scene and its FSMs.

This solution is actually under conditions : you have to be under Unity 3.5 and a pro or advanced licence.

How to get that? Use the "text-based scene". In unity click on Edit ->Project Settings ->Editor and then click on "Meta Files" in the "Version Control" combo box and on "Force Text" on "Asset Serialization"

Now you can open the unity file in a simple text editor. You've got all the basic information of your objects, scene ...
Mess with the best, die like the rest