Skip to content

Commit

Permalink
Adjust OpenCS saving stages order to stop vanilla MW complaining abou…
Browse files Browse the repository at this point in the history
…t missing records
  • Loading branch information
scrawl committed Aug 22, 2015
1 parent 50ec8b1 commit 031d64d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions apps/opencs/model/doc/saving.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,25 @@ CSMDoc::Saving::Saving (Document& document, const boost::filesystem::path& proje
appendStage (new WriteCollectionStage<CSMWorld::IdCollection<ESM::StartScript> >
(mDocument.getData().getStartScripts(), mState));

appendStage (new WriteDialogueCollectionStage (mDocument, mState, false));

appendStage (new WriteDialogueCollectionStage (mDocument, mState, true));

appendStage (new WriteRefIdCollectionStage (mDocument, mState));

appendStage (new CollectionReferencesStage (mDocument, mState));

appendStage (new WriteCellCollectionStage (mDocument, mState));

appendStage (new WritePathgridCollectionStage (mDocument, mState));
// Dialogue can reference objects and cells so must be written after these records for vanilla-compatible files

appendStage (new WriteLandCollectionStage (mDocument, mState));
appendStage (new WriteDialogueCollectionStage (mDocument, mState, false));

appendStage (new WriteDialogueCollectionStage (mDocument, mState, true));

appendStage (new WritePathgridCollectionStage (mDocument, mState));

appendStage (new WriteLandTextureCollectionStage (mDocument, mState));

// references Land Textures
appendStage (new WriteLandCollectionStage (mDocument, mState));

// close file and clean up
appendStage (new CloseSaveStage (mState));

Expand Down

0 comments on commit 031d64d

Please sign in to comment.