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.
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:
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
Not related thing but I am just saying you can put null instead of new Dictionary<string, string>()
Offline
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.
*u stinky*
Offline
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
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
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
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
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
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!
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
btw you could just use .JoinRoom(worldid,null);
Offline
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)
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
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.
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
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>());
Offline
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.
thanks zoey aaaaaaaaaaaand thanks latif for the avatar
Offline
Just use this
con = Client.Multiplayer.CreateJoinRoom(worldid.Text, "Everybodyedits"+Client.BigDB.Load("config","config")["version"], true, null, null);
Offline
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.
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
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
Offline
how long have world IDs been case insensitive? Why the ToLower?
Oh shoot you're right... I never noticed it until now lol
Thanks to: Ernesdo (Current Avatar), Zoey2070 (Signature)
Very inactive, maybe in the future, idk.
Offline
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.
*u stinky*
Offline
[ Started around 1739786035.353 - Generated in 0.083 seconds, 10 queries executed - Memory usage: 1.69 MiB (Peak: 1.93 MiB) ]