algiuxas Posted May 29, 2016 Share Posted May 29, 2016 (edited) Hello, I'm making program(using AutoIt) that would connect to server. I need help converting numbers to VarInt.About VarInt: Quote Size (bytes): ≥ 1, ≤ 5Encodes: It's An integer between -2147483648 and 2147483647Notes: Protocol buffer varint, encoding a two's complement signed 32-bit integer About VarInt: https://developers.google.com/protocol-buffers/docs/encoding#varints I can't understand how VarInt works, maybe somebody could help me? Thanks Edited May 29, 2016 by algiuxas After switching years ago to Linux, sadly I don't use AutoIt anymore. Link to comment Share on other sites More sharing options...
jchd Posted May 29, 2016 Share Posted May 29, 2016 Just pass an AutoIt integer, but keep the value within cited bounds (signed 32-bit). How do you pass values? This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
algiuxas Posted May 29, 2016 Author Share Posted May 29, 2016 2 minutes ago, jchd said: How do you pass values? What do you mean? After switching years ago to Linux, sadly I don't use AutoIt anymore. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 29, 2016 Developers Share Posted May 29, 2016 1 hour ago, algiuxas said: I'm making program(using AutoIt) that would connect to server. I need help converting numbers to VarIn Simply explain what you need to do here! Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
algiuxas Posted May 29, 2016 Author Share Posted May 29, 2016 (edited) 9 minutes ago, Jos said: Simply explain what you need to do here! Jos I want to connect to my minecraft server using TCP: http://wiki.vg/Protocol#Handshake I have to send couple integers(data type - VarInt): http://wiki.vg/Protocol#Without_compressionhttp://wiki.vg/Protocol#Data_types I don't know how to send them Edited May 29, 2016 by algiuxas After switching years ago to Linux, sadly I don't use AutoIt anymore. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 30, 2016 Moderators Share Posted May 30, 2016 @algiuxas you have been a member long enough to have read the Forum Rules by now. I suggest you do so before posting again. Especially this bullet point: Launching, automation or script interaction with games or game servers, regardless of the game. algiuxas 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts