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.


Topics - westingtyler

Pages: [1] 2 3 ... 7
1
Action Requests / "Is Int a Multiple of Another Int?"[SOLVED]
« on: October 08, 2018, 08:26:21 PM »
depending on a setting, i want a sound to play every time a loop count int is a multiple of a certain number, during a looping process. (sound on string typwriter-ing.)

Is (Current Loop Int) a Multiple of 5? YES/NO.

Is (Current Loop Int) a Multiple of 9? YES/NO.

2
Area: Editor
Frequency: Always

1) What happened

here's a video, and in the middle we see a bug I think i reported before (the second bug is shown in the middle, one I think i already reported. it seems to be tied to the Set FSM Variable action somehow.), and toward the end, I show a third bug about state description:
https://www.youtube.com/watch?v=b4vX7mgYA3s&feature=youtu.be

0:00 bug 1: obj variable lag
5:29 bug 2: Set FSM Variable state bug.
7:14 bug 3: new state description bug.

I created this fsm and was working in it. I added a Set Unity Object, to set the "needed tmp obj variable", to be another pre-designated one. Immediately that FSM became super laggy, and typing any text in states slowed to a crawl. I deleted this action, and the lag went away. I wrote a note in the start state of this template.

Then I tried using a Set FSM variable, with it set to an object, a tmp. Causes the same lag. Then i used a Set Property, which is still present in the template because it's unavoidable, and performance in that fsm has slowed to a crawl.

naming states, or typing in descriptions, types out a single character each second, even after I've pressed all the keys for the whole state name. I have to sit there and wait several seconds for the name of the state to type out.

I've had this problem with many FSMs since the last several months, and it's like even small fsms become laggy super fast, but now I've pinpointed it to this manipulation of a tmp object variable.

and any time I say tmp, I mean text mesh pros, but the 3d object versions, not the UGUI stuff I don't use. I'm still wishing for an update to this action  https://hutonggames.com/playmakerforum/index.php?topic=19225.0 : so I can use it.

i added the tmp objects to the fsm by dragging them into the variables tab.
dialoguebubble_tmp

Unity Info:
Unity Version: 2018.2.4f1
Playmaker Version: 1.9.0.f5
BuildTarget: StandaloneWindows64

System Info:
OS: Windows 10  (10.0.0) 64bit
Processor: AMD FX(tm)-4130 Quad-Core Processor
System Memory: 32749
Graphics Device: NVIDIA GeForce GTX 970

3
Feature Requests / Need to Load a File in as a TextAsset object?
« on: October 01, 2018, 11:16:32 AM »
I use Playmaker Easy Save 2 and 3 actions, and i'm trying to load a sql database file (.bytes) file from a folder into the game to use with some SimpleSql commands.

I need to set a database property that needs a TextAsset.

I can get easy save to see the file in the folder, but I am not sure how to set that file to a TextAsset Object in a Playmaker FSM, so I can then set the Property of the SQL database component using it.

I can "load" the file named "file name found with Get Files"... but how do I load it INTO a TextAsset?

Joel from Easy Save said this:

"Hi there,

Easy Save has no functionality to put data into a TextAsset, but it has a Load Raw to get the data as a string, which can be saved back to a file using the Save Raw Base 64 action.

You may want to enquire on the PlayMaker forums to see if an action exists to create a TextAsset from a string.

All the best,
Joel"

Is there an action to do this?

4
Area: Editor, Play Mode
Frequency: Always

1) What happened

I use Easy Save 2 and 3's Get Files from a folder into a string array, but the array does not appear to update in the FSM, but after that if I use Array Get, I can retrieve the strings at their appropriate indices.

here is a thread describing the problem in detail I made at the Easy Save forum, with screenshots:
https://moodkie.com/forum/viewtopic.php?f=5&t=1499&p=5140#p5140

2) How can we reproduce it

i explained it above, and in the thread i show images of the actions I used. if more is needed let me know.

Unity Info:
Unity Version: 2018.2.4f1
Playmaker Version: 1.9.0.f5
BuildTarget: StandaloneWindows64

System Info:
OS: Windows 10  (10.0.0) 64bit
Processor: AMD FX(tm)-4130 Quad-Core Processor
System Memory: 32749
Graphics Device: NVIDIA GeForce GTX 970

5
Action Requests / "Move Towards" Local?
« on: September 17, 2018, 01:40:20 PM »
Hello! I do a vector3 calculation, then I need my camera (a child of another independently-moving parent) to move toward that vector3 - but in local space. For example, I'm moving it along ITS X axis based on distance from the player. But currently the "move towards" action moves the camera to, say the WORLD coordinates of X - 2.27 Y 0 Z 0, instead of along its SELF X axis. Can anyone help?

6
Hello. I want my orbiting camera to go UNDER rotation of X=0 so it can slide along the floor and allow the player to see the sky. Currently I have to clamp the X rotation at 0 or the camera will bounce upward after reaching 0. Can someone help me understand why this happens or how to prevent it so negative X rotations are possible?

I made a video showing the exact issue.

https://www.youtube.com/watch?v=eyiU--v9pAQ&feature=youtu.be

7
Action Requests / Get Game Object's Material Count?
« on: September 08, 2018, 08:42:52 AM »
I need to set the player game object's material to something different when too close to the camera. But the player might swap characters/models, and some will have many materials on them like skin, hair, etc.

I need to save all materials on a game object into a material array, in order, and I figured a "get material count" would be the best way to establish how many loops to do?

8
Playmaker Bug Reporting / playmaker visual bug glitch out with video
« on: September 02, 2018, 01:55:34 PM »
https://www.youtube.com/watch?v=6GBt_l2WJIU&feature=youtu.be

Details are in the video. Didn't see the bug report button until after making the video, but maybe this might be helpful. If I see it again I'll grab the console errors and also use the bug report button.

9
Playmaker Help / Can't do "Control+S" to save during game?
« on: September 02, 2018, 11:19:26 AM »
I want the player to press Control+S to save their game. But the state that checks for "Get S Key Down" doesn't seem to respond if Left Control is pressed.

Doesn't work for Control+L to load either, or Control+N for new.

The state gets the fsm bool of another game object, to determine if Left Control is pressed.

How do I made this work? Control+Mouse Scroll wheel works for me to zoom, but it feels like playmaker actions can't check two keys at once? Even when playtesting, Unity pops up telling me I can't save the scene--- which means it CAN register both key presses at once, just not playmaker? How do I made this work?

PS the fsm bool for Control DOES update to true when pressed, just not shown in the screenshot I got.

10
Action Requests / FSM Array Contains
« on: September 02, 2018, 08:48:49 AM »
I'm in an FSM processing game objects and such, and I need to say "if an game object with this same name exists in the Stamp Array or the Map Piece array, then set its material to X material."

The problem is, the Stamp Array and Map Piece Arrays are in another FSM.

The closest I can figure out is to do a "lock and send" where I set that other fsm's "game object to test" to this, set it's Processing bool to true, send the fsm event of checking its array, and wait for it to be done, and retrieve the result from there.

It would be super easy if I could just do a "FSM Array Contains" action to check another fsm's array for containing a thing.

11
Action Requests / Check if HMD (VR Headset) is Active/Turned On?
« on: August 31, 2018, 03:55:21 AM »
If the player is wearing an HMD like Oculus Rift or Vive when they start the game, I want the game to check if that's the case and therefore enable the normal camera game object or the VR camera rig game object. I also what to be able to swap between these mid-game, if a player is playing in VR or not VR and wants to swap over. At that point the controls will be swapped, too, between keyboard, xpad, or vr hand controllers. Can this be done with an action?

12
I create a prefab and set its material to Material A. Then on the next operation (another right-click) it checks if the material is Material A. If so, it's supposed to Cycle to Material B, C, etc. But it always returns false. Here is a picture of it.

Notice how the game object's material is Material A (Instance), and the one compared for is Material A. What's the deal with this? Does this mean every time I'm creating prefabs it's adding more draw calls by duplicating materials? How do I fix this?

PS. It would be handy to have a Material Switch action, to avoid having a state with multiple Material Compare actions.

13
When players click on the input field and start typing, the key-based controls still go wacky and operate normally, when they should be frozen.

I've just started trying the UGUI, so I am curious how to have something that checks if the field is active each frame, and keep other controls disabled during this time.

Here is a video of the problem. Check at the 8:17 mark.

https://youtu.be/R0YgDi2IyZg?t=8m17s


14
Hello. ever since updating to unity 2018.2.4f1 and playmaker 1.9.0, SOMETIMES in play mode when I press crouch button, it freezes play mode and I get this error:

transform.positionWithLocalOffset assign attempt for 'Player - Parent GO (Move)' is not valid. Input positionWithLocalOffset is { NaN, NaN, NaN }.
UnityEngine.CharacterController:SimpleMove(Vector3)
HutongGames.PlayMaker.Actions.ControllerSimpleMove:OnUpdate() (at Assets/PlayMaker/Actions/ControllerSimpleMove.cs:52)
HutongGames.PlayMaker.FsmState:OnUpdate() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:265)
HutongGames.PlayMaker.Fsm:UpdateState(FsmState) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2782)
HutongGames.PlayMaker.Fsm:Update() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1994)
PlayMakerFSM:Update() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:579)

Here's a picture. Any reason why? It seems to happen when moving and when standing still sometimes, randomly. Does 0,0,0 count as "not a number" now in vector 3s?

15
Playmaker Help / "go.IsActive" error upon editor play mode game start?
« on: August 25, 2018, 12:28:42 AM »

Hello. After updating Unity and Playmaker, I am getting several of this error upon starting play mode. upon starting a level, many find game objects will find things like that level's main camera, player go, hand 3d models, etc. which are all stored into different prefabs and which i drop into each new level. now there are this error, like 15 times:




===

Assertion failed on expression: 'go.IsActive()'
UnityEngine.GameObject:Find(String)
HutongGames.PlayMaker.Actions.FindGameObject:Find() (at Assets/PlayMaker/Actions/FindGameObject.cs:63)
HutongGames.PlayMaker.Actions.FindGameObject:OnEnter() (at Assets/PlayMaker/Actions/FindGameObject.cs:32)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:205)
HutongGames.PlayMaker.FsmState:OnEnter() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:175)
HutongGames.PlayMaker.Fsm:EnterState(FsmState) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2767)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2714)
HutongGames.PlayMaker.Fsm:UpdateStateChanges() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2642)
HutongGames.PlayMaker.Fsm:Start() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1925)
HutongGames.PlayMaker.Fsm:ProcessEvent(FsmEvent, FsmEventData) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2212)
HutongGames.PlayMaker.Fsm:Event(FsmEventTarget, FsmEvent) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2375)
HutongGames.PlayMaker.Fsm:Event(FsmEvent) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2456)
PlayMakerFSM:OnDisable() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:631)
UnityEngine.GameObject:SetActive(Boolean)
HutongGames.PlayMaker.Actions.ActivateGameObject:SetActiveRecursively(GameObject, Boolean) (at Assets/PlayMaker/Actions/ActivateGameObject.cs:117)
HutongGames.PlayMaker.Actions.ActivateGameObject:DoActivateGameObject() (at Assets/PlayMaker/Actions/ActivateGameObject.cs:99)
HutongGames.PlayMaker.Actions.ActivateGameObject:OnEnter() (at Assets/PlayMaker/Actions/ActivateGameObject.cs:43)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:205)
HutongGames.PlayMaker.FsmState:OnEnter() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:175)
HutongGames.PlayMaker.Fsm:EnterState(FsmState) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2767)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState) (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2714)
HutongGames.PlayMaker.Fsm:UpdateStateChanges() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2642)
HutongGames.PlayMaker.Fsm:Start() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1925)
PlayMakerFSM:Start() (at C:/Users/Alex/Documents/Unity/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:548)

===
2018.2.4f1
playmaker 1.9.0
windows 10 64 bit
32 gb ram
gefroce gtx 970
AMD fx 4130 quad core processor 3.9 ghz

Pages: [1] 2 3 ... 7