In MSI, they show debugatpa/tpa bounds within smart instead of making a popup. How could I do that ?
In MSI, they show debugatpa/tpa bounds within smart instead of making a popup. How could I do that ?
Oh Hai Dar
drawdotsmulti(true,atpa);
Look for that in https://github.com/SRL/MSI/blob/mast.../Objects.simba .
Send SMS messages using Simba
Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!
damn, looks like haxI'll try to learn it.
Oh Hai Dar
I think the file is something like smart paint or paintsmart
"Logic never changes, just the syntax" - Kyle Undefined?
Remember, The Edit Button Is There For A Reason!!!
Srl/SRL/misc/paintsmart.scar
Working on: Tithe Farmer
It's actually pretty simple.Here's a test script that will help.
Simba Code:program new;
{$DEFINE SMART}
{$i srl/srl.scar}
{$i srl/srl/misc/paintsmart.scar}
var
tpa: TPointArray;
i, t: integer;
begin
smart_Server := 152;
smart_Members := False;
smart_Signed := True;
smart_SuperDetail := False;
setupSRL;
clearDebug;
SMART_SetupDebug();
clearRSCanvas(SMART_Canvas.canvas);
setLength(tpa, 50000);
for i := 0 to high(tpa) do
begin
tpa[i].x := randomRange(0, MIX2);
tpa[i].y := randomRange(0, MIY2);
end;
t := (getSystemTime + 10000);
while (getSystemTime < t) do
smart_DrawDots(tpa);
end.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
The removal part is quick, 50K dots is excessive lol. you'd be better to draw shapes that you could see and have less dots.
But a TPA can be a massive number too, remember that.
Writing an SRL Member Application | [Updated] Pascal Scripting Statements
My GitHub
Progress Report:13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you have serious physchological problems 13:46 <@BenLand100> HE GETS IT! 13:46 <@BenLand100> HE FINALLY GETS IT!!!!1
all of yall thanks a ton!:P
Last edited by Main; 10-11-2011 at 12:58 AM.
Oh Hai Dar
That test script is just supposed to show it working, it doesn't actually accomplish anything.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
I could see it drawing some small red bits on my screen with my cwer ^^. So its working atleast:P
But could you post a sample script on how to make it should atpa bounds?
Oh Hai Dar
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
What are the variables for SMART_DrawDotsMulti? I couldn't find it on paintsmart.scar
I also see SMART_DrawDotsEx ,but its still tpaI'll try to look for more:P
Oh Hai Dar
Oh sorry, it's just DrawDotsMulti. There's no SMART prefix.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
I see the colored regions now:P Is it suppose to show labeled bounds? Or I'd have to do that my self with tbox?
Last edited by Main; 10-11-2011 at 02:08 AM.
Oh Hai Dar
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
I just want something like DebugATPABounds:
I'll try that the code you posted:P
Last edited by Main; 10-11-2011 at 02:35 AM.
Oh Hai Dar
Oh, yeah the actual labeled boxes like that is different. As far as I know there aren't any SMART methods for that; however, I'm sure DebugATPABounds could easily be converted to work on the SMART canvas.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
That'd be great if we could have that for the future, for now.. thanks for showing me the box and draw dots!... and harry too![]()
Last edited by Main; 10-11-2011 at 02:43 AM.
Oh Hai Dar
SMART_DrawBoxEx(true,GetTPABounds(YourTPA),clRed);
or
SMART_DrawBoxEx(true,GetATPABounds(YourATPA),clRed );
or
for(var i := 0; i < High(YourATPA); inc(i)) do
SMART_DrawBoxEx(true,GetTPABounds(YourATPA[i]),clRed);
Working on: Tithe Farmer
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
There are currently 1 users browsing this thread. (0 members and 1 guests)