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 2017-06-25 20:44:04, last edited by nopjaz (2017-06-25 21:16:02)

nopjaz
Member
Joined: 2017-06-25
Posts: 4

Server type "public" does not exist?

Hello, I'm nopjaz and I'm new to bot-making.
Short story short, I haven't even got the bot connected before running into a brick wall. I'm following a tutorial which instructs me to write the following lines:

Hidden text

However, this raises the error: The game Everybody Edits does not have server type with the name "public".
So, can anyone help me with this? Is this my code, something I forgot to import, or is the tutorial outdated?
I'm looking specifically at finding a working room type in place of "public" which does not appear to be working.
Thanks in advance and I'm very sorry for this trivial question.


Programmer Life:
"It doesn't work! Why?!"
"It works! Why?!"

Offline

#2 2017-06-25 20:59:43

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,206

Re: Server type "public" does not exist?

Not related thing but I am just saying you can put null instead of new Dictionary<string, string>()

Offline

#3 2017-06-25 21:03:46

XxAtillaxX
Member
Joined: 2015-11-28
Posts: 4,202

Re: Server type "public" does not exist?

I doubt Player.IO has changed their architecture at all, the only reason this worked was for backwards compatibility pre-roomtype. You could actually put in any string there, as long as the room id existed in any given room type.
I'd suggest sticking with $"Everybodyedits{client.BigDB.Load("config", "config")["version"]}" though, not much to add.


signature.png
*u stinky*

Offline

Wooted by:

#4 2017-06-25 21:23:08

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

Re: Server type "public" does not exist?

I have one more thing to write.
Instead of client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", email.Text, password.Text, null);
You add functions where you get information if the login succeeds or if the login fails. Add them in the end of the code.

Offline

#5 2017-06-26 03:01:32, last edited by Vinyl Melody (2017-06-26 03:04:39)

Vinyl Melody
Formerly BananaMilkShake
Joined: 2016-06-19
Posts: 616

Re: Server type "public" does not exist?

It seems that you've made the same mistake I did.

Anyways.

string worldID = "Insert World ID here";
var ver = client.BigDB.Load("config","config")["version"];
con = client.Multiplayer.CreateJoinRoom(worldID, worldID.ToLower().StartsWith("pw") ? "Everybodyedits"+ver : "Beta"+ver, null, null);

Edit: Followed Gosha's new Dictionary<string, string>() to null


cb0de83627.png
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)

Very inactive, maybe in the future, idk.

Offline

#6 2017-06-26 07:33:06

nopjaz
Member
Joined: 2017-06-25
Posts: 4

Re: Server type "public" does not exist?

Thanks for the replies, everyone.
Melody, an extra thank you because you hit the nail on the head. My bot actually works now!
Thanks again and I hope I can join this amazing community.


Programmer Life:
"It doesn't work! Why?!"
"It works! Why?!"

Offline

Wooted by:

#7 2017-06-26 08:05:19

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Server type "public" does not exist?

nopjaz wrote:

Thanks for the replies, everyone.
Melody, an extra thank you because you hit the nail on the head. My bot actually works now!
Thanks again and I hope I can join this amazing community.

Welcome to the club. Happy coding.

Offline

#8 2017-06-26 10:12:59, last edited by Vinyl Melody (2017-06-26 10:15:16)

Vinyl Melody
Formerly BananaMilkShake
Joined: 2016-06-19
Posts: 616

Re: Server type "public" does not exist?

nopjaz wrote:

Thanks again and I hope I can join this amazing community.

amazing community

Sorry to break it to ya some part of this community is cancer. I hope you're experienced enough to stay away from it. But, enjoy the good sides!


cb0de83627.png
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)

Very inactive, maybe in the future, idk.

Offline

Wooted by:

#9 2017-06-26 10:37:44

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,206

Re: Server type "public" does not exist?

btw you could just use .JoinRoom(worldid,null);

Offline

#10 2017-06-26 10:58:13

Vinyl Melody
Formerly BananaMilkShake
Joined: 2016-06-19
Posts: 616

Re: Server type "public" does not exist?

Gosha wrote:

btw you could just use .JoinRoom(worldid,null);

Wouldn't that only work on rooms that has atleast one player joined in? (e.g. one player on room)


cb0de83627.png
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)

Very inactive, maybe in the future, idk.

Offline

Wooted by:

#11 2017-06-26 14:19:48, last edited by capasha (2017-06-26 14:21:27)

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

Re: Server type "public" does not exist?

Vinyl Melody wrote:
Gosha wrote:

btw you could just use .JoinRoom(worldid,null);

Wouldn't that only work on rooms that has atleast one player joined in? (e.g. one player on room)

This is correct. The reason I always use CreateJoinRoom.

nopjaz wrote:

Thanks for the replies, everyone.
Melody, an extra thank you because you hit the nail on the head. My bot actually works now!
Thanks again and I hope I can join this amazing community.

You are welcome. If you get any errors or need help at least I'm here for you.

Offline

#12 2017-06-26 17:52:56

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: Server type "public" does not exist?

Hi just wanted to point out you are doing a mistake.
"public" is a connection type, not a room type.

You should use this:

con = client.Multiplayer.CreateJoinRoom(worldid.Text, "Everybodyedits221", true, new Dictionary<string, string>(), new Dictionary<string, string>());

http://i.imgur.com/bjvgH5L.png?1

Offline

#13 2017-06-26 18:34:54, last edited by Xfrogman43 (2017-06-26 18:55:05)

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: Server type "public" does not exist?

marcoantonimsantos wrote:

You should use this:

con = client.Multiplayer.CreateJoinRoom(worldid.Text, "Everybodyedits221", true, new Dictionary<string, string>(), new Dictionary<string, string>());

Change

 "Everybodyedits221"

with

"Everybodyedits" + client.BigDB.Load("config","config")["version"]

and it gets the version for you automatically.


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Wooted by:

#14 2017-06-26 18:47:50, last edited by Gosha (2017-06-26 18:48:03)

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,206

Re: Server type "public" does not exist?

Just use this

con = Client.Multiplayer.CreateJoinRoom(worldid.Text, "Everybodyedits"+Client.BigDB.Load("config","config")["version"], true, null, null);

Offline

#15 2017-06-26 23:20:19, last edited by Vinyl Melody (2017-06-26 23:22:23)

Vinyl Melody
Formerly BananaMilkShake
Joined: 2016-06-19
Posts: 616

Re: Server type "public" does not exist?

Gosha wrote:

Just use this

con = Client.Multiplayer.CreateJoinRoom(worldid.Text, "Everybodyedits"+Client.BigDB.Load("config","config")["version"], true, null, null);

This code is good, unless you're a beta member and you constantly switch between PW and BW lol. Use my code instead.


cb0de83627.png
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)

Very inactive, maybe in the future, idk.

Offline

#16 2017-06-26 23:27:43

Latif
Member
From: The Netherlands
Joined: 2015-03-13
Posts: 1,206

Re: Server type "public" does not exist?

string worldid = "PWRoomID";
con = client.Multiplayer.CreateJoinRoom(worldid, (worldid.ToLower().StartsWith("bw") ? "Beta" : "Everybodyedits") + client.BigDB.Load("config", "config")["version"], true, new Dictionary<string, string>(), new Dictionary<string, string>());

Thanks to Ninjasupeatsninja.

Offline

#17 2017-06-26 23:53:47

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: Server type "public" does not exist?

while we're flinging semantics around, how long have world IDs been case insensitive? Why the ToLower? And as previously pointed out we could apply the null values for brevity

Offline

Wooted by: (2)

#18 2017-06-27 00:14:41, last edited by Vinyl Melody (2017-06-27 00:15:26)

Vinyl Melody
Formerly BananaMilkShake
Joined: 2016-06-19
Posts: 616

Re: Server type "public" does not exist?

hummerz5 wrote:

how long have world IDs been case insensitive? Why the ToLower?

Oh shoot you're right... I never noticed it until now lol


cb0de83627.png
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)

Very inactive, maybe in the future, idk.

Offline

Wooted by:

#19 2017-06-27 20:48:37, last edited by XxAtillaxX (2017-06-27 20:49:34)

XxAtillaxX
Member
Joined: 2015-11-28
Posts: 4,202

Re: Server type "public" does not exist?

hummerz5 wrote:

while we're flinging semantics around, how long have world IDs been case insensitive? Why the ToLower? And as previously pointed out we could apply the null values for brevity

They've always been case-sensitive. There's no reason to do .ToLower() when it will always be either, PW, BW or OW.


signature.png
*u stinky*

Offline

XxAtillaxX1498592917665708

Board footer

Powered by FluxBB

[ Started around 1713481864.4149 - Generated in 0.219 seconds, 10 queries executed - Memory usage: 1.69 MiB (Peak: 1.93 MiB) ]