Not logged inOpenClonk Forum
Up Topic Save scenario rework: Save to Objects.c instead of Game.txt.

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 Sven2

> I think it simply might help scenario designers in the future if this serialization functionality was exposed.


It is exposed. It's all in a script function in System.ocg/SaveScenario.c, which you can copy or overload and make your changes e.g. to store only objects in a rectangle. Though I would argue it would be easier to just write a script that removes all objects outside a rectangle and save afterwards.

It might be interesting to have an editor function that e.g. serializes all currently selected objects and puts the script into the clipboard. But I'm not sure if that's a really high priority, since a) we don't have such big maps yet, b) there are a lot more important things to be added to the editor.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill