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.
Pages: 1
Topic closed
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
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.
Offline
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:
I myself just use JoinRoom instead so I don't need the roomtype
Last edited by BuzzerBee (Jan 12 2013 9:20:07 pm)
Offline
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.
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
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.
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.
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
Pages: 1
Topic closed
[ Started around 1732463973.7516 - Generated in 0.042 seconds, 10 queries executed - Memory usage: 1.44 MiB (Peak: 1.57 MiB) ]