Jump to content

Recommended Posts

Posted (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, ≤ 5
Encodes: It's An integer between -2147483648 and 2147483647
Notes: 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 by algiuxas

After switching years ago to Linux, sadly I don't use AutoIt anymore.

Posted

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 here
RegExp tutorial: enough to get started
PCRE 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)

Posted
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.

  • Developers
Posted
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.
  :)

Posted (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_compression
http://wiki.vg/Protocol#Data_types


I don't know how to send them

Edited by algiuxas

After switching years ago to Linux, sadly I don't use AutoIt anymore.

  • Moderators
Posted

@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.

"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!

Guest
This topic is now closed to further replies.
×
×
  • Create New...