Not logged inOpenClonk Forum
Up Topic C4Script for everything

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Newton
The Serialize function of course only saves the stuff that itself deems necessary. The Graphics, the actions, the dimension, the local variables etc can change and it still works. So, instead of saving the variables, Serialize tries to gain upward compatibility by using its own interface e.g. this:
func Serialize()
{
  var evalstr = Format("SetTurretDir(%d);",dir);
  return evalstr;
}
func SetTurretDir(int d)
{
  dir = d;
  // SOME MORE STUFF!
}


If the SOME MORE STUFF involved setting actions, graphics etc. and these changed in the next version, the objects.txt is broken because in the objects.txt dir=-1, action=hurzel, phase=3 etc is saved.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill