Exporters

本页面讲述的内容长期有效

Modders can use the exporter tools that Paradox provides 'as-is'. These can be used to export textures from Photoshop and meshes/animations from Maya.

The Maya exporter is only used internally with Maya 2018, though it may also work on other versions. It will not work with Maya LT, which has limitations on plugin usage.

Setup[编辑 | 编辑源代码]

Installation[编辑 | 编辑源代码]

The exporter can be downloaded from here (requires Paradox account):

Paradox Plaza - Downloads

  1. Close Photoshop and Maya
  2. Download the exe called "Clausewitz Maya Exporter" (this also includes the Photoshop exporter)
  3. Run the Maya Exporter Deploy Wizard, filename 'PdxExporterInstall.exe'. Default settings should be fine
  4. Run ExporterInstaller.exe (it should run automatically).
  5. You should now have the plugins deployed in the correct places, and a settings file
  6. Open the newly-created settings file: 'Documents\Paradox Interactive\PdxExporter\settings\clausewitz.settings'
  7. Replace the contents with the following:
   {
       "projects": [{
           "name":         "CrusaderKingsIII",
           "path":         "C:/Program Files (x86)/Steam/steamapps/common/Crusader Kings III/game/tools/",
           "export_path":  "C:/Program Files (x86)/Steam/steamapps/common/Crusader Kings III/game/",
           "target_exe":   "C:/Program Files (x86)/Steam/steamapps/common/Crusader Kings III/binaries/ck3.exe"
       }],
    
       "mergetool": "C:/Program Files (x86)/Meld/Meld.exe $1 $2"
   }

Make sure it actually pointing to the correct directory where your game has installed.

When you make any changes, run it through a JSON Validator to catch any errors early.

Photoshop Setup[编辑 | 编辑源代码]

TextureExporter 2.0 should now appear in Photoshop > File > Scripts > TextureExporter 2.0

Assign a hotkey to this as you might end up using it a lot – PDS artists use F7.

In the Exporter, click the 'Texture' Asset Type radio button, and then press Generate Missing Layers.

The layer groups will generate before your eyes. You can place any texture you need within these Layer Groups.

When you are ready to export, hit Export. All the layers will be packed into DDS files and sent into the game.

Maya Setup[编辑 | 编辑源代码]

First download and install Meld as it will make re-exporting a little more painless.

After starting Maya, you go into Plug-in Manager, and activate pdx_exporter.mll

To open the exporter, run the following MEL script:

   rehash; source pdx_export_ui.mel; 
   showPdxExport;

You can add this to your shelf using the following process:

Maya - Make a shelf button for a script

If the window opens and you see the list of shaders in the Output window, then you are good to go!

Forum[编辑 | 编辑源代码]

Join the discussion on the Clausewitz Maya Exporter (modding tool) subforum!