Skip to content

Releases: AmyrAhmady/samp-node

Release 2.1.0

28 Dec 20:59
Compare
Choose a tag to compare

Thanks to @plutalov niw the issue with returning strings/arrays related to sampgdk is solved

Release 2.0.3

22 Dec 13:08
ed02036
Compare
Choose a tag to compare

Fix issues with file naming in pawn.json

Release 2.0.2

22 Dec 04:43
Compare
Choose a tag to compare

Fixes string returning issues for pawn native callers

Release 2.0.1

28 Nov 04:11
Compare
Choose a tag to compare

Add proper callback exception handling …
Expceptions thrown inside callback handlers didn't get caught (@plutalov)

Full Changelog: 2.0.0...2.0.1

Release 2.0.0

20 Nov 04:26
42613a4
Compare
Choose a tag to compare

Upgrade to nodejs v16
Fix a few crashes
Fix crash on removing an event handler during another event call

Thanks @plutalov for his help

Release 1.3.0

10 Nov 13:16
Compare
Choose a tag to compare

Special thanks to @plutalov for his fixes in #15

New changes:

  • got rid of yaml config system
  • a proper exception handler, without crashing your app's process
  • proper context management, now there won't be thread safety issues
  • using locks properly to avoid issues causing crashes
  • have a default log level set so you get pre initialization error logs

Release 1.1.0

09 May 13:48
Compare
Choose a tag to compare
  • Added SAMPNode_CallEvent pawn native to samp-node.inc

Now you are able to call registered events directly from pawn using SAMPNode_CallEvent

native SAMPNode_CallEvent(const eventName[], {Float,_}:...);

How to use it? check here: https://github.com/AmyrAhmady/samp-node/wiki/Events#sampnode_callevent

Release 1.0.0

20 Apr 11:57
Compare
Choose a tag to compare

Information

Version 1 is here! stable, including the feature that was pretty much our main goal; Resources!

(config file structures are changed, please check wiki)

Changes

  • Added Resources feature, now like every other new and modern multiplayer mods, you can have multiple scripts running, and specify them in config file!
  • Added __resname string variable, that contains current resource name that you're script is running on
  • Fixed a few crashes

Release 0.2.1

04 Apr 15:39
Compare
Choose a tag to compare
Release 0.2.1 Pre-release
Pre-release
  • added a new function samp.callNativeFloat
    works exactly like samp.callNative but return value will be a float, only works when reference specifiers aren't provided in format parameter
  • changed predefined event names and made them better following the scheme that were used
  • a few new events added, supporting 0.3DL callbacks now
  • (internal) changes in Config class for taking advantage of YAML and JSON parsers both together without writing the same code twice

PS: also now there's a TypeScript definitions package for samp-node thanks to @pkfln
https://github.com/samp-dev/node

Release 0.2.0

27 Mar 16:59
6766d46
Compare
Choose a tag to compare
Release 0.2.0 Pre-release
Pre-release

A few bug fixes and changes applies
two of noticeable ones are:

  • added a new JS function samp.logprint(msg) in order to use samp's logger (basically works like printf in pawn)
  • now samp-node needs a config file, to specify entry file, log level, and pass node flags. read about it in HERE