Jump to content

[SOLVED] how to create a new type of object in engine


photo

Recommended Posts

I need to create a generic spline node in engine. so I use the following steps.
 

  • create a class for WorldSpline including load/save save/restoreState, load/saveWorld
  • add another enum like WORLD_SPLINE in node.h and set the world_end enum to correct value
  • export this worldspline class in worldinterpreter.cpp also export it's type id decleared in node.h

Do I need more extra steps?? it seems the above steps makes entire engine not work, the log have this:

Interpreter::restore_state(): different number of variables
then there is nothing loaded in world.

what's wrong?
Link to comment
  • 2 years later...

Hi Steve! Maybe it's not relative with the topic, but we've trying to find a way to generate .spline files without 3DMax. Is that what you have done? If so, can you give an advice how to relize that? :)

Link to comment
  • 3 weeks later...
×
×
  • Create New...