Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - harko12

Pages: [1]
1
I have been trying to figure out why my channels keep getting closed on me, and I see now it's because of this logic
// Close the channel if it wasn't persistent
         if ((!persistent || playerLimit < 1) && players.size == 0)
         {
            closed = true;

            for (int i = 0; i < rfcs.size; ++i)
            {
               RFC r = rfcs;
               if (r.data != null) r.data.Recycle();
            }
            rfcs.Clear();

I did mark the channel persistent, but I didn't specify a playerlimit (0).  So because of that, when the last player leaves it closes.

My plan involves giving different players 'assigned channels' so they can leave and come back to the same one.  This close behavior kind of messes with that.  I can get around it probably just by artificially upping the player limit, but I was wondering what the reason was for that behavior?

Thanks.

2
TNet 3 Support / Soup to nuts for saving player data to the server
« on: September 11, 2016, 08:54:14 PM »
Hi there.  I've been struggling for days now trying to get my server to save and then re-load the player data that I'm setting for my player.  I have read all the posts I can find, and followed the advice, but still it doesn't work.

Can somebody post from connect to disconnect what steps you would have to take to create a player save file, save data, then reload it next time you connected?  Maybe what I'm missing will jump out at me. 

Thanks.

Pages: [1]