Skip to content

Releases: ilhamjaya08/samp-query-ts

v1.0.0

02 Apr 19:43
2a8b013
Compare
Choose a tag to compare

major updates from @hansputera to solve the issue which he found with details in #1

Changelogs

  • Initializing tsconfig (TypeScript configuration), and package manager lock (I used pnpm)
  • Rewrote entire SampQuery class methods
- SampQuery#getServerProperties()
- SampQuery#getServerOnline()
- SampQuery#getServerMaxPlayers()
- SampQuery#getServerName()
- SampQuery#getServerGamemodeName()
- SampQuery#getServerLanguage()
- SampQuery#getServerVersion()
- SampQuery#getServerWeather()
- SampQuery#getServerWebSite()
- SampQuery#getServerWorldTime()
- SampQuery#getServerPing()
- SampQuery#getServerPlayersDetailed()

+ SampQuery#getServerPlayers()
+ SampQuery#getServerPlayerCount()
+ SampQuery#getServerInfo()
+ SampQuery#getServerRules()
+ SampQuery#getPseudoNumbers()
  • Added enum Opcodes to identify the opcodes easily
  • Added PacketSent, and PacketReceive to handle out, and in-coming packets
  • Use single keep-alive UDP connection to communicate with SA:MP server (it means, we can sent more queries in single connection)
  • Restructure ServerInfo, SampQueryOptions, ServerProperty typings. And added ServerPlayers, and ServerPlayerCount interface
  • Added unit tests using Ava

References

  1. https://sampwiki.blast.hk/wiki/Query_Mechanism - Packet buffer documentation
  2. https://www.open.mp/ - Data Reference

v0.5.0(deprecated)

02 Apr 17:33
7b8c783
Compare
Choose a tag to compare
v0.5.0(deprecated) Pre-release
Pre-release

This is the latest version and it was deprecated, the fixed and high compatibility version will be released soon!