Skip to content

Releases: WiredSpast/G-Node

G-Node 0.2.16

01 Feb 14:51
Compare
Choose a tag to compare

Changes:

  • Improved packet read methods (by @UnfamiliarLegacy)
  • Updated Catalog parsers to include Silver

G-Node 0.2.0

19 Feb 13:08
Compare
Choose a tag to compare

IMPORTANT: This version is only compatible with G-Earth 1.5.2 or above for 1.5.0 or 1.5.1 use G-Node 0.1.5

  • G-Node now only uses ES modules
  • Added hostinfo event:
ext.on('hostinfoupdate', hostInfo => {
    console.log(hostInfo);
    ext.writeToConsole('abc');
});

G-Node 0.1.5

15 Feb 03:15
Compare
Choose a tag to compare

Fixed small PacketStringUtils bug

G-Node 0.1.4

10 Feb 21:02
Compare
Choose a tag to compare

Added features:

  • GAsync tool, allows to await packets in running process

Example:

const { Extension, HDirection, HEntityUpdate, GAsync, AwaitingPacket } = require('gnode-api');

const extensionInfo = require('./package.json');

const ext = new Extension(extensionInfo);
const gAsync = new GAsync(ext);
ext.run();


ext.interceptByNameOrHash(HDirection.TOSERVER, "MoveAvatar", async hMessage => {
    let packet = hMessage.getPacket();
    let x = packet.readInteger();
    let y = packet.readInteger();

    let awaitedPacket = await gAsync
        .awaitPacket(new AwaitingPacket("UserUpdate", HDirection.TOCLIENT, 1000)
            .addCondition(hPacket => {
                let entityUpdates = HEntityUpdate.parse(hPacket);
                for (let entityUpdate of entityUpdates) {
                    if(entityUpdate.tile.x === x && entityUpdate.tile.y === y) {
                        return true;
                    }
                }
                return false;
            })
        );

    console.log(awaitedPacket);
});

G-Node 0.1.3

06 Feb 17:12
Compare
Choose a tag to compare

Small bug fixes in parsers

G-Node 0.1.1

03 Feb 13:50
Compare
Choose a tag to compare
  • No object logs as empty anymore it will always show some useful info
  • Getters and setters methods in parsers (and some in other classes) are replaced by classic JavaScript getters and setters
    • The old getters and setters are still usable but deprecated, in a future release these will get completely removed
  • Almost every parser now allows you to add the parsed objects to a new packet
  • Some other stuff you won't notice when using G-Node