Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
logging in

 
Post new topic   Reply to topic Printable version
 View previous topic  ASSS compiling issues Post :: Post Biller Hookup  View next topic  
Author Message
-Smong-
Guest


Offline

PostPosted: Fri May 21, 2004 3:09 pm    Post subject: logging in Reply to topic Reply with quote

I think asss should restrict multiple logins from the same macid/ip. It can be a per connectas option in global.conf, the default being 2 simultaneous logins from one person.

Also as a work around for a flaw in SSC biller, you should only be allowed to create 1 new account a day. So Asss would have to ignore the regform/demodata from users trying to make multiple alias.

Implementing these changes shouldn't effect legitimate users, but will hopefully deter disruptive players.
Back to top
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Fri May 21, 2004 3:12 pm    Post subject: Reply to topic Reply with quote

1 new account a day? Lol, hope you aren't setting up a lot of bots. I have legitamatly made 10 accounts in a day. Having to spread that 5 miniute task out over 10 days would truely suck.

As for the multiple logins, make the ability to do it a capability, again for the purposes of bots. Can't have a bot server and then only get to put one bot in the game.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
-Smong-
Guest


Offline

PostPosted: Fri May 21, 2004 3:20 pm    Post subject: Reply to topic Reply with quote

The bots would connect through the VIE connectas anyway. Also go to a subgame2 zone if you want to make loads of new accounts. One more step for the would be disrupter, slowing them down.

I saw a load of spam accounts is HS today, I don't know if they were bots, or different people or the XP trick, but I didn't find it amusing.
Back to top
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Fri May 21, 2004 10:46 pm    Post subject: Reply to topic Reply with quote

I thought connectas was what distinguishes the different virtual servers in game? Doesn't the multipub module module use it to determine the default arena?
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Qndre
Server Help Squatter


Gender:Gender:Male
Joined: Jan 25 2004
Posts: 295
Offline

PostPosted: Sat May 22, 2004 5:08 am    Post subject: Reply to topic Reply with quote

Dr Brain wrote:
1 new account a day? Lol, hope you aren't setting up a lot of bots.

I don't think that BOTs send a registration form. biggrin.gif
Back to top
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Sat May 22, 2004 8:22 am    Post subject: Reply to topic Reply with quote

Qndre wrote:
I don't think that BOTs send a registration form. biggrin.gif


MERV does, and mine certainly do.
_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sat May 22, 2004 10:19 am    Post subject: Reply to topic Reply with quote

Boy, it's a darn good thing Qndre isn't trying to write his own client, because he doesn't have a single clue about how subspace works... Oh, wait...
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
-Smong-
Guest


Offline

PostPosted: Sat May 22, 2004 11:03 am    Post subject: Reply to topic Reply with quote

You are right (both times), just make it a capability and hardcode the max simultaneous logins to 1 for all listen ports. It is too difficult to work out which port a player came in by, which is needed for a setting lookup.
Code: Show/Hide
--- /home/palm/cvs/asss/src/core.c   2004-05-08 00:22:09.000000000 +0000
+++ /home/palm/asss/src/core.c   2004-05-22 15:58:24.000000000 +0000
@@ -705,6 +705,10 @@
   }
   else if (IS_STANDARD(p))
   {
+      Player *i;
+      Link *link;
+      int count;
+   
      struct S2CLoginResponse lr =
         { S2C_LOGINRESPONSE, 0, 134, 0, {0, 0, 0},
            0, {0, 0, 0, 0, 0}, 0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0} };
@@ -738,6 +742,30 @@
         lr.codechecksum = -1;
      }

+      /* limit multiple connections from the same machine */
+      count = 0;
+      FOR_EACH_PLAYER(i) /* coming from a packet func, pd is already locked */
+      {
+         if (i->macid == p->macid)
+            count++;
+      }
+
+      if (count > 1 && capman && !capman->HasCapability(p, "multiplelogin"))
+      {
+         if (p->type == T_CONT)
+         {
+            lr.code = AUTH_CUSTOMTEXT;
+            strncpy(auth->customtext,
+               "You are already logged in",
+               sizeof(auth->customtext));
+         }
+         else
+            lr.code = AUTH_NONEWCONN;
+
+         lm->Log(L_DRIVEL, "<core> [pid=%d] login request denied: "
+            "multiple (%d) conn from same machine", p->pid, count);
+      }
+
      if (lr.code == AUTH_CUSTOMTEXT)
      {
         if (p->type == T_CONT)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 31 page(s) served in previous 5 minutes.

phpBB Created this page in 1.268206 seconds : 30 queries executed (98.2%): GZIP compression disabled