playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - krmko

Pages: [1] 2 3 ... 65
1
PlayMaker Help / Get Rotation Problem
« on: Today at 02:26:17 PM »
Hi guys,

I'm doing some 3D for the first time, though i'm doing well there's something i can't figure out. I have an object that's not parented to anything and has rotation 0, 0, -15 set via transform in the inspector.

However, when i use Get Rotation to get its rotation i get something like -270, 0, 0. I tried self world, eulers, quaternions, tons of other actions, delaying the start and so on but i still can't get it the way it is displayed.

Any advice?

2
K, i'll crosspost.

3
2018.3.7, PM Beta 16

4
Bump

5
PlayMaker Help / Re: Error Loading Action - Index was out of range
« on: January 16, 2020, 02:04:26 AM »
Thanks, i'll give it a go.

6
PlayMaker Help / Re: Error Loading Action - Index was out of range
« on: January 14, 2020, 11:51:28 AM »
Any news on this one? Some more appeared too:

Code: [Select]
Error Loading Action: State 1 : HutongGames.PlayMaker.Actions.SetProperty : targetProperty
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at HutongGames.PlayMaker.ActionData.GetFsmProperty (HutongGames.PlayMaker.Fsm fsm, System.Int32 paramIndex) [0x00000] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:1872

  at HutongGames.PlayMaker.ActionData.LoadActionField (HutongGames.PlayMaker.Fsm fsm, System.Object obj, System.Reflection.FieldInfo field, System.Int32 paramIndex) [0x00279] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:1092

  at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.ActionData+Context context, System.Int32 actionIndex) [0x00260] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:959

Code: [Select]
Error Loading Action: State 1 : HutongGames.PlayMaker.Actions.SetProperty : everyFrame
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at HutongGames.PlayMaker.ActionData.LoadActionField (HutongGames.PlayMaker.Fsm fsm, System.Object obj, System.Reflection.FieldInfo field, System.Int32 paramIndex) [0x00399] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:1124

  at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.ActionData+Context context, System.Int32 actionIndex) [0x00260] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:959

Code: [Select]
Error Loading Action: State 1 : HutongGames.PlayMaker.Actions.SetProperty : debug
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <d7ac571ca2d04b2f981d0d886fa067cf>:0

  at HutongGames.PlayMaker.ActionData.LoadActionField (HutongGames.PlayMaker.Fsm fsm, System.Object obj, System.Reflection.FieldInfo field, System.Int32 paramIndex) [0x00399] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:1124

  at HutongGames.PlayMaker.ActionData.CreateAction (HutongGames.PlayMaker.ActionData+Context context, System.Int32 actionIndex) [0x00260] in C:\Projects\Playmaker_1.9.1\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\ActionData.cs:959

7
PlayMaker Help / Re: Get accurate speed of a game object
« on: January 12, 2020, 03:49:25 PM »
Probably both last and current frame positions are being taken in the same frame, try adding next frame event in between.

8
PlayMaker Help / Re: Get accurate speed of a game object
« on: January 12, 2020, 05:09:03 AM »
You don't need to use physics actions, subtract the last frame position from current position and there's your speed. If the value is negative, multiply it by -1 so you get te positive value if you need it in that format.

9
PlayMaker Help / Re: Renaming Global events
« on: January 11, 2020, 12:28:37 PM »
Haha my bad, i'm reading variables instead of events all the time, sorry :D I am messing with some globals right now so i must have switched my brain on that.

Thanks for the footer.

The idea for events is great, i don't know why it's not allowed to change the name of the global event in a normal way.

10
PlayMaker Help / Re: Renaming Global events
« on: January 11, 2020, 12:12:35 PM »
No, not events, variables. I suppose i didn't explain it quite well.

Instead of using a global variable Ball, you will put a local variable Ball in the variable manager and get the value from that object with get fsm variableType or set it with set fsm variableType. Only global variable will the the reference to the variable manager, nothing else. It has one extra step, but it keeps the project tidy. If something screws up with global variables, and usually does, you're toast.

You can also have multiple game objects for multiple variable types (player variables manager, weapon variables manager and so on) and reference them via global variables.

11
PlayMaker Help / Re: Renaming Global events
« on: January 11, 2020, 11:36:17 AM »
After years of using, my best advice on Global Variables is - don't use them. They're extremely convenient and my hand always moves towards that "create global variable" button. But the whole system is messy and problematic, so it's best to use one object which will be referenced by one single global variable as the global variable manager and whenever you need to get or set something just use get fsm/set fsm and voila.

As for moving variable from global to local and global again, i haven't tried it, don't think that can end up well or even work :P

12
PlayMaker Help / Missing action warning, but action exists (not custom)
« on: January 11, 2020, 10:55:46 AM »
Hi guys,

i've got a report that the action is mission, but that action is definitely present. Any ideas on what i should do?



I removed the action, put the same back in, but i still get the error.

13
PlayMaker Help / Re: Need advice on data driven design
« on: January 11, 2020, 04:45:59 AM »
Yeah, it's awesome. Way better than game data editor imo.

14
PlayMaker Help / Re: Need advice on data driven design
« on: January 08, 2020, 04:38:25 AM »
I opted for BG Database, a fine tool. More on it here: https://hutonggames.com/playmakerforum/index.php?topic=21528.0

15
Well, i found the solution.

I was having a tough time deciding between Game Data Editor https://assetstore.unity.com/packages/tools/visual-scripting/game-data-editor-18480 which i used before, but is quite expensive and i had some good and bad stuff with it and BG Database https://assetstore.unity.com/packages/tools/integration/bg-database-112262 which is relatively new. Both have Playmaker support (actually, only database management assets that have it on asset store). I opted to try out BG Database, which is also half the price of Game Data Editor.

After the initial setup which takes a bit of time, but is not complicated due to good manual (google sheets api, access, tokenization and all that boring stuff) i managed to set up a database. You can either export data from the database editor in unity, or import it. I find that the best workflow is to setup fields in the integrated editor, export, fill out the data in the spreadsheet then import it back.

And now the most magical thing. There is a Playmaker action generator that creates actions related to your tables and fields.



The next best magical thing is the one i was afraid of. What if i decide to put another column in the table and recreate the actions, will the existing actions be overwritten along with assigned variables? No! All the existing actions are replaced with new ones with the existing variables and assignments intact.

Of course, if you want to use prefabs in your database, you need to enable the addressables. For now, in editor (we'll see builds), everything works fine, but it's another layer of work which needs proper handling since you can use addressables by their location (which can easy break things) or by GUID (which is a drag because it's not quite human readable). Using addressables means you can't go below 2018.3 unfortunately, so you'll have to upgrade if you didn't.

Pages: [1] 2 3 ... 65