nemyax on 24/3/2017 at 19:12
Is it possible, at least in theory, to connect custom-made C libraries using Squirrel as "glue"?
ZylonBane on 25/3/2017 at 02:38
Can OSM scripts invoke other scripts? If so, then a Squirrel script should have access to the same interface that allows it.
Yandros on 25/3/2017 at 02:54
It depends on if the library has to be compiled in, since only an .osm is compiled, squirrel is executed at runtime, right?
LarryG on 25/3/2017 at 03:05
Why not just write the functionality in C and compile it as an OSM? If you want to use C libraries, why not write in C? I thought the point of the squirrel OSM was to allow run-time scripts without needing to compile or write in C.
nemyax on 25/3/2017 at 05:38
Quote Posted by LarryG
Why not just write the functionality in C and compile it as an OSM? If you want to use C libraries, why not write in C?
Fair enough, but is the C API documented?
Nameless Voice on 25/3/2017 at 09:01
The header files have documentation.
Find them in the "lg" directory in the source code for tnhScript or PublicScripts.
They won't include new functionally added by NewDark, but IIRC those are mentioned in the documentation somewhere.
Daraan on 27/3/2017 at 09:31
For someone like me who knows how to code but has no idea how to compile an .osm and the related stuff this_is_awsome!
First little test scipts worked perfectly fine, now I will write 1,2 others :)
----
As scripts are only loaded when you leave the game mode its good to put a reload_scripts in the GameMode.cmd