playMaker

Author Topic: ArrayMaker is now available [April 2021]  (Read 177108 times)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #195 on: June 17, 2015, 12:10:35 PM »
hi Jean,
i noticed on the Easy Save Actions
that the default save file is still : defaultES2file.txt

and the default from all other Action are : defaultfile.txt

Easy Save has changed the default a while ago.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #196 on: June 17, 2015, 12:52:22 PM »
hi jean,

I took the time to edit them and i tested them also
I also checked if the filenames where not changed in the test scene and they where still defaultES2File.txt so that is good

ow and i changed "Save File" to Filename so they are the same as the other Actions

you can test them and update on github if you want.
the package includes the complete folder.

i can update it also, but i want permission from you then.

Edit : there is still some problem i found if file path is not defautES2File.txt
but this problem is also there on the original actions.
checking it now..
« Last Edit: June 17, 2015, 01:29:04 PM by djaydino »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #197 on: June 17, 2015, 01:24:49 PM »
Hi,

 Yeah, of course you can make changes to fix things :) then I'll update the packages.

 you can also fortk the github rep and push your version, which would be even more efficient, but not mandatory.

 bye,

 Jean

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #198 on: June 17, 2015, 01:35:16 PM »
there is another problem but i don't know what to change

when i set (only tested hashLoad and save) a action on a different object and use specify gameobject to where my hashtable component is

i get a not found error :
Code: [Select]
Easy Save 2 Error: The data, tag, file or folder you are looking for does not exist. Please ensure that ES2.Exists(string identifier) returns true before calling this method.
UnityEngine.Debug:LogError(Object)
ES2Reader:ProcessHeader(Key, ES2Type, ES2Type, String)
ES2Reader:ReadDictionary(String)
ES2:LoadDictionary(String)
HutongGames.PlayMaker.Actions.HashTableEasyLoad:LoadHashTable() (at Assets/PlayMaker ArrayMaker EasySave2/Actions/HashTableEasyLoad.cs:83)
HutongGames.PlayMaker.Actions.HashTableEasyLoad:OnEnter() (at Assets/PlayMaker ArrayMaker EasySave2/Actions/HashTableEasyLoad.cs:59)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:UpdateStateChanges()
HutongGames.PlayMaker.Fsm:UpdateState(FsmState)
HutongGames.PlayMaker.Fsm:Update()
PlayMakerFSM:Update()

when i move the action to the object where the component is it works

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: ArrayMaker is now available [MAI 2014 NEW VERSION]
« Reply #199 on: June 17, 2015, 02:35:46 PM »
Hi,

 yes, ArrayListGetFarthestGameObject.cs

 is it not in your package? have you downloaded the latest from the wiki?

 Bye,

 Jean

Hey Jean,

Do you mind double checking this action? (  ArrayListGetFarthestGameObject )
To me it acts exactly like the one that finds the closest game object. Checking out the actual script, it seems like the variable names were changed from closest for farthest but other than that everything is working the same way.

Did I misunderstand something or maybe have the wrong file?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #200 on: June 17, 2015, 03:19:15 PM »
there was a < that should be >

i could not find right way on github where i could update

you can copy paste this for now,

we will update asap

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #201 on: June 17, 2015, 03:37:12 PM »
there was a < that should be >

i could not find right way on github where i could update

you can copy paste this for now,

we will update asap

Thanks, I just tried it but it didn't work, now it always returns as None.
Any tips?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #202 on: June 17, 2015, 03:57:01 PM »
hmmm, and ArrayListGetClosestGameObject does work?

i compared ArrayListGetClosestGameObjectInSight vs ArrayListGetFarthestGameObjectInSight

and i saw there that the < was different on each and on
ArrayListGetClosestGameObject / ArrayListGetFarthestGameObject
where the same

i think you will have to wait for an answer from jean then

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #203 on: June 17, 2015, 04:13:53 PM »
hmmm, and ArrayListGetClosestGameObject does work?

i compared ArrayListGetClosestGameObjectInSight vs ArrayListGetFarthestGameObjectInSight

and i saw there that the < was different on each and on
ArrayListGetClosestGameObject / ArrayListGetFarthestGameObject
where the same

i think you will have to wait for an answer from jean then

Yeah that makes total sense, but doesn't seem to work.
I tested ArrayListGetFarthestGameObjectInSight and that also didn't work (returns null)

Both ArrayListGetClosestGameObjectInSight and ArrayListGetClosestGameObject work perfectly which is what makes me think the problem is with the scripts and not on my end, though I could be wrong.

Thanks a lot anyways!


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #204 on: June 18, 2015, 02:36:20 AM »
Hi,

 Thanks for spotting this, I'll double check and push when I have fixes.

 Bye,

 Jean

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #205 on: June 30, 2015, 04:47:29 PM »
So I think I got it working, by flipping the < like djaydino did, but also changing this:
Code: [Select]
float sqrDist = Mathf.Infinity;to this
Code: [Select]
float sqrDist = 0;

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 713
    • Flashing Lights
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #206 on: July 02, 2015, 03:50:54 PM »
Hi,

using the new version I get this error:

Code: [Select]
InvalidCastException: Cannot cast from source type to destination type.
HutongGames.PlayMaker.Actions.ArrayListGetClosestGameObject.DoFindClosestGo () (at Assets/PlayMaker ArrayMaker/Addons/Custom/GameObject/ArrayListGetClosestGameObject.cs:100)
HutongGames.PlayMaker.Actions.ArrayListGetClosestGameObject.OnUpdate () (at Assets/PlayMaker ArrayMaker/Addons/Custom/GameObject/ArrayListGetClosestGameObject.cs:77)
HutongGames.PlayMaker.FsmState.OnUpdate ()
HutongGames.PlayMaker.Fsm.UpdateState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.Update ()
PlayMakerFSM.Update ()

When delete it and import the old one (could be May version), no errors.

Unity 5.0.1f1
PM 1.7.8.3

Any ideas if this is a easy fix? I’m about to submit an asset, should I include the working ArrayMaker in the pack (leaving it in the Assets folder) and later when Wiki have the fix then remove..?
Please advise :)

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #207 on: July 13, 2015, 05:11:15 PM »
Is there a way to get the closest game object in sight and exclude self?
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

johannastephen

  • Playmaker Newbie
  • *
  • Posts: 35
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #208 on: July 13, 2015, 07:51:57 PM »
Hi. I upgrade Arraymaker and i have get many errors. i also delete the Utils" folder before update. here is logs:

The fsmVar value <UnityEngine.Vector3> doesn't match the value <System.Single>

How can i correct this? (The other scenes show same errors. about Vector3)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayMaker is now available [JUNE 2015 NEW VERSION]
« Reply #209 on: July 14, 2015, 12:31:16 PM »
Hi,

 ok, I have pushed a version with the latest PlayMaker utils and also a better log for this error, you'll know the state fsm name and gameobject name, so if this happens again, go to that state and see what actions are there and if they are all in order, maybe a variable went missing or something.

else, can you also report the unity version and PlayMaker version? thanks.

Bye,

 Jean