Releases: AmyrAhmady/samp-node
Release 2.1.0
Thanks to @plutalov niw the issue with returning strings/arrays related to sampgdk is solved
Release 2.0.3
Fix issues with file naming in pawn.json
Release 2.0.2
Fixes string returning issues for pawn native callers
Release 2.0.1
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
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
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
- 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
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
- added a new function
samp.callNativeFloat
works exactly likesamp.callNative
but return value will be afloat
, only works when reference specifiers aren't provided informat
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
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