Skip to content

Commit

Permalink
Add image path fields to ENTM dump
Browse files Browse the repository at this point in the history
Fixes #19.
  • Loading branch information
FWDekker committed May 21, 2020
1 parent df518c5 commit 97cfa01
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions Edit scripts/ExportTabularENTM.pas
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ function initialize: Integer;
begin
ExportTabularENTM_outputLines := TStringList.create();
ExportTabularENTM_outputLines.add(
'"File"' // Name of the originating ESM
+ ', "Form ID"' // Form ID
+ ', "Editor ID"' // Editor ID
+ ', "Name (FULL)"' // Full name
+ ', "Name (NNAM)"' // Shortened name
+ ', "Description"' // Description
+ ', "Keywords"' // Sorted JSON array of keywords. Each keyword is represented by its editor ID
'"File"' // Name of the originating ESM
+ ', "Form ID"' // Form ID
+ ', "Editor ID"' // Editor ID
+ ', "Name (FULL)"' // Full name
+ ', "Name (NNAM)"' // Shortened name
+ ', "Description"' // Description
+ ', "Storefront image path"' // Path to where images are located
+ ', "Storefront image preview"' // File name of preview image
+ ', "Storefront confirm image list"' // Sorted JSON array of file names
+ ', "Keywords"' // Sorted JSON array of keywords. Each keyword is represented by its
// editor ID
);
end;

Expand All @@ -41,6 +45,9 @@ function process(entm: IInterface): Integer;
+ escapeCsvString(evBySign(entm, 'FULL')) + ', '
+ escapeCsvString(evBySign(entm, 'NNAM')) + ', '
+ escapeCsvString(evBySign(entm, 'DESC')) + ', '
+ escapeCsvString(evBySign(entm, 'ETIP')) + ', '
+ escapeCsvString(evBySign(entm, 'ETDI')) + ', '
+ escapeCsvString(getFlatChildList(eByName(entm, 'Storefront Confirm Image List'))) + ', '
+ escapeCsvString(getFlatKeywordList(entm))
);
end;
Expand Down

0 comments on commit 97cfa01

Please sign in to comment.