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 - Athin

Pages: [1] 2
1
PlayMaker Help / Send Event Failing to Send
« on: May 24, 2020, 06:56:28 AM »
Hey guys,

I'm really confused with this one, I got a FSM that sends a global event to another FSM on the same Game object. It fails to fire off every time. Odd thing is if I use a Next Frame Action and throw the failing Send Event action into another state, it works?  I have no clue why that would work, is there something I'm missing on how this action functions?

Hate having things working without knowing why its working lol.

Thanks   

2
PlayMaker Help / Parenting GO to a Canvas causing scaling issues
« on: March 27, 2020, 04:53:03 AM »
Heya,

I've been fighting this for awhile now trying to get it to work properly but I just can't figure it out. I'm hoping to get some help.

I have a Canvas set in screen space with the main camera attached to render.  When activated, this canvas comes over the current canvas.  In the middle I have an UI Image anchored for the center and a character GO as its child.  This character GO just goes crazy with its scaling.  When it spawns in, it starts at 446 scaling and regardless what size I scale the model in Blender, it seems to not change the GO in Unity.  I've double check that everything is correctly scaled in the Hierarchy as 1,1,1 too.   

The main problem with this is when I'm trying to add weapons and armor to this GO (like an RPG character screen), the scaling on those go crazy as well.  I've been fiddling with Set Scale actions but its only a band-aid for the problem (not that its even working that well either!).

Am I missing something basic or doing this the wrong way?  Any help would be appreciated.

Thanks

3
PlayMaker Help / ArrayList Proxy Null Error
« on: February 21, 2020, 06:29:46 AM »
Heya,

So I think I stumbled onto a bug but can't seem to track it exactly down. 

Basically I have a GO that holds an array of all the resources it needs (Construction Site) and also adds itself to the job list array on another GO(Empty Job Manager).  A third GO (Builder Unit) then checks the Job list and finds a work site.  Once found, it checks the resources needed and collects what he needs.  This all works fine until the Construction Site is destroyed.  Once a new site appears for the unit to check the resources again, this null error appears.

At first I figured it was my logic somewhere but a break point right before the Get Next action for the Missing Resource Array shows everything to be correct.  The Builder unit has the correct GO Variable, Array Reference, Reset Flag, Ect. What really makes me think its a bug is by simple deactivating the Construction site rather then destroying it fixes this issue. It's like destroying the GO causes a Ghost reference for that Get Next array to try to find

Now I've tried to Isolate this by re-creating this in a new scene but couldn't.  Has anyone else notice this happening or knows the cause that it could be?

Thanks

4
PlayMaker Help / How to manage lots of UI Button changes
« on: August 08, 2019, 08:28:00 PM »
Hey guys,

I've always struggled with how to handle UI buttons constantly activating/deactivating with my RTS project and was looking for some advice.  My basic setup currently is whenever you click on a unit/building, that send an event to activate X buttons in an array and also hands them an Int Button ID . When X button is clicked, it shoots that button ID to a logic check FSM to see what action to do.

This works for the most part but is very chunky and bulky as I have to reset icons and values constantly.

Thanks for any help anyone can give!


5
Hey guys,

I'm making an RTS style project featuring large armies.  When I got two armies fighting each other, that initial clash tends to be both sides focusing down 1 guy (The one that triggers the fight) before spreading out to different targets. 

I'm hoping this action can find the closest target and have a Loop event into a new state.  At that state, I can check if the current target is engaged and then loop back to find the second closest unit if needed.

Not sure if there is something out there already for this but I couldn't seem to find anything.

Thanks

6
PlayMaker Help / Array List Events[SOLVED]
« on: March 23, 2019, 03:08:06 AM »
Hey everyone.

Hoping I'm just going blind but I need to ask.  I'm currently using an action to create an Array list during run time and I wanted to add some events into that array component.  Specifically the add/remove events.  Its easy enough to add those events on pre made array list but I can't seem to find any action that does this at run time.

Anyone able to point me at the right direction?

Thanks

7
PlayMaker Help / Playmaker loses focus when editing FSM
« on: February 24, 2019, 12:22:50 AM »
Hey guys,

I've updated to Unity 2018.3.2f1 and just did a new playmaker install as well on my old project.  Now with the new prefab system, any time I try to edit a string in the FSM's, it tends to de-focus after I type in 1 or 2 letters.  Renaming the FSM for Ex will cause this. 

If I drag it into the scene, I can edit the instance and drag it back into prefab but now I get a warning for every change I make in the game object.  Its getting really bulky trying to do anything in this system.

Is anyone else having similar problems or know a way to fix this?

Thanks

8
PlayMaker Help / Advice for handling Combat
« on: January 27, 2019, 09:35:27 PM »
Hey guys

I'm making a RTS style project with large scale battles and I am looking for some help with the system.  I'm looking to make similar combat like the Total war series and was wondering what was the best way to tackle this?

Currently I'm thinking placing each unit in the squad in an Array.  Using the "leader" unit in each squad Array (Index 0 unit) and compare his distance to each eligible "Enemy" unit.  If he is within X distance then send event to the squad to start combat otherwise keep checking.

I can see this system having some odd results though depending on how wide the formations are set up and what angle each squad comes in at. 

I need something that doesn't require each unit to constantly be active looking for enemies as I'm planning to have quite a few units in play at once

Anyone have any suggestions?

 

9
PlayMaker Help / Find Game Object Issue
« on: January 12, 2019, 10:04:32 PM »
Hey guys,

I'm hoping to get some help on this one as I'm ripping my hair out trying to figure this out.  I got a simple find game object action going to find any object with the TAG Open.  This was working fine for awhile now but suddenly today, the action is finding objects that aren't in the scene?!? 

I have a farm with the TAG open in my project but none in the scene.  The action will find an object farm (Scene Preview) when used?  clicking on that object variable doesn't show the object in the scene and causes errors shortly after since now I got a dud game object var basically.

Side note: I had a Get Parent action right after the find object action as well and what it found was called farm (Scene Preview) Animator (Scene Preview).  The farm doesn't even have an animation on it?  When clicking on it, the editor doesn't highlight where this is coming from yet the inspector shows a game object farm with an animator???  Also restarting my Unity seems to fix it for a few play through until it starts up again.

This one really has me confused badly and I'm at the point of changing this whole system around to adjust for this.  Does anyone know the cause or how to fix it?

Thanks

10
PlayMaker Help / Rotation Formation
« on: December 16, 2018, 06:07:59 AM »
Hey everyone.

Hoping to get some help with this one.  I'm currently working with groups of units that I want to line up into a formation (Think like RTS total war style).  I've currently got it semi working but need help to figure out how to handle the actual rotation on the formation.

Currently I have a manager that has all the units selected in an array.  I use that array to line up my guys.  Ex First unit goes exactly where I select, second unit goes to the location I select but also adds his array index to the location target ( adds 1 to X). It works fine like that but they always line up looking north this way.  What I want to do is add in the effect of them off setting depending on the angle from their current location to my selected spot.

I've found Get Angle to Target action and I know this will be what I want but I'm not sure how to use it to get my result.  Any help would be greatly appreciated!

Thanks

11
PlayMaker Help / ArrayListGetNext Error: Proxy is Null Issue[SOLVED]
« on: November 11, 2018, 05:00:54 AM »
Hey guys

I've been banging my head on this error and I'm not sure whats causing it to trip up.

Without going into to much of what the FSM is doing (As its pretty complicated now) I tried to do a work around since I can't find a cause.  I place a Array List Exist action above the Get Next action but I STILL get this error.  The Exist action fires off the Does Exist even but then imminently after tells me the proxy is NULL?  Odd still is if I play the scene after I get the error the Get Next action runs perfect fine. It is as if its out of sync by a frame or something silly like that.  I'm completely stumped on this one and I'm hoping its just something simple I'm missing or someone knows a workaround/cause of it.

thanks

12
PlayMaker Help / Get Agent Remaining Distance Issue
« on: September 23, 2018, 03:58:21 AM »
Hey guys

I've been having this issue when using this action in Playmaker.  I'll set the Agent Destination and under will have the Get Agent Remaining Distance.  Problem is that Remaining Distance always returns 0 firing off my finish pathing event right away. 

I did some research and it looks like it has something to do with the path still calculating when you do the check causing it to think the distance is 0.  I've seen a few people say they fix it but I can't seem to find an action in the ecosystem with the fix and I'm no coder so can't edit it myself.  I've made a simple workaround having a Wait action in there but this isn't ideal.

Is anyone able to help me locate this fix action or guide me to the right spot on how to fix it.

Thanks!

13
PlayMaker Help / Canvas and Mouse Pick Issue [SOLVED]
« on: August 28, 2018, 04:22:45 AM »
Hey guys,

Got another problem I'm hoping someone can help with.  I'm using the Canvas for my UI currently.  What I'm trying to do is when the player clicks on the screen, a mouse pick action plays.  I have only 1 layer on the filter for UI (Which is what the Canvas is in) with a Bool to go true if it clicks on the UI.  Trouble is, the pick mouse doesn't seem to ever register it clicked on the canvas at all.  Is there an Action I'm missing or something I'm doing wrong?

Thanks

14
PlayMaker Help / Array List Get Next Issue [SOLVED]
« on: August 26, 2018, 01:26:56 AM »
Hey all,

I've been having this issue with this action and I'm hoping I can find some help here.

What I have is 5 inactive buttons on my screen all in an Array.  When I select a unit,I have an Array List Get Next action to grab the first button.  Right below that action is a simple check if its activated or not.  If not the action repeats until an inactive button is found. I have everything working correctly but one issue I can't solve.  Every time I select and deselect a unit, the next time I select them again the second button activates rather then the first again.  This continues to the third and forth button as I select and deselect the units.

I found a Reset setting on the get next action and tried setting that to true to force it to start from the beginning of the array again but it just doesn't seem to work.

Does anyone have any ideas what I'm doing wrong?

Thanks


15
PlayMaker Help / RTS UI Issue
« on: July 21, 2018, 02:35:36 AM »
Hey guys,

I ran into an issue I'm not quite sure how to work around and was hoping for some help or guidance with this issue.

I'm trying to make a RTS UI where the player can select the unit and their stats/picture/skill buttons all appear on the UI.  I have this working but I'm running into the issue of having multiple different type of units selected.  What I want to make is when the player selects multiple different units, that units icon appears in place of their picture on the UI along with any other different type of unit selected.  This allows you to switch between the different groups while still having them all selected.

Problem is I'm not quite sure how to do it efficiently. I'm currently making preset buttons that just activate/deactivate accordingly to the selection but that is just a work around. What I want is to make an array and use that to fill in the UI as you select more units.

Any help would be greatly appreciated.

Thanks!


Pages: [1] 2