0

I am now making a MMO game using Unity. Also I am using the LiteDB to store users data. UserModel looks like this. UserModel of my game

Everything is working correctly except for the mUserOwnerClientId. The variable type is ulong and I tried to store ulong.MaxValue. But the stored value was -1 and when I tried to read from database, there was an error because ulong could not be less than zero.

When I store ulong.MaxValue, it is stored as -1

So I have a question here.

Does LiteDB support ulong storing?

Fildor
  • 14,510
  • 4
  • 35
  • 67
James
  • 1
  • 2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Aug 23 '23 at 10:32
  • Okay I will edit the question. – James Aug 23 '23 at 12:40
  • Post code, not images of our links to code. – Fildor Aug 23 '23 at 16:44
  • _"Does LiteDB support ulong storing?"_ - LiteDB has excellent [documentation](https://www.litedb.org/docs/data-structure/). Which indicates only signed long support. But nothing will stop you from storing a `byte[]` ... – Fildor Aug 23 '23 at 17:17

0 Answers0