Author Topic: Persistance and AllSaved  (Read 2058 times)

Yarashiel

  • Guest
Persistance and AllSaved
« on: May 30, 2013, 06:29:04 AM »
Hi everybody.

I have a big issue with Tnet right now. One of the reason I picked up the plugin was because of it "persistance" (saving RFC and sending it to future players connecting to the server).

My "persitant" object were still working until today. In my case, it seems like AllSaved ( when sending ) doesn't work anymore. When I disconnect and come back, object are unchanged ( same for every other players).

Of course I'm not seeking for an instant solution here (even if it could save my prototype...), but I wonder if this has ever happened to someone here. Also, in your opinion, what could possibly solve the problem ? Should I recreate a new unity project importing all what I've done ?

Thanks in advance...

Yarashiel

  • Guest
Re: Persistance and AllSaved
« Reply #1 on: May 30, 2013, 06:43:16 AM »
UPDATE :

Well, I've noticed that if one player is still connected, objects are as they should be for future players.

However, if everyone disconnects, nothing is saved on server and future players won't see the objects as they were before the last player has left the server.

Before I report this issue, everything was saved one the server, and even if every players had disconnected, the next one to connect would see the obejcts as they were before...

Is this a Tnet update ?...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Persistance and AllSaved
« Reply #2 on: May 30, 2013, 02:55:54 PM »
Persistence is an option you specify with JoinChannel. It's a boolean flag that's defaulted to "false".

Yarashiel

  • Guest
Re: Persistance and AllSaved
« Reply #3 on: May 31, 2013, 03:00:12 AM »
Ow Jesus ... Thank you Aren, it worked...

Was this parameter to the JoinChannel method in the early versions of Tnet?! I had never activate it and it was working without it till now !

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Persistance and AllSaved
« Reply #4 on: May 31, 2013, 01:43:50 PM »
It was always there, but it was defaulting to "true" which caused people to unintentionally save all their progress. I decided to make it 'false' with the last update.