Add PatternOS: Neural, Statistical & Behavioral Analysis Engine#2433
Add PatternOS: Neural, Statistical & Behavioral Analysis Engine#2433Alekhyo-Biswas wants to merge 4 commits intoTurboWarp:masterfrom
Conversation
|
I added documentation |
|
You do realize that anyone can easily remove client-side anticheat from a TurboWarp project, right? |
But the problem is, we need at least a minimum protection against hackers. If you have read the docs given in the code, you will notice that it is not necessary for it to be server-side (though most of the examples seem to be). Basically it can be used (in multiplayer games) on each player's side to check the movements and stats of other players (for example). You may also notice that I not only included anti-cheat architecture, I also included a vast library of mathematical and statistical utilities, each of which are useful for something. I also used different colors for better accessibility. #1: Detector Lifecycle: This category allows you to deal with detectors and their details #2: Intelligent Ingestion: Deals with feeding the detectors with values #3: Inconsistency and Anomaly: Good for dealing with outlying values etc. Can be used for anti-cheat to some extent. #4: Predictive Engine: Mathematically predicts new values eg. useful for making single-player shooting games with difficult enemies and Rollback netcoding Others are also there. Check them please I put a lot of time into this. Is this a good idea? I am happy to correct any error you may find... |
Good point, I hadn't thought about that.
I'm personally not interested in adding this because you have a history of using LLMs in this project, but that doesn't mean that it's a bad idea, and another reviewer might be willing to approve this (@Brackets-Coder perhaps?). For the record, I haven't done a proper code review yet, so it's possible that there's some really cool features that I didn't see at first glance. |
|
Do check it out... 'cos I'm a math guy, I added everything mathy and statistical here, and I am willing to add more Why don't you guys suggest some...? |
|
Hello, anybody? |
"Patience, young Padawan" — Obi-Wan Kenobi I'm not familiar with how this works so I don't believe I could provide helpful suggestions right now |
No, I mean just check out its functionality on TurboWarp and tell me your reviews... |
Anywhere from a few weeks to several years, this volunteer-based repository is notoriously slow. |
I see... |
Generally speaking, we wait for ~2 months, find another more urgent PR, forget about what we were going to work on initially, and then the required checks start failing because the APIs changed, so everyone ignores your extension... (this is mostly a joke) |
|
Imagine the review process is like a puppy running around with ADHD and procrastination energy. |
what the heck?!? |
|
On a more serious note, it looks like you guys didn't read the first part |
This is comedy gold @Brackets-Coder. |
I don't like it any more than anybody else, but of course none of us really know how to fix it. |
No, it's not like...I'm not blaming you, its just that...this sucks 😞 |
I can tell you how to fix it: Get 10 reviewers instead of just 6 and make them all full-time instead of just six people doing one review every two months. Of course, that would be totally impractical to ask and I like my schedule better how it is now... |
There are only six reviewers in this whole turbowarp repo?! |
Technically we have 8 reviewers, but two of them set their membership to private for some reason. |
Oh, I see... |
|
I'm going to be real with you, I don't think we would merge this kind of extension at all Just weighing in |
No probs, but why? |
I'm not @CubesterYT, but it's possible that it has something to do with LLM usage. |
Oh.. |
|
i have a question, is this extension server sided? |
No, it's meant to detect suspicious patterns on the client's side from my understanding. |
Basically, it is supposed to be server-side on a real game engine |
Pretty much... |
|
How is an extension going to detect suspicious patterns in a way that works across many projects? |
|
|
There is a reason why real games spend incredible efforts on their anti-cheat, and they have the advantage of having full control over their entire stack and have a trusted server. It's because you're not just detecting outliers in a series of numbers. You're doing a lot of very custom stuff that will be specific to the game. There are a few places where something like this could make sense. Detecting autoclickers, for example, is probably a time where the standard deviation of time between clicks would be a significant giveaway. But that's not useful for cloud variables which already go through extensive buffering at multiple steps along the way. |

Description
This PR introduces PatternOS, a high-performance analytical engine designed to bring professional-grade statistical analysis, behavioral fingerprinting, and pattern detection to TurboWarp.
It allows creators to build robust anti-cheat systems, predictive physics models, gesture recognition profiles, and spatial trackers without needing to write complex mathematical algorithms from scratch.
Technical Implementation Details
Zero External Dependencies: All logic, including Welford's online algorithm for computing running variance and standard deviation, is handled natively within the class.
Highly Optimized: Variable syncing runs on a fast setInterval loop that safely checks for the runtime stage, ensuring 0 dropped frames without lagging the VM.
Namespace Safety: All opcodes are uniquely prefixed to guarantee zero conflicts with built-in Scratch blocks or other extensions.
Fully Secure: The extension runs entirely sandboxed without eval() or Function(), fully compliant with TurboWarp gallery guidelines.
Checklist
[x] Extension runs entirely sandboxed.
[x] All opcodes are unique.
[x] Uses high-contrast, fully verified 6-digit hex colors for UI stability.
[x] Includes standard metadata (Name, ID, Description, By, License).