Author Topic: ULib Database  (Read 2479 times)

0 Members and 1 Guest are viewing this topic.

Offline fackelkind

  • Newbie
  • *
  • Posts: 24
  • Karma: 4
ULib Database
« on: September 11, 2006, 12:04:17 PM »
Hey medigo, hey everyone else,

I am wondering, if the buildin database function
of ULib will save recursive tables too and if it will
save functions too. Is there somebody who can
answer this?

And one suggestion: It would be handle if one
could access the mainUCL userlist through, to
list all players, instead of having to call the
ULib.mainUcl["steamids"] table.


Greetings fackel

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULib Database
« Reply #1 on: September 11, 2006, 01:16:55 PM »
Yes, the database saves all levels of tables, no it cannot save functions (it would have to save the whole source file).

What return format are you proposing for a userlist, and would it return all players or just online players?
Experiencing God's grace one day at a time.

Offline fackelkind

  • Newbie
  • *
  • Posts: 24
  • Karma: 4
Re: ULib Database
« Reply #2 on: September 11, 2006, 01:21:56 PM »
Good to know :D

I would prefer returning a table like this:

return {
     [steamid] = {
          flags = flags,
         pw = pw,
         etc
     }
}


Edit: It would contain all users listet in the users.ini

So that I have an assosiative array with steamids as keys.