Hey I have just setup simba with the new fix but I have a problem. the new smart works perfectly but how do I run a script with it? I mean, ive entered some script to start smart, but what now? How do I run a script on that SMART? Help me plz im new here and sorry for my english.
Thanks
Press the Green Arrow button. For more info:
http://villavu.com/forum/showthread.php?t=81508
Simply a GOD beast...
My Tutorials
few problems i have seen when you close the smart client the process dosnt end if a script fails and you try to restart it half the time it carnt find it so says Please Wait.. Smart Is Currently Loading even though its fully loaded and the other problem i see is how much CPU usage it uses compered to version 6.9 wldnt mind if it was a few % not 50% more than what smart 6.9 used
on the plus side memory usage seems to be down by about 10%
Last edited by krisg05; 07-18-2012 at 12:12 AM.
fixed bugs:
Simba Code:Function GetXPBar(CounterNum: integer): LongInt;
var
TPA: TPointArray;
B: TBox;
S: String;
P: integer;
begin
if ToggleXPBarEx(true, CounterNum) then
begin
FindColorsTolerance(TPA, 14474460, 407, 60+(CounterNum-1)*22, 489, 74+(CounterNum-1)*22, 0);
B := GetTPABounds(TPA);
S := Replace(GetTextAtExWrap(B.x1, B.y1, B.x2, B.y2, 0, 1, 4, 14474460, 0, UpChars), ' ', '');
P := Pos('x', S);
if P > 0 then
Result := StrToIntDef(ExtractFromStr(Copy(s, P, Length(S)), Numbers), 0)
else
Result := StrToIntDef(ExtractFromStr(S, Numbers), 0);
end;
end;Simba Code:function ToggleXPBarEx(Open: Boolean; CounterNum: integer): Boolean;
var
TPA: TPointArray;
P: TPoint;
T: Integer;
begin
if Open xor IsXPBarOpenEx(CounterNum) then
begin
TPA := TPAFromBox(IntToBox(521, 101, 546, 125));
FilterPointsPie(TPA, 0, 360, 0, 12, 534, 113);
P := TPA[Random(Length(TPA))];
Mouse(P.X, P.Y, 0, 0, mouse_left);
T := GetSystemTime + 300;
repeat
wait(1);
Result := Open = IsXPBarOpenEx(CounterNum);
until Result or (GetSystemTime > t);
end else
Result := true;
end;Simba Code:function IsXPBarOpenEx(CounterNum: integer): Boolean;
begin
Result := CountColor(14474460, 481, 50+(CounterNum-1)*22, 489, 72+(CounterNum-1)*22) > 6;
end;
there are MANY static y coords that need to be changed in gametab.simba . almost every function still needs to be updated.
I agree with you on the CPU usage. The new smart is using much more CPU then v6.9. I checked the task manager I found out there are two processes running which are Simba.exe and smartremote32.exe. Well I dont know what smartremote32.exe does. So is there a way to cut down the cpu usage or disable smartremote32? In simba 0.984 there is only simba.exe running and now there are two...
Last edited by Arepirpi; 07-19-2012 at 09:44 AM.
i dont know, if this already had been fixed... but whenever save a script, i get the text:
"Smart Cannot Spawn Clients"
but when i run the script, without saving it, it work just fine....
thanks in advance.
thank you![]()
If you're getting high CPU usage, try minimizing and normalizing the SMART window. E.g. click SMART's 'Minimize' button and then restore the window by clicking the SMART button on the Taskbar. From my experience, that refreshes the 'canvas' and frees up some resource.
I'm not sure if that is a bug or normal behaviour though?
Hey! I have a problem with the new fix for simba. I have all set but I still get this error:
[Error] C:\Documents and Settings\Administrator\Desktop\Scripts\High-Alch.simba(127:20): Unknown identifier 'SmartGetDebugDC' at line 126
Compiling failed.
This line gets highlighted:
Canvas.Handle := SmartGetDebugDC;
Im using Teh's Alcher btw
Hope you can help me and thanks
EDIT: This error appears after I delete Smart_server, Smart_members, Smart_signed, Smart_superdetail and
change {$I SRL/SRL/Misc/PaintSmart.Simba} To {$I SRL/SRL/Misc/SmartGraphics.Simba}
Give me a minute I'll update the post to reflect how to deal with canvases. I noticed a lot of people haven't adapted to SetPersistentMemory yet. I'll write something up.
It's not simba or srl. Smart just doesn't use DC's aka Device Contexts anymore for rendering.
EDIT: Finished. Please read the example posted on the first post to see how drawing manually is done. If you do not wish to draw manually on Smart, Simply using Smart_DrawBitmap and Smart_DrawTextMulti will work equally well. Drawing On Smart manually is not for the faint of heart. You need to have good knowledge of scripting.
EDIT2: Added Drawing using SmartGraphics. Now you can contrast both examples and see the differences. Both functions do the exact same thing. Scripts using Simba 0.98 will not require an update but everyone is going to be forced to 0.99 soon enough since Jagex came out with some stupid bar at the top.
Also note that the drawing thing is not my choice. If we had a choice, I'd leave everything as is. Smart has changed not SRL and as such we need to adapt. I hope I made everything clear for drawing. Any questions just post here or PM me and I'll see if I can help out more or make things easier.
EDIT3: When SRL is fixed and updated (When Wizzup pushed 0.99 fixed), I may update scripts for users automatically if I have free time.
Last edited by Brandon; 07-20-2012 at 07:33 PM.
I am Ggzz..
Hackintosher
The new Six hour fix is not working correctly. It cannot login player and the script stopped. In fact smart didnt startup and therefore cannot login. Also, the new smart is now paired so both simba and smart now uses the CPU. I just want to know if
this will be fixed or no??
Last edited by Arepirpi; 07-21-2012 at 02:55 PM.
1. It doesn't log you in because SRL is broken right now. If it's fixed, it will log you in.
2. Ben might work on a way to forcefully terminate that extra process stuff. It's Zombie clients and it isn't SRL's fault.
3. Compiling Smart would most likely fix it since there is less zombies. Right now Simba isn't shipping Smart 7.2 with the flag fix. So compile smart manually and it will have less of that process crap. http://villavu.com/forum/showthread....=compile+smart
I am Ggzz..
Hackintosher
Why am i getting this my script compiles but
Simba Code:SRL Compiled in 0 msec
** Fatal Error: Pairing Clients; Terminating Script **
Successfully executed.
Because the smart being distributed with Simba is outdated.. https://github.com/BenLand100/SMART/...b0f44f9a26bd18
The changes specified by that link fixes this problem 100% of the time when opening via Simba.
Compile smart yourself and it will work. There's a tutorial on how to do it in the C++/Programming section.
I am Ggzz..
Hackintosher
Brandom i have tried that can you take a look the tut you compiled because mine wont compile says there no such file but i have my variables set and the smart folder is on my desktop <3
Last edited by Brandon; 07-24-2012 at 10:32 PM.
I am Ggzz..
Hackintosher
Brandon, Wizzup? and I have gotten Simba and SRL working in the browser (details here, Wizzup?'s post, and mine below it). However, with that setup, I can't load SMART (only setup I tried). I get this error:
Progress Report:Compiled successfully in 515 ms. SRL Compiled in 16 msec *** Fatal Error: Pairing Clients; Attempting To Kill All Clients *** Count = 1 Failed To Kill Client: 2968 Successfully executed.
I can run Ben's test script without problems, so I'm assuming it's an issue within the new SMART include, and since you helped write it, I figure you know more about it.
I'm done for the night, but hopefully we can completely fix SRL in the next few days.![]()
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)