Author Topic: Exactly what is server.dat doing?  (Read 1685 times)

choarrim

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 5
    • View Profile
Exactly what is server.dat doing?
« on: July 29, 2016, 06:58:10 AM »
I am trying to search and understand the server.dat file that gets created when I start a server. I am using the "Example menu" from the including examples to start my own game and it seems that is stores some methods which creates errors for me when I start the server again.

What is it that the .dat file do and how do I control what should be saved and what shouldn't?

None of MY created objects is set as persistent but it seems as if something is storing information anyway?

please help me understand!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Exactly what is server.dat doing?
« Reply #1 on: July 29, 2016, 10:38:52 AM »
server.dat, or whatever filename you choose, is where TNet will store all persistent RFCs and objects you've instantiated. Deleting the file wipes the save. TNet's examples create persistent channels. Using the same channel IDs in the same project will effectively reuse the existing data, for example.