Mike408
2011-08-18 12:16:42
Hi, when I go to run a R2 script such as Strongholder 1.5c, it will load to the login screen and pull up an error file in Reflection.simba.
Highlighted text in Reflection.simba
[Hint] C:\Simba\Includes\Reflection2\./lib/core/Menu.simba(313:3): Variable 'L' never used at line 312
[Hint] C:\Simba\Includes\Reflection2\./lib/core/Menu.simba(370:3): Variable 'L' never used at line 369
[Hint] (560:10): Variable 'Result' never used at line 559
[Hint] (717:7): Variable 'MYLOC' never used at line 716
Compiled succesfully in 1151 ms.
SRL Compiled in 10 msec
SMART Initialized.
Loaded: Server 1, Members: False, Signed: True, Super Detail: False.
[Reflection] You're using outdated hooks (version 659.4); updating you to version 662.2!
[Reflection] If you manually fixed your hooks, please make sure hookrevision values are greater than or equal to the online hooks to prevent overwriting.
ReWriteFile - Exception. Could not create file: C:\Simba\includes/Reflection/lib/core/Hooks.simba
Error: Exception: Invalid FileNum passed: -1 at line 96
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap]
Highlighted text in Reflection.simba
begin
WriteLn('[Reflection] You''re using outdated hooks (version ' + ToStr(ClientVersion) + '.' + ToStr(HookRev) + '); updating you to version ' + ToStr(ClientRev) + '.' + ToStr(RevHook) + '!');
WriteLn('[Reflection] If you manually fixed your hooks, please make sure hookrevision values are greater than or equal to the online hooks to prevent overwriting.');
MyFile := RewriteFile(AppPath + 'includes/Reflection/lib/core/Hooks.simba', False);
WriteFileString(MyFile, Src);
CloseFile(MyFile);
WriteLn('[Reflection] Updated you to ' + ToStr(ClientRev) + '.' + ToStr(RevHook) + '; please restart your script!');
TerminateScript;
end;