Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-03-15 06:46:08

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

World List

I want to be able to have a list of all the worlds available and be able to click one to join it.  How do I get a list of all the worlds that are open.


Om_1869ea_249353.jpg

Offline

#2 2016-03-15 07:06:51

Awesomenessgood
Member
Joined: 2015-08-06
Posts: 1,666

Re: World List

the lobby?


lunchbox

Offline

#3 2016-03-15 07:13:31

darkblades
Member
From: New MLG City/Weed Town
Joined: 2015-03-21
Posts: 122

Re: World List

i believe that is what he wants. all of the worlds in the lobby.


Sample Text.

Doritos/Mountain Dew eater.
420 No scoping 69 scrubs per day
Always smoke weed everyday.

Known for: #getrekt Bot (possible revive with new stuff?)

Offline

#4 2016-03-15 07:14:26

cercul1
Member
From: USA
Joined: 2015-02-18
Posts: 91

Re: World List

Yes


Om_1869ea_249353.jpg

Offline

#5 2016-03-15 11:45:28

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: World List

Do you want to code this. Or do you want a finished bot?
Here is a code for worlds. It's not finished yet.

Offline

Wooted by:

#6 2016-03-15 22:07:19, last edited by Tomahawk (2016-03-15 22:25:00)

Tomahawk
Forum Mod
From: UK
Joined: 2015-02-18
Posts: 2,847

Re: World List

Simpler way:

RoomInfo[] rooms = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", "guest", "guest", null).Multiplayer.ListRooms(null, null, 0, 0);
foreach (RoomInfo room in rooms)
{
    if (room.RoomType == "Everybodyedits207") //Gets all normal rooms. 207 = current EE version.
        {
            string roomID = room.Id;
            string roomName = "";
            int players = room.OnlineUsers;
            if (room.RoomData.ContainsKey("name")) roomName = room.RoomData["name"];

            ... Do something with the room IDs, names and online players, like storing them in a dictionary.
        }
    }
}

See EE Info for the list of normal room types.
"RoomData" is a Dictionary<string, string> containing the following keys for a room of type "Everybodyedits207":

  • "owned"  -  Is owned by the account used to list the rooms

  • "needskey"  -  Has a code. Returns "yep" if it does.

  • "plays"  -  Total plays.

  • "rating"  -  Seems to always be "0".

  • "name"  -  Room name.

  • "Favorites"  -  Number of people who favorited the world.

  • "Likes"  -  Number of likes.

  • "description"  -  Room description, as set by the owner.

  • "IsFeatured"  -  Is on the featured tab.

  • "IsCampaign"  -  Is a campaign level.

  • "LobbyPreviewEnabled"  -  Whether its minimap can be viewed from the lobby.

Rooms with types like "Tracking207" have an empty RoomData dictionary.


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

#7 2016-03-16 03:29:33

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: World List

Here you go. http://www.mediafire.com/download/9zp99 … tLobby.zip

Picture, I'm too lazy to fix the look

Hidden text

Offline

capasha1458095373588943

Board footer

Powered by FluxBB

[ Started around 1732435852.8114 - Generated in 0.049 seconds, 12 queries executed - Memory usage: 1.45 MiB (Peak: 1.56 MiB) ]