I'm just trying to understand it and get anything to work. :/ I'll worry about that later.
On a related note, I had to add return types to the reflection-related functions in SmartRemote.H. @
BenLand100: Is there a reason why none of these functions returned anything? I changed them up to this, can you tell me if these are correct? (I edited these in the style of the reflection functions in the old SMART)
Code:
(char*)"exp_getFieldObject", (char*)"function SmartGetFieldObject(objref: integer; path: string): integer;",
(char*)"exp_isPathValid", (char*)"function SmartIsPathValid(objref: integer; path: string): boolean;",
(char*)"exp_getFieldBoolean", (char*)"function SmartGetFieldBoolean(objref: integer; path: string): boolean;",
(char*)"exp_getFieldLongH", (char*)"function SmartGetFieldLongH(objref: integer; path: string): integer;",
(char*)"exp_getFieldLongL", (char*)"function SmartGetFieldLongL(objref: integer; path: string): integer;",
(char*)"exp_getFieldInt", (char*)"function SmartGetFieldInt(objref: integer; path: string): integer;",
(char*)"exp_getFieldShort", (char*)"function SmartGetFieldShort(objref: integer; path: string): integer;",
(char*)"exp_getFieldFloat", (char*)"function SmartGetFieldFloat(objref: integer; path: string): extended;",
(char*)"exp_getFieldDouble", (char*)"function SmartGetFieldDouble(objref: integer; path: string): extended;",
(char*)"exp_getFieldByte", (char*)"function SmartGetFieldByte(objref: integer; path: string): string;",
I believe I was either wrong with those or wrong actually using the function as I get an error "Error: Could not call proc at line...". I tried these 3, perhaps you could point out where I'm going wrong at:
Simba Code:
SmartGetFieldInt(-1, 'hw.client');
SmartGetFieldInt(0, 'hw.client');
SmartGetFieldInt(1, 'hw.client');
This is using your SMART 8.1 with the reflection backbone you added about a month ago, loaded in Oldschool RS. I
believe that hook is correct but even if not it would be unrelated to my error.
Edit:
Ok now I have
all of the hooks for the current OSR client revision. I did a lot of digging through some other client that hosted the most recent hooks on their site; they sure went through a lot of trouble to keep these hidden...