SRL Archive - MSI Archives

how to disable form?


fryt0l

2011-12-05 07:02:57

hi i want use MSI VE container filler but i vant to use it without form so i edite runme file but everytime i click run it opnes SMART login and then script stops with this debug log
**** ] —- MSI_WalkingDefines: Walking not required
[**** ] – Invalid SPS Areas and/or Surfaces in MSI_Mainloop
[ **** ] – MSI_SetupPlayer
[ **** ] —- Player is not logged in
[**** ] —— Players Found: 0
[ **** ] —— Scanning for randoms…
[ **** ] —- MSI_SetPlayerLoc

this lines has been marked in code
Script := MSI_Scripts[Scripts[CurrentScript].Name];

its line its line 1470 in locations script
i added my edited runme file in attachments
can somebody tell me what i have wrong?

Gu3st...

2011-12-05 07:11:47

Your setup isn't correct. Post the DeclarePlayers procedure (Remove any password and username you might have there)

fryt0l

2011-12-05 07:20:23

u have my edited runme in attachments but if u wnat :)
procedure DeclarePlayers();
var
i: Integer;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
SetLength(MSI_Players, HowManyPlayers);

for i := 0 to High(MSI_Players) do
SetLength(MSI_Players.Scripts, 100);

CurrentPlayer := 0;
CurrentScript := 104;

with MSI_Players[0] do
begin
Name := 'my username'; // Username
Pass := 'my pass'; // Password
Pin := ''; // Bank pin; leave as '' if player doesn't have one
Active := True; // Use this player?
Member := False; // Is this player a member?
BreakLoads := 0; // Amount of loads before breaking/switching players; leave 0 to not take breaks
BreakTime := 0; // Amount of time (in minutes) before breaking/witching; leave 0 to not take breaks
TotalLoads := 0; // Total loads for the player to do; leave 0 if using TotalTime or to go forever
TotalTime := 0; // How long for the player to run? (in minutes); leave 0 if using TotalLoads or go forever

with Scripts[0] do
begin
end;
end;

Gu3st...

2011-12-05 10:06:40

From: fryt0l
u have my edited runme in attachments but if u wnat :)
Oh, right.. Didn't see that attachment :p

Yeah your setup is definitely not correct.
Look at this tutorial: http://villavu.com/forum/showthread.php?t=57723
It has a section named "Script setup without the form"

fryt0l

2011-12-06 06:43:31

well thanx it warks now :) but i have one more question i try to disable form becose i need to use ti with this http://villavu.com/forum/showthread.php?t=67864
i stucked in this point
Add {$DEFINE CRASHSMART} AFTER {$DEFINE SMART} in your script!

in runme is only ifdef SMART so did u know where i can add {$DEFINE CRASHSMART}?
thanx

Gu3st...

2011-12-06 09:51:28

Just add it to RunMe.simba near (at) the top