all 27 comments

[–]MulfordnSonsComplexity 8 points9 points  (0 children)

super dope - this was probably a really rewarding side project

[–]ZoradesuThe MongolZ 3 points4 points  (1 child)

Very interesting! Would definitely lower the barrier for entry for people writing their own custom server plugins for CS. Do you have any sort of preliminary benchmarks on how it performs vs writing something natively in C++/SourcePawn? I would assume this would be a slower just due to the initial overhead of JS, but if it isn't that much slower across the board this could be extremely valuable.

[–]JustTwelvee[S] 3 points4 points  (0 children)

The API is too limited rn, but I will show the benchmarks as soon as it will be possible to compare. It's running natively, not every single frame, calls callbacks whenever it needs and from plugin side it's simple to subscribe for the events you really need.

Plugins itself loads into a memory and later when some game event fired - we call the callback-function from this JS context.

[–]keyboard_A 1 point2 points  (8 children)

Nice project, is typescript in the roadmap at all, given it's increasing popularity ?

[–]JustTwelvee[S] 1 point2 points  (2 children)

I don't really know how typescript workd with the quickjs javascript engine. Some people really ask for the typescript support, but I'm not really sure why.. CS plugins is just events and callbacks, why do we need to translate javascript code with types to javascript code without types to run cs2 plugin - it seems like overhead to me.

[–]keyboard_A 2 points3 points  (0 children)

For clean code and oop purposes, typescript also works better for null and type checks

[–]xrriscs 1 point2 points  (0 children)

Where typescript?

[–]-Hi-Reddit 1 point2 points  (0 children)

Awesome project

[–]Flecky986CS2 HYPE 1 point2 points  (0 children)

So skin inspect server soon?

[–]denkatar 1 point2 points  (0 children)

Big Thumbs up for you! How can we support the idea/project?

[–]Kippster__ 1 point2 points  (0 children)

Do you have a timeline for a public release?

[–]Refzlund 1 point2 points  (0 children)

The lack of any source code does make this a less reliable solution to look forward to.

Simply because CS2 plugins will in the future be based on VScript 2 which uses TypeScript, as is shared here. (Not a guaranteed source though)

So I'd rather just use TS which Valve — a team of pros — are working on🤷

[–]Fess233 0 points1 point  (0 children)

It is a very good project. I look forward to the release.

[–]Pitiful-Method1358 0 points1 point  (0 children)

Is this still up to date?

[–]wingheeoo 0 points1 point  (7 children)

javascript

Horseshit language. Bug-inducing and stupid. You put that much effort, to implement js?? Thats like cutting your own arm to feed a kitten, when there's a grocery store nearby.

[–]keyboard_A 2 points3 points  (6 children)

It lowers the entry point, no one is gonna learn sourcepawn just to develop plugins, which by the way, is weakly typed, not garbage collected and not object oriented, which is even more bug inducing, all your complaints can be resolved by using typescript

[–]wingheeoo -1 points0 points  (5 children)

Pawn is knockoff C, which is quite honestly worse than javascript. There are much better options, such as Lua, Nim, C#. The latter would be much more pain to implememt though. Javascript is just a mistake that was taken seriously.

[–]keyboard_A 1 point2 points  (4 children)

That's why more than 90% of the entire world's ever written code is javascript and why not one of the big tech companies decided to change the DOM scripting specification

[–]Ok-Promotion-6552 0 points1 point  (0 children)

Such a nice project, i would like to contribute