playMaker

Author Topic: FSM not preprocessed warnings : game completely broken [SOLVED]  (Read 7102 times)

RoiSinge

  • Playmaker Newbie
  • *
  • Posts: 14
FSM not preprocessed warnings : game completely broken [SOLVED]
« on: January 26, 2018, 02:45:35 PM »
Hi,

I recently updated our project from unity 5.3.5 to 2017.3 and plamaker from 1.8.1 to 1.8.6.

Our game works fine in editor but everything gets messed up (collisions not working as expected, character jittering...) in build (windows standalone).

I noticed that the output log is literally flooded with "FSM not preprocessed" warnings.

This issue is highly critical and is a real problem regarding our deadlines.
Help will be greatly appreciated, you'll find the output log attached.
« Last Edit: February 05, 2018, 05:13:40 PM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: FSM not preprocessed warnings : game completely broken
« Reply #1 on: January 26, 2018, 07:52:40 PM »
Hi,
Do you have some custom actions from the Ecosystem?

if so, try redownloading them.

Mainly the actions that have different update types.

frogwise

  • Playmaker Newbie
  • *
  • Posts: 49
Re: FSM not preprocessed warnings : game completely broken
« Reply #2 on: January 27, 2018, 06:04:48 PM »
I also have "preprocess" warning preventing my builds from going through as well.

With your suggestion above, about downloading custom actions again, how can you filter by actions that you have downloaded in the ecosystem? I have so many that I have no idea how to re-find them.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: FSM not preprocessed warnings : game completely broken
« Reply #3 on: January 27, 2018, 06:16:11 PM »
Hi.
What playmaker and unity version you have?

Can you check the action "Trigger Event" (Right Click the action and select 'edit script')
These lines should be there :



If not you should try to update playmaker.
Before you update Make a backup from your project ! :)

If there is, there is a different issue.

As it gives a null reference it means it does not find a reference object.

frogwise

  • Playmaker Newbie
  • *
  • Posts: 49
Re: FSM not preprocessed warnings : game completely broken
« Reply #4 on: January 27, 2018, 06:22:54 PM »
Latest - Playmaker 1.8.9.  I had just updated from 1.6.

I seem to have those lines.



frogwise

  • Playmaker Newbie
  • *
  • Posts: 49
Re: FSM not preprocessed warnings : game completely broken
« Reply #5 on: January 27, 2018, 06:23:50 PM »
I only get this error when I try to make a WebGL build. Playing the game in the editor does not produce this error.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: FSM not preprocessed warnings : game completely broken
« Reply #6 on: January 28, 2018, 06:12:34 AM »
Hi.
i am not sure whats going on.
Can you send a bug report from inside unity?

You can find it under playmaker/tools

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: FSM not preprocessed warnings : game completely broken
« Reply #7 on: January 29, 2018, 03:50:25 AM »
Hi,

 you likely need to clean up your project:

1: back up your project
2: extract the templates and global resource you have possibly in the PlayMaker folder
3: delete the PlayMaker folder
4: delete all the playmaker dll inside the PLugins/folder
5: import PlayMaker again from the ecosystem
6: welcome screen will not appear ( because of Unity errors)
7: manually import PlayMaker package located in Assets/PlayMaker/Editor/Install
8: if you still have an error after that, let me know which one and also install again step 7) it's likely that Unity still prevented PlayMAker from proceeding fully to setting up your project.

 Let me know know if this doesn't work.

 Bye,

 Jean

RoiSinge

  • Playmaker Newbie
  • *
  • Posts: 14
Re: FSM not preprocessed warnings : game completely broken
« Reply #8 on: January 29, 2018, 04:58:48 AM »
Hi,

Thanks for your answer djaydino.
 
The issue seems indeed related to actions with different update types handling.
After upgrading Unity and playmaker I made an update of this script : FsmStateActionAdvanced.cs (found on github) in order to fix actions using late update which were not working anymore.

If I revert this change the game runs fine again, except for actions using late update.

So I tried to update some custom actions from the ecosystem : Get and Set position advanced.
The result is the same as updating FsmStateActionAdvanced.cs : game behaves fine in editor, including late update handling, but everything fall aparts in windows build.

Jean, is your answer intended for me or frogwise ? I have no errors in editor console.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: FSM not preprocessed warnings : game completely broken
« Reply #9 on: January 29, 2018, 02:20:40 PM »
Hi.
@RoiSinge :
I think Jean's answer is for frogwise.
Do you have "Get/Set property" actions in your project/scene?
if so you might need the Linker wizard

RoiSinge

  • Playmaker Newbie
  • *
  • Posts: 14
Re: FSM not preprocessed warnings : game completely broken
« Reply #10 on: January 30, 2018, 02:25:01 PM »
Ok, i had to go through all my custom actions, some of them not from the ecosystem, and modify the code in order to handle properly fixed and late update.
 
I finally got rid of "fsm not preprocessed" warnings, and windows build seems to run fine again.

One thing though, in the output log i see that there are some messages like this "fsm updated please re-save the scen/project". Seems to happen after a scene was loaded. Is it normal ?

Indeed i have many get/set property actions in my project. Do you recommend using the linker wizard even if my problem seems to be solved ?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3998
  • Official Playmaker Support
    • LinkedIn
Re: FSM not preprocessed warnings : game completely broken
« Reply #11 on: January 30, 2018, 02:53:06 PM »
You get "FSM updated please re-save the scene/project" if any actions have changed since the FSM was last saved (or if the data needs to be resaved for some other reason, e.g., the data layout changed in an update).

It's a good idea to re-save when you see this message since old data has to go through slower loading paths to recover parameters and update the data. You should definitely re-save before shipping anything.

It's a good idea to use the Linker Wizard on any platform that strips "unused" classes/methods/properties from the build. It may look like everything is working, then you hit that one Set Property action that rarely gets called and it breaks your game because the property was stripped. Better safe than sorry!

RoiSinge

  • Playmaker Newbie
  • *
  • Posts: 14
Re: FSM not preprocessed warnings : game completely broken
« Reply #12 on: January 31, 2018, 06:34:50 AM »
I'm not sure to understand.

The "FSM updated please re-save the scene/project" messages come from the output log of windows build, not from unity's editor console.

All my scenes and project are properly saved before building.
Am i missing something here ?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3998
  • Official Playmaker Support
    • LinkedIn
Re: FSM not preprocessed warnings : game completely broken
« Reply #13 on: January 31, 2018, 07:50:02 AM »
So you don't get the "FSM updated..." message when loading the scene in the editor? Whenever you see "FSM updated...", at runtime or in the editor, it means the loading code had to do more work to update the FSM data. Try running: Tools\Update All FSMs in Build.

RoiSinge

  • Playmaker Newbie
  • *
  • Posts: 14
Re: FSM not preprocessed warnings : game completely broken
« Reply #14 on: January 31, 2018, 12:17:42 PM »
No i don't get the messages when i open the scene in unity, neither do i when i play the game in unity.

I tried "update all fsm in build" and the problem is still there :
1. I make a pc build
2. Push it to steam
3. Launch it
4. Quit the game
5. Go to appdata/locallow folder and open output_log.txt : i see the messages, always pointing out the same fsms