PDA

View Full Version : N.A.S - An NXT Autoing Solution



Twinki
06-28-2018, 10:07 PM
N.A.S.

An NXT Autoing Solution

GitHub (https://twinki14.github.io/NAS/) | ZIP (https://github.com/Twinki14/NAS/zipball/master)| TAR (https://github.com/Twinki14/NAS/tarball/master)



Features

NXT and Simba Client Pairing
Send Fake Input to the NXT client with or without focus
Allows you to use your Host PC while botting
Works with any include for NXT
Supports drawing with WindowOverlay (https://github.com/ollydev/WindowOverlay)


What it doesn't do

Filter Bot/User Input


Why?
Something similar to SMART but for the NXT Client was needed.

How?
NAS uses the Win32 API to do everything it does. It uses PostMessage to send fake input to the 'Paired' NXT Game Client. Currently NAS disables the ability to minimize the paired NXT client at all, but still allows you to use your Host PC and bot without issues. The NXT Game Window will continue to run in the background, though you may not be able to minimize it, you can still focus on other programs like games, your browser, or whatever it may be, and use those programs without interfering with the client.

The Include

NAS_INI: Uses the NXT Client Process ID, Simba Process ID, and Simba Thread ID to keep track of paired clients
NAS_Pair: The Structure of a Paired Client
NAS_Keyboard: Keyboard related functions
NAS_Mouse: Mouse related functions
NAS Debug: Each structure has debug methods, you can enable debug by using NAS.EnableDebug()/NAS.DisableDebug(), you can disable debug to each individual structure


Simba Input Function Overrides
NAS overrides almost all of Simba's mouse/keyboard functions, like KeyDown, KeyUp, MoveMouse, all of which can be found in Mouse/Keyboard Overrides.pas This is to maintain compatibility between includes.

Requires whatever ollys latest simba version is at (https://github.com/ollydev/Simba/releases)

Setup
NAS uses the official NXT Client, so just boot NXT up and start the script.
The NXT Client must be set to Compatibility Mode if you want Color-finding functions to work! It's normal for the client to lag until it fully loads the shaders

program new;
{$I NAS\NAS.simba}

begin
NAS.EnableDebug();
WriteLn(NAS.init());
end.


Drawing
You can use Olly's WindowOverlay (https://github.com/ollydev/WindowOverlay) Simba plugin to draw on external targets, be sure to create the overlay after NAS.init()

program new;
{$I NAS\NAS.simba}
{$loadlib libwindowoverlay}

var
Overlay: TWindowOverlay;

begin
NAS.EnableDebug();
if (NAS.init()) then
begin
// `TargetWindow` not specified. Will use Simba's current target
Overlay := TWindowOverlay.Create(); // by this point the current Simba target should be the NXT client, set by NAS.init()
AddOnTerminate(@Overlay.Free);

// Overlay.Bitmap is a TMufasaBitmap, let's draw a red rectangle.
Overlay.Bitmap.Rectangle([100, 100, 200, 200], 255);
end
end.

Clarity
06-29-2018, 02:58 AM
Extremely triggered at N.A.S versus N.A.S.

rj
07-01-2018, 06:37 AM
can we multithread with simba now

slacky
07-01-2018, 12:11 PM
can we multithread with simba now
Funny how I've been multithreading in Simba for several years.

KeepBotting
07-01-2018, 09:19 PM
So... is this in active development now? The other thread was closed, and this one created. What's that mean?

Clarity
07-01-2018, 10:26 PM
So... is this in active development now? The other thread was closed, and this one created. What's that mean?

Assuming in order to move from Junior+ and republish public without having to wait for mods.

Justin
07-02-2018, 01:29 AM
Assuming in order to move from Junior+ and republish public without having to wait for mods.

Funny that, in order for the other one to be locked, a mod would've been active and could've moved it :P

Twinki
07-08-2018, 09:16 AM
I had requested a move several times, and it was never moved. So I just made a new thread and requested a lock on the other, in the event a mod becomes active .

Bixby Sayz
11-22-2018, 11:46 PM
Bit of a gravedig. This compatible with Simba 1.3? Looks exciting.

Twinki
12-20-2018, 05:42 AM
Now requires Simba 1.3+, LibLayer by Olly and the Windows include by Slacky now comes with NAS. All you need to do is throw NAS in the includes folder from now on.

Updated OP.

Twinki
12-21-2018, 12:13 AM
Updated again after finding out SRL-6 doesn't work on 1.3, 1.2 support should now be added.

Thomas
12-27-2018, 04:38 PM
Updated again after finding out SRL-6 doesn't work on 1.3, 1.2 support should now be added.

I’m trying to get some ppl together to update SRL-6 for Simba 1.3 :)
All help is welcome!

Sin
01-03-2019, 09:57 PM
I’m trying to get some ppl together to update SRL-6 for Simba 1.3 :)
All help is welcome!

What needs to be done?

Thomas
01-04-2019, 07:17 PM
What needs to be done?

Posted this:

SRL-6 on Simba 1.3 for resizeable rs3?

My proposal:
Step 1: Update srl6 to compile with 1.3
Step 2: Update srl6 to be compatible with regular nxt (if def-nxt)
Step 3: update srl6 to allow resizeable (if def-resize)

I know some work has been done so far, perhaps we should gather what has been done so far on merge it all together?

https://villavu.com/forum/showthread.php?t=118162
https://villavu.com/forum/showthread.php?t=118336
https://villavu.com/forum/showthread.php?t=118119


Clarity
Twinki
klamor
Ashaman88
Citrus

And others I might have forgotten!


Here:
https://villavu.com/forum/showthread.php?t=117175

Step 1 and 2 wouldn’t be super hard I think.
The 1.2 branch of srl6 does not differ that much anyway.

Bixby Sayz
01-06-2019, 02:16 AM
I might be willing to help out. Not doing any scripting these days for no other reason than I cbf to implement my solution to getting everything working just to have it go obsolete when SRL finally catches up.

I do have some work that might be useful: A redo of login screen that works with browser, nxt, and resizing. Few other things like that.

Sin
02-02-2019, 05:54 AM
Seem to be getting an error



Error: Unknown declaration "ffi_stdcall" at line 28
Compiling failed.


That line is



ffi_winapi = {$IFDEF CPU386}ffi_stdcall{$ELSE}ffi_win64{$ENDIF};


Any idea what's up?

Thanatos
02-10-2019, 06:50 PM
Twinki I ran into the same issue as Sin. Any advice on what I can do to fix it? (I got my account unbanned from 4-5 years ago so I'm trying to see how long round 2 lasts)

KeepBotting
02-11-2019, 08:14 PM
Seem to be getting an error



Error: Unknown declaration "ffi_stdcall" at line 28
Compiling failed.


That line is



ffi_winapi = {$IFDEF CPU386}ffi_stdcall{$ELSE}ffi_win64{$ENDIF};


Any idea what's up?


Twinki I ran into the same issue as Sin. Any advice on what I can do to fix it? (I got my account unbanned from 4-5 years ago so I'm trying to see how long round 2 lasts)
Just judging from the compiler directives and which declaration isn't being found, you could try using 64-bit Simba

Sin
02-11-2019, 10:52 PM
Just judging from the compiler directives and which declaration isn't being found, you could try using 64-bit Simba

Unfortunately I've tried both. The newer Simba gives me a whole new set of errors, something to do with plugins out of date. Plugin version seems to be at 22, but should be at 26.

Twinki
03-17-2019, 08:09 AM
Twinki I ran into the same issue as Sin. Any advice on what I can do to fix it? (I got my account unbanned from 4-5 years ago so I'm trying to see how long round 2 lasts)


Seem to be getting an error



Error: Unknown declaration "ffi_stdcall" at line 28
Compiling failed.


That line is



ffi_winapi = {$IFDEF CPU386}ffi_stdcall{$ELSE}ffi_win64{$ENDIF};


Any idea what's up?

Did you guys end up figuring out a fix? What file is this in btw. You will need either Simba 1.2 or 1.3, anything before is unsupported.

Thomas
03-24-2019, 11:42 AM
Do you guys have a 1.3 branch for srl6?