HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: [Resolved] Area Duplication  (Read 1288 times)

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1407
    • View Profile
    • Forever Interactive, Inc.
[Resolved] Area Duplication
« on: Dec 17, 10, 05:56:14 PM »

Is there a way to duplicate an area?  Given that an area is so easy to change, it is also easy to mess up, and Undo can't always fix it.  It would be nice if once an area is at a good, stable point then it could be copied so the other area can act as a backup in case of catastrophe.
« Last Edit: Oct 26, 12, 05:00:46 PM by HE-Cooper »
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.

JoshHalls

  • Founding Professional
  • *****
  • Posts: 335
    • View Profile
    • The Repopulation
Re: Area Duplication
« Reply #1 on: Dec 19, 10, 02:00:13 PM »

You can lock an area so it cannot be editted without unlocking it.  Encourage people to avoid using the edit zone if possible as well unless they are working on the zone.  By encourage I mean beat them with a stick for being in an edit zone they have no business being in.
Logged
Co-Owner/Programmer - The Repopulation

HE-JAY

  • HeroEngine
  • *****
  • Posts: 122
    • View Profile
Re: Area Duplication
« Reply #2 on: Dec 19, 10, 07:10:45 PM »

If the goal is to generate restore points of area geometry as a preventative measure against editing mistakes or as a means of providing rudimentary version control, you may want to leverage Area Checkpoints (http://hewiki.heroengine.com/wiki/Area_checkpoints).  Creating a restore point with the Area Checkpoints system will back up all data associated with the area root node and store it in the GOM.  The checkpoint will be associated with both the area in question and a label you provide at the time of creation.  At any time, a previously saved checkpoint may be loaded from an edit instance to effectively roll back the area's geometry to an earlier point in time.

To create an Area Checkpoint, first ensure that you are currently loaded into the edit instance of the area in question.  Then, open the hotspot menu by hitting F5.  Click on Area Checkpoints under the Areas heading to open the default clean engine GUI for checkpoints.

At this point, clicking on New will allow you to provide a name for your checkpoint and save the current state of the area's geometry.  Alternatively, clicking on Restore will allow you to select a previously saved checkpoint to restore to an earlier state.

Note: The Area Checkpoints system should only be used to manage iterations of area geometry and its associates and is not intended as a comprehensive backup tool.  Any custom game systems you've written which may manipulate or otherwise interact with an area's data will need to provide its own mechanism for backing up and dealing with changing data.

The alternative is to use the organizer's Area Import feature to import the geometry from one area to another (blank) one.  This is closer to the method you had originally suggested.  Details on how to accomplish this are located at (http://hewiki.heroengine.com/wiki/How_to_Import_an_Area).
« Last Edit: Dec 19, 10, 07:15:02 PM by HE-Jay »
Logged

JoshHalls

  • Founding Professional
  • *****
  • Posts: 335
    • View Profile
    • The Repopulation
Re: Area Duplication
« Reply #3 on: Dec 19, 10, 08:01:10 PM »

I was unaware of checkpoints, thanks for that tidbit.
Logged
Co-Owner/Programmer - The Repopulation

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1407
    • View Profile
    • Forever Interactive, Inc.
Re: Area Duplication
« Reply #4 on: Dec 19, 10, 09:01:14 PM »

That sounds excellent.  Thanks, Jay!
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.