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 Before February 2015

Tako
Member
From: Memphis, Tennessee, USA
Joined: 2015-08-10
Posts: 6,663
Website

Getting the Game Version?

How does one get the game version?

Currently, I'm just cycling though each number, starting with 147. Surely there is a method of getting it from the Client... but how?


Yeah, well, you know that's just like, uh, your opinion, man.

Offline

#2 Before February 2015

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

Re: Getting the Game Version?

I don't think you can.
Except, of course, cycling through. I think there's an 'update' message sent during the few (days?) after the update has been made. You could make a setting that increments each time this happens...
If it isn't an update message, then you could just check to see if any worlds exist with that room type, otherwise increment.

I myself just use JoinRoom instead so I don't need the roomtype

Offtopic: EE's 150th update is soon. //forums.everybodyedits.com/img/smilies/big_smile

Offline

#3 Before February 2015

Buzzerbee
Forum Admin
From: Texas, U.S.A.
Joined: 2015-02-15
Posts: 4,575

Re: Getting the Game Version?

Takoman, I can give you the code for auto-updating version. I won't post it here, so I'll just explain it. You connect, enter an invalid version number, it will come up with an error saying that the version is wrong, parse that error for the correct version and convert it into a string that you can use for connecting, and have it auto-reconnect.

Of course, you can take out the auto-reconnect to just grab the version.

EDIT: As far as I know, there is no client message for the version. PM me if you would like the auto-updating code.

EDIT #2: hummerz5 said it for me:

hummerz5 wrote:

I myself just use JoinRoom instead so I don't need the roomtype

Last edited by BuzzerBee (Jan 12 2013 9:20:07 pm)


TdQRyz3.png
https://wiki.everybodyedits.com/images/5/5d/135_bee

Offline

#4 Before February 2015

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

Re: Getting the Game Version?

^Didn't think of that. 'Tis a clever way of getting the available room types.

Offline

#5 Before February 2015

jemhun
Guest

Re: Getting the Game Version?

You can just use some old bots like "Coin Collector" and put some invalid game version in it..
Then a message will show up on what is the current game version.

#6 Before February 2015

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

Re: Getting the Game Version?

jemhun wrote:

You can just use some old bots like "Coin Collector" and put some invalid game version in it..
Then a message will show up on what is the current game version.

Why would he use other peoples tools when it's possible to code it self?

Offline

#7 Before February 2015

Tako
Member
From: Memphis, Tennessee, USA
Joined: 2015-08-10
Posts: 6,663
Website

Re: Getting the Game Version?

BuzzerBee wrote:

Takoman, I can give you the code for auto-updating version. I won't post it here, so I'll just explain it. You connect, enter an invalid version number, it will come up with an error saying that the version is wrong, parse that error for the correct version and convert it into a string that you can use for connecting, and have it auto-reconnect.

hummerz5 wrote:

I myself just use JoinRoom instead so I don't need the roomtype

Thank you both for your solutions. I'll try to use the JoinRoom method and if that doesn't work for whatever reason I'll go with BuzzerBee's.

jemhun wrote:

You can just use some old bots like "Coin Collector" and put some invalid game version in it..
Then a message will show up on what is the current game version.

Whenever the version is wrong, the error report tells me the available versions. No need for Coin Collector in that regard.

Plus, I was looking for an automatic way... I don't want to have people open Coin Collector and then edit the code every time they want to run the bot...

-----

[Edit] The JoinRoom method worked fine. I'm closing this now.

Thanks again.


Yeah, well, you know that's just like, uh, your opinion, man.

Offline

Tako1423509101452331

Board footer

Powered by FluxBB

[ Started around 1732470366.1116 - Generated in 0.044 seconds, 15 queries executed - Memory usage: 1.45 MiB (Peak: 1.58 MiB) ]