SRL Archive - Reflection Development

Unknown identifier 'SmartGetFieldShort'


Shady?

2010-05-24 04:34:54

[Error] C:\Simba\Includes\srl\srl\Reflection\Objects.simba(32:13): Unknown identifier 'SmartGetFieldShort' at line 31
Im getting that when I try to compile a script using objects.simba
Any Help? Thanks!

Dgby714

2010-05-24 05:17:10

Guessing: Did you copy the reflection smart plugin?

Is there one?

nielsie95

2010-05-24 05:20:57

Did you place "{.loadlib libsmart}" somewhere?

Shady?

2010-05-24 14:01:40

From: nielsie95
Did you place "{.loadlib libsmart}" somewhere?


I didnt, but now i tried it and it still doesnt work :/ same error

nielsie95

2010-05-24 14:17:12

Hmm, you're right, I get the same.. Weird =o

mastaraymond

2010-05-24 14:35:52


Revision: 14
Author: benland100
Date: 17:29:24, zondag 23 mei 2010
Message:
Added SmartGetFieldShort for v5.4
----
Modified : /src/Main.cpp
Modified : /src/Reflection.cpp
Modified : /src/Reflection.h
Modified : /src/Smart.cpp
Modified : /src/Smart.h
Modified : /src/classes.data
Modified : /src/smart/Client.java

Revision: 13
Author: benland100
Date: 5:36:06, vrijdag 14 mei 2010
Message:
Removed debug info
----
Modified : /reflection/src/include/map_screen.pas


Someone forgot to upload a new dll..

Drakan

2010-05-24 15:22:54

Haha yah Ben just created the new one last night to meet my needs. Not sure if it is uploaded.

mastaraymond

2010-05-24 16:17:34

From: drags111
Haha yah Ben just created the new one last night to meet my needs. Not sure if it is uploaded.

?? Pretty obvious it's not uploaded as neither of you did..

BenLand100

2010-05-24 16:33:25

The newest SMART is usually at http://bland.no-ip.org/files/Public_SMART.dll
BUT YOU CAN ALWAYS BUILD IT FROM SOURCE SINCE ITS OPEN SOURCE.
IT HAS A NICE MAKE FILE AND EVERYTHING
JUST `make both` OR `make windows` OR `make linux`
Sheesh.

masterBB

2010-05-24 17:32:18

SmartGetFieldInt also works, dont forget to change te TTile's to TPoint.
Got it running at my pc!


My wrong, it will always return 65535 as ID with this solution if there is a object.

Drakan

2010-05-24 20:16:10

Yah getFieldInt doesnt work because Object ID's are shorts :)

Wizzup?

2010-05-25 06:38:59

From: BenLand100
The newest SMART is usually at http://bland.no-ip.org/files/Public_SMART.dll
BUT YOU CAN ALWAYS BUILD IT FROM SOURCE SINCE ITS OPEN SOURCE.
IT HAS A NICE MAKE FILE AND EVERYTHING
JUST `make both` OR `make windows` OR `make linux`
Sheesh.


How can he cross-compile? It's good practice to always build a binary at least for the Window users. ;)

bbri06

2010-05-25 10:05:42

So I'm confused… Is there a solution to this or not because I'm still having the problem.

masterBB

2010-05-25 11:54:52

Download the file from benland and place it in plugins.

aran armath

2010-05-25 13:44:34

Still get this error,
[Error] C:\games\Simba\Includes\srl\srl\Reflection\Objects.simba(90:21): Unknown identifier 'SmartGetFieldShort' at line 89

Shady?

2010-05-25 15:54:27

From: aran armath
Still get this error,
[Error] C:\games\Simba\Includes\srl\srl\Reflection\Objects.simba(90:21): Unknown identifier 'SmartGetFieldShort' at line 89


I guess you have to rename the file to Embedded_SMART.dll

aran armath

2010-05-25 15:59:23

From: Shady?
I guess you have to rename the file to Embedded_SMART.dll


Still didn't work….

masterBB

2010-05-25 17:45:09

thats because it should be renamed to: libsmart.dll! Save it over the older one.

bbri06

2010-05-25 18:43:31

It's working now, thanks.

aran armath

2010-05-25 19:38:30

From: masterBB
thats because it should be renamed to: libsmart.dll! Save it over the older one.


Thanks a million!

Drakan

2010-05-25 22:46:28

Mine's name is Embedded_SMART.dll… It all depends on how you are importing it in your script i guess.


{.LoadLib Embedded_SMART}

Just make sure you are loading the right one (whatever yours is named).

mastaraymond

2010-05-26 04:30:03

Uploaded the new dll to the SRL SVN..

E: Test script to run to see if it works:


program new;
{$define smart}
{$i srl/srl.scar}
{$I srl/srl/reflection/reflection.simba}
begin
end.

Drakan

2010-05-27 09:17:59

From: mastaraymond
Uploaded the new dll to the SRL SVN..

E: Test script to run to see if it works:


program new;
{$define smart}
{$i srl/srl.scar}
{$I srl/srl/reflection/reflection.simba}
begin
end.



Why do we keep changing the plugin name :P It's named Embedded_SMART, publicsmart, smartlib, smart…. We need to pick one name and stick with it.

Wizzup?

2010-05-27 09:40:14

From: drags111
Why do we keep changing the plugin name :P It's named Embedded_SMART, publicsmart, smartlib, smart…. We need to pick one name and stick with it.


It is called libsmart.

Drakan

2010-05-27 09:47:33

From: Wizzup?
It is called libsmart.


yah libsmart, w/e. So is libsmart gonna be what we use globaly then?

Wizzup?

2010-05-27 10:17:59

From: drags111
yah libsmart, w/e. So is libsmart gonna be what we use globaly then?


Yes, for the filename.