drybyte / aos.js Goto Github PK
View Code? Open in Web Editor NEWA library for interacting with Ace of Spades .75 protocol
Home Page: https://drybyte.github.io/docs/
License: GNU General Public License v3.0
A library for interacting with Ace of Spades .75 protocol
Home Page: https://drybyte.github.io/docs/
License: GNU General Public License v3.0
We need to compress a map with zlib deflate and split it into few chunks
.
We need constants to make the code more easier to use and to read someone else's code, so making a file with constants will be pretty helpful.
Most part of the "tests" in the tests folder is actually examples, so all examples should be moved to another folder and keep only the real tests on there.
And always use assert for tests
For supporting client info packets we need to handle an handshake sent by the server (ID 31), and return another packet to the server (ID 32). Then server sends a version get (ID 33), and return the version (ID 34).
We will need to add new options to the Default Option (https://github.com/DryByte/AoS.js/blob/main/src/client/BaseClient.js#L14), that should looks like this by default:
{
"version_info": {}
}
Then add another function to the client for setting client version, so the options in client will looks like this:
{
"version_info": {
"client_identifier": "", // I.e. "o" for openspades
"version": [0,0,0], // Major, Minor, Revision
"os_info": "", // I.e. "Windows"
}
}
Related links:
https://www.buildandshoot.com/forums/viewtopic.php?t=10807
yvt/openspades@aa62a0
Add packets that are not in official client/protocol, we are supposed to split it into two different folders to keep organized. One for the new packets and other for packetless extensions, maybe "extraPackets" and "extensionsPackets".
New packets:
Packetless extensions (https://www.piqueserver.org/aosprotocol/#packetless-extensions):
Get popcorn, coke, vodka, and lets document some packets.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.