Author Topic: Where and what is the server.dat?  (Read 4413 times)

Trollvahkiin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Where and what is the server.dat?
« on: November 29, 2014, 09:59:57 PM »
Hey, so I've been looking into adding multiplayer into my game and so far so good but I've encountered the code which starts a sever in "Example Menu" which has this:
  1. TNServerInstance.Start(serverTcpPort, udpPort, "server.dat");
What is that file "server.dat". I assume its the sever data where you can save player locations? Where is it located and how specifically do you load and save to it? Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Where and what is the server.dat?
« Reply #1 on: November 30, 2014, 06:04:04 AM »
It's just a data file it uses to save the server's state into. All persistent channels and RFCs get saved there. It's basically your "save file" for your game. I use it in Windward to save the entire world, for example. I have no save functionality in Windward beyond what's already there in TNet, which is convenient to say the least.

Trollvahkiin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: Where and what is the server.dat?
« Reply #2 on: November 30, 2014, 03:49:38 PM »
It's just a data file it uses to save the server's state into. All persistent channels and RFCs get saved there. It's basically your "save file" for your game. I use it in Windward to save the entire world, for example. I have no save functionality in Windward beyond what's already there in TNet, which is convenient to say the least.

So where is it located and can it be opened to see what's saved in it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Where and what is the server.dat?
« Reply #3 on: December 02, 2014, 12:43:03 PM »
Right where your executable is (or your project folder if running it from Unity).

It's binary, so you won't be able to understand much of it.