Thread: Lape Reflection Include

1. Lape Reflection Include

Lape Reflection

If you feel so inclined to donate towards the development of both the include and the updater, please do so:

The Lape version on Reflection is being completely maintained and develouped constantly, and is the main include, as the new SRL for old school runescape will be using lape soley as well. This include can be used standalone, or alongside with Aerolib.

The link for the include is at https://github.com/Elfyyy/OSR-Reflection and in order to use it and allow it to auto update, you will need a SSL supporting plugin, called prosocks https://github.com/Brandon-T/ProSock...5/ProSocks.dll

Once both of those are downloaded, extract the include to Simba/Includes/, renaming it to just "reflection" and place the prosocks.dll in Simba/Plugins.
It is included by:
Simba Code:
{$i Reflection/Reflection.simba} Always ensure that you call the setup as follows: Simba Code: Reflect.Setup; Last edited by Kyle; 02-21-2016 at 01:48 PM. 2. Registered User Join Date Mar 2012 Posts 13 Mentioned 0 Post(s) Quoted 5 Post(s) So do we delete the the reflection folders in simba\includes\aerolib\reflection and simba\includes\srl-OSR\srl\reflection? or just the one under SRL? Another way I could put this: when the include is updated like this, are we supposed to replace every folder with the name 'reflection' this new update? Last edited by sportsguy217; 01-20-2015 at 08:40 PM. 3. Originally Posted by sportsguy217 So do we delete the the reflection folders in simba\includes\aerolib\reflection and simba\includes\srl-OSR\srl\reflection? or just the one under SRL? Another way I could put this: when the include is updated like this, are we supposed to replace every folder with the name 'reflection' this new update? Reflection is supposed to be put in Includes/Reflection/ It is NOT inside the aerolib folder anymore. 4. Can we use SetUpReflection instead of Reflect.Setup;, vice versa? both compile but IDK if both work 5. Originally Posted by sportsguy217 So do we delete the the reflection folders in simba\includes\aerolib\reflection and simba\includes\srl-OSR\srl\reflection? or just the one under SRL? Another way I could put this: when the include is updated like this, are we supposed to replace every folder with the name 'reflection' this new update? To expand on what Fitta said. You shouldn't ever have to change the folder again, as it will stay as it is now forever. Lape include is now in Includes/ and PascalScript version is still in Includes/SRL-OSR/SRL Originally Posted by Robert Can we use SetUpReflection instead of Reflect.Setup;, vice versa? both compile but IDK if both work SetupSrl points to Reflect.Setup; SetupReflection; will eventually be removed so it's best to just use Reflect.Setup; 6. Originally Posted by elfyyy To expand on what Fitta said. You shouldn't ever have to change the folder again, as it will stay as it is now forever. Lape include is now in Includes/ and PascalScript version is still in Includes/SRL-OSR/SRL SetupSrl points to Reflect.Setup; SetupReflection; will eventually be removed so it's best to just use Reflect.Setup; Ok, and to be clear all objects have to be initiated before they can be properly used right? Eg TInventoryInvItem.find must be called before click, etc etc 7. SRL Member Join Date Nov 2014 Posts 104 Mentioned 12 Post(s) Quoted 59 Post(s) Originally Posted by Robert Ok, and to be clear all objects have to be initiated before they can be properly used right? Eg TInventoryInvItem.find must be called before click, etc etc Yes, you're correct. Objects needs to be properly initialized before they can be used. For details on how to properly use non static functions, refer to the Basic Lape Reflection Tutorial in the Tutorials section. 8. Nice! Gonna try this out soon. Lape is new to me though. 9. Originally Posted by Shatterhand Nice! Gonna try this out soon. Lape is new to me though. Same here, but it's really similar. As soon as reflection is updated!! 10. Registered User Join Date Feb 2015 Posts 1 Mentioned 0 Post(s) Quoted 2 Post(s) Just followed the exact steps listed and still getting Error: File "SRL-OSR/SRL/Reflection/Reflection.simba" not found at line 7 Compiling failed. MonsterMashPublicV1.10.simba 11. SRL Junior Member Join Date Dec 2011 Posts 69 Mentioned 0 Post(s) Quoted 15 Post(s) Originally Posted by slipper14 Just followed the exact steps listed and still getting Error: File "SRL-OSR/SRL/Reflection/Reflection.simba" not found at line 7 Compiling failed. MonsterMashPublicV1.10.simba did you have the reflection.simba file at that directory? you can change the path at top of script to go where u have the reflection include 12. Originally Posted by slipper14 Just followed the exact steps listed and still getting Error: File "SRL-OSR/SRL/Reflection/Reflection.simba" not found at line 7 Compiling failed. MonsterMashPublicV1.10.simba That is the Pascal script version that the script is looking for. You installed the Lape version 13. SRL Junior Member Join Date Jun 2006 Location Australia Posts 432 Mentioned 0 Post(s) Quoted 0 Post(s) Error: File "Reflection/Reflection.simba" not found at line 4 tavarly chaos druid collector. reflection.simba is in: C:\Simba\Includes\OSR-Reflection ill post back an edit if i can fix it EDIT: and the solution is naming the folder 'reflections' instead EDIT2: it seems this is a problem common to the last OSR reflections update: Error: Unknown declaration "GetGlobalTile" at line 1368 something about the actor script. I hope this helps Last edited by Czepa; 02-28-2015 at 02:11 PM. 14. SRL Junior Member Join Date Aug 2013 Posts 82 Mentioned 0 Post(s) Quoted 35 Post(s) Whenever I bot for a while I get this error, but honestly have no idea what it is... Acces violation at line 153. Code: function TReflectionSmart.GetFieldInt(Ref: Integer; Hook: THook): Integer; begin Result := SmartGetFieldInt(Reflect.Smart.Target, Ref, Hook.Path) * Hook.Multi; end; What does this mean? It loses the smart target or something? 15. Originally Posted by Athylus Whenever I bot for a while I get this error, but honestly have no idea what it is... Acces violation at line 153. Code: function TReflectionSmart.GetFieldInt(Ref: Integer; Hook: THook): Integer; begin Result := SmartGetFieldInt(Reflect.Smart.Target, Ref, Hook.Path) * Hook.Multi; end; What does this mean? It loses the smart target or something? What script are you using? Never seen an access violation there before, but Lape has really bad error messages so I wouldn't be surprised if it was from something going out of range, or it could be referencing a null pointer. 16. SRL Junior Member Join Date Aug 2013 Posts 82 Mentioned 0 Post(s) Quoted 35 Post(s) Originally Posted by elfyyy What script are you using? Never seen an access violation there before, but Lape has really bad error messages so I wouldn't be surprised if it was from something going out of range, or it could be referencing a null pointer. I am using my own made script, it's happened a couple of times. I'll try to see when exactly it happens. The script stops (as in, I have to press the green button again) and it 'disconnects' from smart. 17. Originally Posted by Athylus I am using my own made script, it's happened a couple of times. I'll try to see when exactly it happens. The script stops (as in, I have to press the green button again) and it 'disconnects' from smart. Yeah then I'd definitely say that you are trying to access a object reference that either is null or has already been freed. 18. SRL Junior Member Join Date Aug 2013 Posts 230 Mentioned 1 Post(s) Quoted 114 Post(s) Error: Access violation at line 66 Execution failed. The following DTMs were not freed: [0] The following bitmaps were not freed: [0, 1, 2, 3, 4, 5 I get that whenever I use the function .WaitWhileMoving or even .IsAnimating. 19. Registered User Join Date Mar 2015 Posts 4 Mentioned 0 Post(s) Quoted 1 Post(s) Originally Posted by Unfold Error: Access violation at line 66 Execution failed. The following DTMs were not freed: [0] The following bitmaps were not freed: [0, 1, 2, 3, 4, 5 I get that whenever I use the function .WaitWhileMoving or even .IsAnimating. https://github.com/Elfyyy/OSR-Reflec...a09b01659cb883 20. SRL Junior Member Join Date May 2013 Posts 75 Mentioned 3 Post(s) Quoted 48 Post(s) I think that the latest update broke the include. Error: Simba Code: Error: Unknown declaration "TReflectWidget" at line 45 21. SRL Junior Member Join Date Apr 2015 Posts 43 Mentioned 0 Post(s) Quoted 19 Post(s) Originally Posted by MariusK I think that the latest update broke the include. Error: Simba Code: Error: Unknown declaration "TReflectWidget" at line 45 Same here, tried changing into TReflectionWidget got this error : Simba Code: Error: Unknown declaration "IsValid" at line 47 22. Originally Posted by MariusK I think that the latest update broke the include. Error: Simba Code: Error: Unknown declaration "TReflectWidget" at line 45 Broken because of another change that was made, I submitted a pull request here. @elfyyy; 23. Done.. Please force update if you still get error 24. Registered User Join Date Nov 2011 Posts 13 Mentioned 0 Post(s) Quoted 3 Post(s) As stated by BMWxi above, the fix for the issue is to: Open up your simba folder Navigate to includes Open reflection Open lib Open internal Open includes Move line 16 ({$include reflection/lib/widgets/Widgets.simba})
above line 9 ({\$include reflection/lib/internal/Login.simba})
Close and save

Thanks for the fast response elfyyy

25. SRL Junior Member
Join Date
Aug 2013
Posts
41
Mentioned
0 Post(s)
Quoted
16 Post(s)
I force updated but I'm still getting the error. Anyone else having problems?