User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Mooclick server that only allows 2 players!

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    1,013
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)

    Mooclick server that only allows 2 players!

    Hey,

    I'm making a Battleship clone. I'm basically done with the whole game except for some bugs and graphics missing. Right now I'm trying to solve how I can make the game only accept 2 players. Since when someone else happens to join the same server everything goes crazy.

    I have 1 server and 1 client(the game). How do I make it so that when the 3rd player joins he will get a big "NO!!" in the face and is thrown out before his presence can ruin the game for the other two playing?

    If you need to see source I can upload it in the file archive on request.

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick server that only allows 2 players!

    Make it so if there are more than 2 players besed on the Moo object it boots off the most recent player. Best I can say without seeing the .mfa.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    1,013
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)

    Re: Mooclick server that only allows 2 players!

    I can make it check for players but I have no idea how to find out the most recent player or how to kick a player using MooClick.

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick server that only allows 2 players!

    Just end the application of the most recent player to boot them, I guess...
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    Mar 2007
    Location
    San Diego
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick server that only allows 2 players!

    well you could set an alterable value of the player when they enter to the number of players on the channel. Then if this alterable value is 3 then that person should be disconnected.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    1,013
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)

    Re: Mooclick server that only allows 2 players!

    I liked your idea KetchupMaster, but for some reason MooClick always returns 1 players value. No matter how many we are. This is when I do:

    - On Sign On
    + Set Alterable Value(Active Object) to _CountPlayers( "MooClick" )

    It's the same if I use the PC_CountUsers( "MooClick" ) and also in combination with the Is Signed On condition.


  7. #7
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick server that only allows 2 players!

    Well, post your file and we can see what we can do.
    Working as fast as I can on Fusion 3

  8. #8
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    903
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick server that only allows 2 players!

    The only thing you have to do is (server side)

    Connection: On connect
    Connection count >=2 ---disconnect


  9. #9
    No Products Registered

    Join Date
    Mar 2007
    Location
    San Diego
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick server that only allows 2 players!

    don't you need to specify the channel somehow?

    EDIT: this is my 100th post YAY!!!

  10. #10
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    Merseyside, UK
    Posts
    398
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Mooclick server that only allows 2 players!

    I liked your idea KetchupMaster, but for some reason MooClick always returns 1 players value. No matter how many we are. This is when I do:

    - On Sign On
    + Set Alterable Value(Active Object) to _CountPlayers( "MooClick" )

    It's the same if I use the PC_CountUsers( "MooClick" ) and also in combination with the Is Signed On condition.
    Do not do this in the OnSign On event, this fires before your moo click client is told of all the other users in the channel. Use the On user is here event.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. MooClick other players not working correctly
    By izac in forum File Archive
    Replies: 2
    Last Post: 22nd June 2008, 09:46 PM
  2. MMORPG in mooclick - players in server app problem
    By RadaSs in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st April 2007, 01:46 PM
  3. multiple players on 1 server moving problem
    By dylan99379 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 9th December 2006, 10:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •