Releases: WiredSpast/G-Node
Releases · WiredSpast/G-Node
G-Node 0.2.16
Changes:
- Improved packet read methods (by @UnfamiliarLegacy)
- Updated Catalog parsers to include Silver
G-Node 0.2.0
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
Fixed small PacketStringUtils bug
G-Node 0.1.4
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
Small bug fixes in parsers
G-Node 0.1.1
- 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