SRL Archive - Discussion

Lape Reflection Include


Kyle

2015-01-20 09:11:38

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/ProSocks/releases/download/v0.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:
{$i Reflection/Reflection.simba} 
Always ensure that you call the setup as follows:

Reflect.Setup;

sportsguy217

2015-01-20 15:31:56

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?

Fitta

2015-01-20 16:20:33

From: 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.

rj

2015-01-20 16:34:20

Can we use SetUpReflection instead of Reflect.Setup;, vice versa? both compile but IDK if both work

Kyle

2015-01-20 16:59:31

From: 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

From: 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;

rj

2015-01-20 18:51:06

From: 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

akarigar

2015-01-20 19:15:23

From: 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.

Shatterhand

2015-02-12 18:00:35

Nice! Gonna try this out soon. Lape is new to me though. :)

kingarabian

2015-02-12 18:12:20

From: 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!!

slipper14

2015-02-22 00:43:35

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

Myke

2015-02-22 00:46:01

From: 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

Kyle

2015-02-23 22:43:07

From: 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

Czepa

2015-02-28 09:03:22

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

Athylus

2015-03-08 13:08:23

Whenever I bot for a while I get this error, but honestly have no idea what it is…

Acces violation at line 153.

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?

Kyle

2015-03-08 13:25:34

From: Athylus
Whenever I bot for a while I get this error, but honestly have no idea what it is…

Acces violation at line 153.

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.

Athylus

2015-03-08 13:43:19

From: 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.

Kyle

2015-03-08 14:51:26

From: 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.

Unfold

2015-04-05 13:18:44

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.

flamingo1

2015-04-08 16:05:57

From: 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-Reflection/commit/9e132852c538298ba5f3a7c081a09b01659cb883

MariusK

2015-06-14 17:33:58

I think that the latest update broke the include. Error:
Error: Unknown declaration "TReflectWidget" at line 45

xujnea

2015-06-14 17:49:50

From: MariusK
I think that the latest update broke the include. Error:
Error: Unknown declaration "TReflectWidget" at line 45


Same here, tried changing into TReflectionWidget got this error :
Error: Unknown declaration "IsValid" at line 47

Ian

2015-06-14 17:59:50

From: MariusK
I think that the latest update broke the include. Error:
Error: Unknown declaration "TReflectWidget" at line 45


Broken because of another change that was made, I submitted a pull request here.
@elfyyy;

Kyle

2015-06-14 18:12:15

Done.. Please force update if you still get error

TheRedGlow

2015-06-14 18:14:57

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 :spot:

stata

2015-06-14 19:36:44

I force updated but I'm still getting the error. Anyone else having problems?

MariusK

2015-06-14 19:41:00

From: stata
I force updated but I'm still getting the error. Anyone else having problems?


It is working for me. Did you download the include from github?

stata

2015-06-14 19:49:16

From: MariusK
It is working for me. Did you download the include from github?


Nope, working now thanks. I was under the impression that with prosocks I could just hit the update buttons in Simba.

Joopi

2015-10-12 16:42:57

Hi.
I decided to try and using reflection this morning for a script im writing.
I hadnt used it in a long time.
So when i ran an old script it first updated hooks, then updated them again.

After updating twice running any scripts just gives me an Invalid evaluation @ no line.
I tried re-downloading reflection, same results.
I dont know if its related to OSRS updating this morning or if I'm doing something wrong.

Obvious things: yes I use Lape for Lape version, yes it was not only one script but 3 different, 1 of which my old.

darker2k

2019-09-27 13:12:26

Hi, I'm getting this error:


ERROR: Plugin "prosocks" architecture mismatch

I downloaded the dll and put it into the Plugins folder.

Any idea of what is happening?

Note: The script I'm trying to run on Simba 1.3 is Kristi's Pest Control