Jump to content

[SOLVED] Error when callin script fct from C++


photo

Recommended Posts

Hello,

I'm trying to call some script function from the C++ code, just like the CIGI demo does, but for some script function, runWorldFunction just prints "Machine::do_callucf(): "int: 0" is not a user class".

i tried with even a simple copy-paste from the demo CIGI. For one function it works, and for another it doesn't. Both script are in the <project>/data/<project>.cpp, both have the same signature "void dosomething(float)"

 

Link to comment

My bad. Found it; It was a rogue invisible character that slipped through the name of the function. Still trying to figure out how it got there.

For the record, in some cases it even crashed the exe.

Case closed, sorry for the noise.

Link to comment
  • silent changed the title to [SOLVED] Error when callin script fct from C++
×
×
  • Create New...