ULX

Author Topic: Ulx completes  (Read 10832 times)

0 Members and 1 Guest are viewing this topic.

Offline skillz

  • Newbie
  • *
  • Posts: 29
  • Karma: 1
Ulx completes
« on: May 31, 2013, 08:25:39 AM »
Hey for one of the commands i'm making for ttt, i want to have all the equipment items to be loaded as completes for the command. when i tried to reference the table of equipment it said that it didn't exist. i've successfully referenced the table in another one of my commands so this leads me to believe the completes are loaded first? Any ideas as to what could be my problem. Im not going to bother posting code because i just want to find out if this is ulx or my coding, if its my coding i can fix it in time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulx completes
« Reply #1 on: May 31, 2013, 09:41:59 AM »
The completes are loaded when the map starts, so it has to be available at that time. Just make sure that the table you're using is created and populated when the file executes ABOVE where you're passing it to ULX.
Experiencing God's grace one day at a time.

Offline skillz

  • Newbie
  • *
  • Posts: 29
  • Karma: 1
Re: Ulx completes
« Reply #2 on: May 31, 2013, 10:06:14 AM »
Does that mean the completes are loaded before the rest of the commands in the lua file?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ulx completes
« Reply #3 on: May 31, 2013, 10:27:21 AM »
It means your table is ready before you pass it in, yes.
Experiencing God's grace one day at a time.

Offline skillz

  • Newbie
  • *
  • Posts: 29
  • Karma: 1
Re: Ulx completes
« Reply #4 on: May 31, 2013, 10:30:57 AM »
Hmmmm ok ill try and work out why its not working.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given