#realm database

19 messages · Page 1 of 1 (latest)

lime sky

hi, I want make a bot with the list of all players in a game so I get the realm database of the game but I now I need to make a json file, the problem is that I get a file with all things in disorder, how can I do?

lone steepleBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
lime sky

here my files

valid cliff

is there a reason you need JSON? there's no easy way to turn a database into JSON

lime sky

I need the json

because I need to choose random players etc...

lament lichen

Storing that absolute monster of a file on local memory is not going to be a good idea @lime sky

And that first file is like 3 different Arrays rather than JSON

There must be a better approach

lime sky

a way exist because a guy give me the json file but he doesn't want tell me how he get it

lament lichen
lime sky
lament lichen
lime sky for possible is possible but hard

How complex is this DB, just the type of DB, and the properties/columns would be suffcient.

And the objextice "I need to get a random player from table X where Y is true" or something to that effect

lime sky

I know, I will wait somebody else. thanks

fossil phoenix

I would recommend MongoDB for this, especially due to its JSON-like system

lime sky
fossil phoenix
lime sky
fossil phoenix