Log in

View Full Version : Problem running script



TheKbUni
10-22-2012, 09:21 PM
I just dled Simba and dont really know how to run a script. I dled The Cutting Edge script (http://villavu.com/forum/showthread.php?t=77253) and then went to file - open and chose the script then when it opened, i filled in my information and then ran the script and got a message saying

Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from 'C:\Users\(MyName)\Desktop\TheCuttingEdge v0.6.simba'

(I dled and saved the script to my desktop)

riwu
10-23-2012, 12:51 AM
You need to download the ObjDTM include, use the search button.

EDIT: it was 2 threads below you: http://villavu.com/forum/showthread.php?t=68112

TheKbUni
10-23-2012, 02:40 AM
Thanks! do i just install this then run? or do i have to setup my script with the include?

TheKbUni
10-23-2012, 03:12 AM
well i followed the instructions for installing and updating DTM and i als just installed SMART. now when i click run, i get a first error saying

[Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(279:145): Invalid number of parameters at line 278
Compiling failed.

which is just a blank line in the middle of the script, when i click run again, i get another error saying

[Error] C:\Simba\Includes\SRL\SRL\misc\SmartParams.Simba(7 0:8): Unknown identifier 'RSReady' at line 69
Compiling failed.

(This is the code written where i am getting te error)

Procedure FixSmartSpeed;
var
T: Integer;
begin
T:= GetSystemTime + 2000;
While (Not SmartEnabled) Do
begin
if (GetSystemTime >= T) Then
Break;
Wait(500);
end;

While (GetColor(382, 252) = 0) Do
begin
If RSReady then
Break;
SmartSetRefresh(SmartGetRefresh + 1);
MMouse(4, 4, 0, 0);
SmartSetRefresh(SmartGetRefresh - 1);
if (GetSystemTime >= T) Then
Break;
Wait(500);
end;

Someone please help! Thankyou!!

riwu
10-23-2012, 03:31 AM
Either change
{$DEFINE SMART}
to
{$DEFINE SMART8}
in the script,

OR

Remove -1 (change to:) at
Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
But you have to this every SRL update until SMART 8 becomes official.

TheKbUni
10-23-2012, 03:41 AM
I added the 8 and now i am getting a different error saying

[Error] C:\Simba\Scripts\TheCuttingEdge v0.6.simba(119:5): Unknown identifier 'SMART_DrawBitmap' at line 118
Compiling failed.

The line of code reads:

Procedure Init;

begin
{Paint}
if (PaintWait <> 0) then
begin
Prog := LoadBitmap(ThePath);
SMART_DrawBitmap(True,Prog,Point(MCX1,MCY1));
SetLength(PaintArray,6);
end;


Also I dont see a -1 that you are telling me to change, but since im getting a different error after adding the '8' then im guessing the 'SMART_DrawBitmap' is my problem. thanks

riwu
10-23-2012, 04:00 AM
Well apparently ODTM include checks for {$IFDEF SMART}...

Quick solution: delete every line that you encounter an error.
This means you won't have any fancy paint but the script shouldn't be affected.


OR (note the or, only do one of them)


To keep the paint: change back to {$DEFINE SMART}, remove the -1 (it is a few lines below where the error occurs), and change
SMART_DrawBoxEx(False, BankBox, clRed);
to
SMART_DrawBoxEx(False, true, BankBox, clRed);

and remove
Smart_Server := WORLD;
Smart_Members := True;
Smart_Signed := True;

TheKbUni
10-23-2012, 04:52 AM
ok i deleted all the lines that gave me errors (they were all lines reguarding SMART) now when i run the script, it says

Checking For An Updated Script Version.
0.6
0.6
You Have The Latest Version Of The Script!
Paint File Check.
SRL Compiled in 0 msec
Object DTM Include: Setup complete.

After i run the script, that pops up and then nothing happends. The script is still running because the run arrow is greyed out and i have a choice to pause or stop. is the game client supposed to open itself? or do i have to open the game? thanks

riwu
10-23-2012, 04:54 AM
Smart should be initialized. Are you using Smart 8? Get it at http://villavu.com/forum/showthread.php?t=87801 (read all the posts and follow the instructions).

TheKbUni
10-23-2012, 05:03 AM
yea i dled smart8 from that exact page. i took all the contents and put them in my Simba/Plugins folder and honestly i have no idea what else im supposed to do after that. that page u just gave me says a bunch of nonsense and i dont know what parts im supposed to do. basically can u please tell me what to do after putting the contents from this dl into my plugins folder. thanks

Enslaved
10-28-2012, 01:29 PM
think it should just run straight off then, remeber to include smart and srl