Author Topic: Saving/Loading User Files  (Read 3253 times)

gg67

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 66
    • View Profile
Saving/Loading User Files
« on: February 26, 2014, 06:43:03 PM »
Hey Aren,

Can you explain or (point me in the direction on) how to use the save/load files for individual users in TNet? And is saving the state of the server using TNGameServer doing a similar thing?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Saving/Loading User Files
« Reply #1 on: February 27, 2014, 06:57:11 PM »
Assuming you have some kind of unique identifiers for users (such as an account ID), you would want to save/load files using that unique identifier. So for example, "player_12345_1", where 12345 is the account ID, and the last '1' is the character slot.