SRL Archive - S.M.A.R.T.

Need help with SMART


bud_wis_er_420

2013-01-27 03:32:03

I have 2 problems.

The second problem I'm hoping will be solved by fixing the first.

Okay, let me start by giving you all my info: I have Win 7 64bit, Java 6.0.32 installed(Only vers), I have Simba and all extensions updated. I placed the java path.


I been gone for about 8 months and a few things have changed. I been catching up the last few days. I been using the previous ver of SMART without any problems, the one that comes with the Simba install and update. But, when I tried making my own script, I ran into a bug that I needed to paint on the client to solve. When I tried to use the SmartGraphics include, nothing happens on the old vers of SMART. No Paint. But the weird thing is, it works when I use shaman2IOSalamander script. Below is the script I made to draw a box on the SMART client to test with. Maybe I did something wrong there. But trying to figure this out on my own first, I thought maybe if I update SMART to SMART8 it will work.

Now I tried to update b4 and gave up because I couldn't find a solution in the first few hours. I figured I'd come back to it later since the old vers was working fine for me. Well for the last 6 hrs or so I been scouring the forums for what might be going on. I assume it's just something I'm missing because it seems to work for everybody else.

The only error I get is:
Compiled successfully in 639 ms.
SRL Compiled in 16 msec
** Smart Cannot Spawn Clients **
Successfully executed.

Now the below script compiles fine when I use the old ver of SMART. I have a backup plugin folder in the directory. So I can just change the name of the include files to switch back and forth between the old ver of SMART and ver 8. But the below ver is setup for ver 8. I just wanted you to know I understood that to use ver 8 I need to copy these files to the plugins folder. And I use the backup plugin folder to switch back to the old vers. I also understand I have to restart Simba every time I do this.

Soooo… What am I doing wrong. Please help, cause this is driving me crazy. If there is anymore info you need that I didn't think to add please let me know. It has been awhile.


program new;
{$DEFINE SMART8}
{$I SRL/SRL.Simba}
{$I SRL/SRL/misc/SmartGraphics.simba}
var
i: Integer;
iBox: TBox;

Begin
SetUpSRL;

iBox := (IntToBox(100,300,100,300));
SMART_DrawBox(iBox);
for i := 1 to 10 do
begin
wait(1000);
Status(inttostr(i) + ' second');
end;
SMART_ClearCanvasArea(iBox);

End.

Oh and just so you know I tried the SMART8 test script in the setup tut. Didn't work.

program TestScript;
{$DEFINE SMART8} //Using SMART8 Instead of SMART is very important
{$I SRL/SRL.Simba}

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := ''; // Player username
Pass := ''; // Player password
Active := True;
end;
end;

procedure SetupSmartClient;
begin
SRL_SixHourFix := True;
SMART_FixSpeed := True;

ClearDebug;
SetupSRL;
ActivateClient;
DeclarePlayers;
LoginPlayer;
end;

begin
SetupSmartClient;

WriteLn('Finished, exiting ...');
end.

Chris!

2013-01-27 03:46:55

Now THIS is how you ask for help… I commend you for that!

I get this occasionally:

Compiled successfully in 639 ms.
SRL Compiled in 16 msec
** Smart Cannot Spawn Clients **
Successfully executed.

How I get around it is I close ALL instances of Simba, and then open a completely new instance of Simba (just open the Simba program) with no script in there. Just the:

program new;
begin
end.

Then I go Open -> Script after Simba has completely loaded (all of the include has loaded, give it maybe 5 seconds) and then it works.

I'm not sure if this will work, but worth a shot.

If that doesn't work, maybe try reinstalling Simba.

bud_wis_er_420

2013-01-27 04:04:29

Do you mean the plugins? Because if I'm not mistaken, I thought includes load AFTER you start the script. That why you add the include code at the beginning of the script. And either way I did try it to no success. I didn't reinstall because I did that 4 times already, trying out different Javas. And I did redownload everything incase files were corrupted.

I got to go to bed right now, I pick it up again tomorrow. Thx for the reply, Chris. BTW that's my real name too!!

Chris!

2013-01-27 04:10:23

Include is the wrong word, sorry. I mean let all the .simba files load into Simba. When they're loaded they'll all appear in the function list.

Good luck tomorrow.

Sjoe

2013-01-27 06:25:30

Does the Black command box pop-up when u press play?. The one Loading SMART. Cause I get this too sometimes.

All I do is let the box load

Press PAUSE on the script, let smart open, press play again.

bud_wis_er_420

2013-01-27 11:58:15

No the black box flashes and disappears. I can manually open it and this is the text it displays. Pausing the script as it loads does nothing.



bud_wis_er_420

2013-01-28 01:28:21

Anybody else? What about the SMART_DrawBox not working for me. Cause as I said I know it works with the old ver of SMART, cause I'm using it now with Ashaman88's Hunter script. But When I tried making my own draw script, nothing happens. The script runs successfully but no paint on the client comes up.

chongc

2013-01-28 06:49:12

Normally,the cmd dialog stays up the whole time smart is up. Did you install smart8 correctly?

Sjoe

2013-01-28 07:00:17

From: bud_wis_er_420
Anybody else? What about the SMART_DrawBox not working for me. Cause as I said I know it works with the old ver of SMART, cause I'm using it now with Ashaman88's Hunter script. But When I tried making my own draw script, nothing happens. The script runs successfully but no paint on the client comes up.


Did u include {$I SRL/SRL/misc/SmartGraphics.simba} ?
Just making sure. EDIT: Seeing it compiled, guess u have.

Don't know bout the other error u have, never saw that.

DannyRS

2013-01-28 08:29:26

From experience this normally happens due to java versions, if you are using 64bit try uninstalling and installing 32bit, if you are on 32, try the other way round

Also try jre 6 and 7 if you want, Normally 6 is best, but i run on 7 just fine, some others have issues tho, worth a shot

bud_wis_er_420

2013-01-29 13:08:58

From: Sjoekeloe
Did u include {$I SRL/SRL/misc/SmartGraphics.simba} ?
Just making sure. EDIT: Seeing it compiled, guess u have.

Don't know bout the other error u have, never saw that.


The script is on the first post but here is is again, it's rather small. I'm just trying to get it to paint a box on the SMART Client.
program new;
{$DEFINE SMART8}
{$I SRL/SRL.Simba}
{$I SRL/SRL/misc/SmartGraphics.simba}
var
i: Integer;
iBox: TBox;

Begin
SetUpSRL;

iBox := (IntToBox(100,300,100,300));
SMART_DrawBox(iBox);
for i := 1 to 10 do
begin
wait(1000);
Status(inttostr(i) + ' second');
end;
SMART_ClearCanvasArea(iBox);

End.

From: DannyRS
From experience this normally happens due to java versions, if you are using 64bit try uninstalling and installing 32bit, if you are on 32, try the other way round

Also try jre 6 and 7 if you want, Normally 6 is best, but i run on 7 just fine, some others have issues tho, worth a shot


From what I understand, Java 32bit goes with Simba 32bit and Java 64bit goes with Simba 64bit(which I read is unstable). I'm using both Simba and Java 32bit vers, as stated in my first post. I was originally using java 7 and it didn't work with SMART8, which is why I changed it to Java 6 update 32, as per the instuctions on this page and this post by Ashaman88. I'm no noob, I've done my research.

Anybody else?

bud_wis_er_420

2013-01-30 12:32:19

Still needing assistance with my problems. Can someone at least tell me why my paint script is not working.

edit: btw got paint working

tristen8878

2013-02-01 11:21:59

you have to run simba in compatibility mode run it as windows xp that's what I did it will work then :)

bud_wis_er_420

2013-02-02 06:29:22

Thank you but that didn't work either. I tried Win XP SP3.

bud_wis_er_420

2013-02-21 17:06:41

Still can't install SMART 8

bud_wis_er_420

2013-03-03 10:57:55

Still need help.

bud_wis_er_420

2013-05-27 13:02:27

And again, still needing help.

Brandon

2013-05-27 17:48:45

Ok uhhh..

JDK/JRE x64 can run both x32 and x64 Smart. The JVM handles architectures just fine so it doesn't matter if you have x32 or x64 Java when running Smart. As long as your PATH environment variable points to the /bin folder, then it should load just fine.


Next is your Java. I don't think Java 6u32 even works anymore? http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jre-6u43-oth-JPR

6u43 was the last version deployed for Java 6.

Anyway, download Simba and enable your extensions and the usual. Download Smart:

8.0: https://github.com/downloads/BenLand100/SMART/SMARTv8.0.zip
8.1: https://github.com/downloads/BenLand100/SMART/SMARTv8.1.zip

Either should be fine. After your Simba updates and your SRL is updated, go to the plugins folder and wipe anything related to Smart. LibSmart.dll, LibSmartRemote32.dll, LibSmartJNI.dll, etc..

Replace them with the three files contained in the folder you just downloaded. Then try drawing.


PS:

I still find myself asking why in the world Simba still ships with 7.2.. Its been more than 10 months since 8.0 and 9 months since 8.1 beta..

bud_wis_er_420

2013-05-27 18:59:18

From: Brandon
Ok uhhh..

JDK/JRE x64 can run both x32 and x64 Smart. The JVM handles architectures just fine so it doesn't matter if you have x32 or x64 Java when running Smart. As long as your PATH environment variable points to the /bin folder, then it should load just fine.


Next is your Java. I don't think Java 6u32 even works anymore? http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html#jre-6u43-oth-JPR

6u43 was the last version deployed for Java 6.

Anyway, download Simba and enable your extensions and the usual. Download Smart:

8.0: https://github.com/downloads/BenLand100/SMART/SMARTv8.0.zip
8.1: https://github.com/downloads/BenLand100/SMART/SMARTv8.1.zip

Either should be fine. After your Simba updates and your SRL is updated, go to the plugins folder and wipe anything related to Smart. LibSmart.dll, LibSmartRemote32.dll, LibSmartJNI.dll, etc..

Replace them with the three files contained in the folder you just downloaded. Then try drawing.


PS:

I still find myself asking why in the world Simba still ships with 7.2.. Its been more than 10 months since 8.0 and 9 months since 8.1 beta..


It worked!!!!!

You were right it was the wrong ver of java. The one you linked me too worked! Finally I can start using SMART8

Edit:
8.1 just gave me an error though. Sry, didn't write it down. 8.0 is working, good enough for me for now.

Brandon

2013-05-27 20:44:43

From: bud_wis_er_420
It worked!!!!!

You were right it was the wrong ver of java. The one you linked me too worked! Finally I can start using SMART8

Edit:
8.1 just gave me an error though. Sry, didn't write it down. 8.0 is working, good enough for me for now.



:D Glad it worked. Ahaha. Yeah 8.1 is a beta build for OpenGL/DirectX modes. It should have worked but no worries. Probably a wrong parameter in the includes (the plugin parameter).