+ Reply to Thread
Results 1 to 10 of 10

Thread: Chat - create Lobby with password

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Chat - create Lobby with password

    Hi,

    when nobody is in the room lobby you can create a room called 'lobby' and set a password.
    When a user will join the chat - must join the lobby - he get 'The room password is incorrect'.
    Little bug. Nobody should allowed to create a room called 'lobby'.

    One problem more.
    The minimum of caracters is 3 - it's okay.
    But why is the maximum of caracters 11 ?
    When i type in a nick with 12 (ore more) caracters like 'ketchupfreak' and i press the Login button nothing happens...
    ...why not more than 11 caracters ? Isn't good.

  2. #2
    Electrotank jobem's Avatar
    Join Date
    Apr 2004
    Posts
    996
    Thanks
    0
    Thanked 24 Times in 17 Posts
    Hi Ketchupfreak88,

    When you login you do not have to join 'lobby'. You can join any room that your specify in the Flash client. It is not a reservered word. This is actually pretty flexible.

    The minimum of 3 characters and max of 11 is a limit set in the Flash client. The server doesn't care. You can easily modify this limit by editing the FLA file!

    Good luck and let us know if we can help you with anything else :-)
    ------
    Jobe Makar
    @jobemakar
    http://www.electrotank.com

    YouTube ElectroServer video tutorials
    http://www.youtube.com/user/ElectrotankInc

  3. #3
    Junior Member
    Join Date
    Aug 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hi Jobe,

    when the minimum and maximum of caracters must be specified in the *.FLA file, it's okay.
    But where can the user choose another room to join on login ?
    I've made a few screenshots.

    First I typed in my username and typed in a password (when it is specified in the *.XML file),but where I can choose a room ? Nowhere, or do you mean that must be specified in the *.FLA file ?



    I joined.




    I created a new room.




    Room 'Lobby' is missing now. :/




    On this screen I created the room 'Lobby' and set password.




    You can see, 'Lobby' is locked.




    There i wanted to join the room with another client.




    But I wasn't able to join, because of the password.



    Quote Originally Posted by ketchupfreak88
    [red]But I wasn't able to join, because of the password.[/red]
    That is 'The Bug' I wanted to report.

  4. #4
    Electrotank jobem's Avatar
    Join Date
    Apr 2004
    Posts
    996
    Thanks
    0
    Thanked 24 Times in 17 Posts
    Hi,

    Yeah, I understood what you were talking about the first time. It is completely expected behavior.

    Look at the ActionScript on the frame labelled "Code". Look at the "joinRoom" function. That is where you specify the default room to join.

    If a room is created then it will continue to exist as long as there is someone in the room. As soon as the room becomes empty the room is automatically removed. That is why you are able to join the lobby (which is created as you join), and then create another room and it appears that the lobby is lost. The lobby is not lost, it was removed.

    You might wonder how you can keep it from getting automatically removed. Look in the configuration.xml file for persistent rooms. Make the lobby a persistent room and it will never go away.
    ------
    Jobe Makar
    @jobemakar
    http://www.electrotank.com

    YouTube ElectroServer video tutorials
    http://www.youtube.com/user/ElectrotankInc

  5. #5
    Junior Member
    Join Date
    Aug 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by Jobe Makar
    [...]

    You might wonder how you can keep it from getting automatically removed. Look in the configuration.xml file for persistent rooms. Make the lobby a persistent room and it will never go away.
    Ah, that sounds good.
    But I tried, tried and tried and it don't work. :/
    And 'yes', i've restarted the server after every modification.

    Here is the script I used.
    Code:
    	
    		<Zones>
    		    <Zone>
    			    <Rooms>
    				<Room Updatable="false" Hidden="false" Numbered="false" UserVariablesEnabled="true">
    					<Name>Lobby</Name>
    					</Password>
    					<Description></Description>
    					<Capacity>10</Capacity>
    				</Room>
    			    </Rooms>
    		    </Zone>
    	    </Zones>
    	</PersistentRooms>
    By the way: I've removed the 'Persistent Rooms' for the TheoChat, because I don't want to work with it.

  6. #6
    Electrotank jobem's Avatar
    Join Date
    Apr 2004
    Posts
    996
    Thanks
    0
    Thanked 24 Times in 17 Posts
    Hi,

    You left off the 'name' node for the zone. The server does not know which zone to put the room in. Try this:

    Code:
    	<Zones>
    		<Zone>
    		    <Name>Chat Area</Name>
    		    <Rooms>
    			<Room Updatable="true" Hidden="false" Numbered="false" UserVariablesEnabled="true">
    				<Name>Lobby</Name>
    				</Password>
    				<Description></Description>
    				<Capacity>10</Capacity>
    				<RoomVariables />
    				
    			</Room>
    		</Zone>
    	</Zones>
    </PersistentRooms>
    ------
    Jobe Makar
    @jobemakar
    http://www.electrotank.com

    YouTube ElectroServer video tutorials
    http://www.youtube.com/user/ElectrotankInc

  7. #7
    Electrotank jobem's Avatar
    Join Date
    Apr 2004
    Posts
    996
    Thanks
    0
    Thanked 24 Times in 17 Posts
    FYI: you can set 'capacity' to -1 for there to be no limit to the # of people that can join that room.
    ------
    Jobe Makar
    @jobemakar
    http://www.electrotank.com

    YouTube ElectroServer video tutorials
    http://www.youtube.com/user/ElectrotankInc

  8. #8
    Junior Member
    Join Date
    Aug 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thank you ! It works, but not by the first client - there removes the 'Lobby' also.
    First I tried with <Name> but then I thought a name is'n specified.

    And there's a new problem. I can't rejoin the 'Lobby'. But also with the old configuration file.
    Hmmm...perhaps my server is in trouble. I will go on working tomorrow.

    Quote Originally Posted by Jobe Makar
    FYI: you can set 'capacity' to -1 for there to be no limit to the # of people that can join that room.
    Hehe...okay, with 20 user free licence (I still have) I can also use '20', but it's good to know.

  9. #9
    Electrotank jobem's Avatar
    Join Date
    Apr 2004
    Posts
    996
    Thanks
    0
    Thanked 24 Times in 17 Posts
    Hi Ketchupfreak88,

    Unfortunately I am having trouble making sense out of your last post. I am happy to help you resolve issues but I'll need you to try to be a little more clear as to the problem.

    Thank you,
    ------
    Jobe Makar
    @jobemakar
    http://www.electrotank.com

    YouTube ElectroServer video tutorials
    http://www.youtube.com/user/ElectrotankInc

  10. #10
    Junior Member
    Join Date
    Aug 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry for my bad english.

    I try to discribe with screens (one picture says more than 1000 words )


    First I joined the ElectroServer with 2 Clients (PC and Laptop). I used the original configuration.xml !
    I created a new room.


    After I created a new room and the other client joined the room, I can't rejoin the Lobby. I can see the Lobby on my Laptop, but not on the PC (kf88). - Yeah, i know. Cause the room 'Lobby' isn't active, it dosen't exists. - But it's shown, which is a bug !


    Now when i use the edited configuration.xml (with persitstent Lobby), the Lobby can be seen at every client (PC and Laptop).
    Every client can rejoin the Lobby without problems. But the client which left the room at least, has the room always in the roomlist.

    The Bug i want to report: The client, which left a room at least has a 'Bug' in the room list. The last room you were in at least user, you don't get away from your room list

    You understand me ?

+ Reply to Thread

Tags for this Thread

Posting Permissions

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