Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 31, 2011, 3:35:59 PM (14 years ago)
Author:
smerkli
Message:

Started thinking about server list cleanups

Location:
code/branches/masterserver2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/masterserver2/data/levels/templates/spaceshipAssff.oxt

    r7845 r8163  
    88   explosionchunks        = 6
    99
    10    health            = 100
    11    maxhealth         = 200
    12    initialhealth     = 100
     10   health            = 100000
     11   maxhealth         = 200000
     12   initialhealth     = 100000
    1313
    14    primaryThrust     = 100;
    15    auxilaryThrust    = 30;
     14   primaryThrust     = 10000;
     15   auxilaryThrust    = 3000;
    1616   rotationThrust    = 25;
    1717
     
    5757<Template name=spaceshipassffengine baseclass=MultiStateEngine>
    5858  <MultiStateEngine
    59    boostfactor    = 2
     59   boostfactor    = 20
    6060
    6161   speedfront     = 150
     
    6767   defEngineSndBoost = "sounds/Engine_high.ogg"
    6868
    69    accelerationfront     = 500
    70    accelerationbrake     = 500
     69   accelerationfront     = 200
     70   accelerationbrake     = 200
    7171   accelerationback      =  125
    7272   accelerationleftright =  125
  • code/branches/masterserver2/data/levels/tutorial.oxw

    r7679 r8163  
    3030<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
    3131  <attached>
    32     <Model scale="1" mesh="drone.mesh"/>
     32    <Model scale="10" mesh="drone.mesh"/>
    3333  </attached>
    3434  <collisionShapes>
    35     <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
     35    <BoxCollisionShape position="10,10,0"      halfExtents="10, 10, 10" />
    3636  </collisionShapes>
    3737</Drone>
     
    3939    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
    4040      <attached>
    41         <Model scale="1" mesh="rocket.mesh"/>
     41        <Model scale="1" mesh="drone.mesh"/>
    4242      </attached>
    4343      <collisionShapes>
    44         <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
     44        <BoxCollisionShape position="0,10,0"      halfExtents="10, 10, 10" />
    4545      </collisionShapes>
    4646    </Drone>
  • code/branches/masterserver2/src/libraries/network/MasterServer.cc

    r7801 r8163  
    9999  }
    100100
     101  /* maybe the two methods below can be merged into one and
     102   * made to use ENet's RTT functionality to check for disconnected
     103   * servers.
     104   */
     105  void
     106  MasterServer::helper_pingServers( void )
     107  {
     108    /* get an iterator */
     109    std::list<packet::ServerInformation>::iterator i;
     110    /* loop through list elements */
     111    for( i = mainlist.serverlist.begin(); i
     112        != mainlist.serverlist.end(); ++i )
     113    {
     114      /* to be implemented, waiting for Oli to reply to my email - sandro */
     115   
     116    }
     117 
     118  }
     119
     120  void
     121  MasterServer::helper_cleanupServers()
     122  {
     123    /* same as above. */
     124
     125  }
     126
    101127
    102128
     
    235261
    236262    /* TODO schedule pings for servers somewhere here */
     263    /* Iterate through servers and send pings */
     264    helper_pingServers();
    237265   
     266    /* check for timed out pings and remove those guys from
     267     * the server list
     268     */
     269    helper_cleanupServers();
     270
     271
    238272    /* create an iterator for the loop */
    239273    enet_host_service( this->server, event, 100 );
  • code/branches/masterserver2/src/libraries/network/MasterServer.h

    r7801 r8163  
    6969      /* helpers */
    7070      void helper_sendlist( ENetEvent *event );
     71      void helper_pingServers( void );
     72      void helper_cleanupServers();
    7173
    7274      /* members */
Note: See TracChangeset for help on using the changeset viewer.