Book a Demo

Author Topic: Level Numbering in SQL Queries  (Read 3918 times)

M. LaPointe

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Evolve. Get picked for the next universe.
    • View Profile
Level Numbering in SQL Queries
« on: August 08, 2014, 07:46:22 am »
Level Numbering values are not stored in t_object, or other table (that I could find).

Is there a way to calculate Level Numbering when querying the database directly? t_object.ParentID is easy enough to find, but I cannot find anything that suggests tree sequence or level.

t_object.TPos is populated only sporadically, and only when a tree sequence has been user-adjusted.
Best regards,

M. LaPointe

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Level Numbering in SQL Queries
« Reply #1 on: August 08, 2014, 08:35:49 am »
The sort order is calculated by some strange algorithm inside EA. You can not pull it from a simple query.

q.

M. LaPointe

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Evolve. Get picked for the next universe.
    • View Profile
Re: Level Numbering in SQL Queries
« Reply #2 on: August 08, 2014, 11:34:38 pm »
Such as I feared. Thanks.

I have copied the level numbers to a tagged value  in the past, I suppose that will remain the path forward.
Best regards,

M. LaPointe

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Level Numbering in SQL Queries
« Reply #3 on: August 09, 2014, 05:29:52 am »
At least TVs are stable once you created them and you don't have any silly add-in playing around with them  ;)

q.