fun printHello (string)=
//addLogMessage show messages in OS3D logs window
addLogMessage strcat "Hello " string
;;
fun testMainfunction ()=
printHello "Scol Community !";
0;;
My (wrong) code copy-pasted from manual:
fun printHello (string)=
_fooS strcat "Hello " string
;;
fun test ()=
_showconsole;
printHello "Scol Community !";
0;;
what I have
> Init default scene.
> Loading OpenSpace3D scene file : examples/addsourcecode.xos
> Number of plugIT instances in project: 2
> Number of links in project: 1
> examples/addsourcecode.xos loaded.
> Hello Scol Community !
addsoursecode is not intended to make plugITs, just to use some scol code in your project or learn.
you can also make some code in links parameters with
if you want to make your own plugit start here : https://redmine.scolring.org/projects/s … ate_plugIT
and here https://redmine.scolring.org/projects/o … dules.htmlalso open existing simple plugits code to learn
I see, thank you..
]]>> Init default scene.
> Init default scene.
> Loading OpenSpace3D scene file : examples/addsourcecode.xos
> Number of plugIT instances in project: 2
> Number of links in project: 1
> examples/addsourcecode.xos loaded.
No hello..
]]>you can also make some code in links parameters with [code ] [/ code]
if you want to make your own plugit start here : https://redmine.scolring.org/projects/s … ate_plugIT
and here https://redmine.scolring.org/projects/o … dules.html
also open existing simple plugits code to learn
]]>you will see the hello world in the OS3D console
]]>you need to add a plugit to run the code and set the main function name in the plugit
]]>> Event : Scene.Button inst.LeftClick with param : NIL
> Action : Scene.addsourcecode inst.Run with param : NIL and reply param : NIL
And pop up this window with some errors:
https://www.screencast.com/t/0eBFgpa8k10
If I close it editor crashes.
]]>fun printHello (string)=
_fooS strcat "Hello " string
;;
fun test ()=
_showconsole;
printHello "Scol Community !";
0;;
And setting "test" as name of main function.
And a logic / links like this: