playMaker

Author Topic: 'Array List Remove At' doesn't remove anything[SOLVED]  (Read 3849 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
'Array List Remove At' doesn't remove anything[SOLVED]
« on: January 29, 2015, 02:45:13 PM »
Hi,

i have this problem in my program.
Using 'Array list get Random' and just after that 'Array list remove At'

i get the random card like i want but it 's clearly not removed after that, it can cause duplicated index during this step, wich is not desired in the rules of my game..

i have to precise that, i'm using Quaternion variables in the list
« Last Edit: April 07, 2015, 02:45:39 AM by jeanfabre »

FrankDePaul

  • Playmaker Newbie
  • *
  • Posts: 25
Re: 'Array List Remove At' doesn't remove anything
« Reply #1 on: April 05, 2015, 08:17:34 PM »
Did you ever get this figured out? I am also having issues using Array List Remove. I have an array that i fill with objects. Tile1,Tile2,Tile3,Tile4. Grab a random one, stick it in an Object Variable, create an object based on that variable, and then try to remove it form the array using that variable. It never does remove the object. I try this in a loop to spawn a table full of objects but have problems.

FrankDePaul

  • Playmaker Newbie
  • *
  • Posts: 25
Re: 'Array List Remove At' doesn't remove anything
« Reply #2 on: April 05, 2015, 09:18:02 PM »
Ugh, what a nightmare. I have 2 arrays in an array_Manager. One named Tiles that hosts the Object, the other named Positions that store Vector3 locations.

I had Positions on the array spelled correctly, but when it came time to delete I was referencing "Positons"... I was short an I. There goes a couple hours of pain.

 :) >:( :o

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 'Array List Remove At' doesn't remove anything[SOLVED]
« Reply #3 on: April 07, 2015, 02:48:04 AM »
ouch...

Did it not log some warning in the console that it did not find the reference?

I have added this in the check list for ArrayMaker

https://trello.com/c/jPAktQDt/77-arraymaker-update

 Bye,

 Jean

FrankDePaul

  • Playmaker Newbie
  • *
  • Posts: 25
Re: 'Array List Remove At' doesn't remove anything[SOLVED]
« Reply #4 on: April 07, 2015, 11:40:08 AM »
Yes it did show some errors in the console, but I am a bit new to this and was a bit confused as to what I was looking at. I had an idea there was an issue there, but got lost in the other lines that popped up in the console with it.

I looked at the array name several times and just missed it. It was combination of being new to this and not reading the text completely. I have learned to copy and paste :-)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 'Array List Remove At' doesn't remove anything[SOLVED]
« Reply #5 on: April 08, 2015, 05:02:36 AM »
 ;D

copy paste is evil sometime :) I still fail to do it properly... so don't worry we are in the same boat...

 Bye,

 Jean