• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Tsunatus

Recruit
20 Badges
May 17, 2016
6
0
  • Stellaris: Galaxy Edition
  • Stellaris: Apocalypse
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Mass Transit
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris
I've been trying to export a ship model using PDX but every time i do it gives me
pdx_exporter -s 1 -fz 1 -sm 0 -svm 0 -es 0 -cga 0 -v 0 -m 1 -a 1 -b 1 -ct 0 -lp 1 -sps 15 -f asset -bd "X:/project/project_terra/game/" -ep "X:/project/project_terra/game/stellaris_RD.exe" -d "output/"

My friend says its because the path is incorrect but i have no way to fix it and I've already modified the clausewitz.txt to point towards stellaris
 
Have you selected your project for the Stellaris game path in the exporter? You can find it in the box on the right side, above where you specify the name of the asset and the location within the game folder to where it will export the files.
 
Have you selected your project for the Stellaris game path in the exporter? You can find it in the box on the right side, above where you specify the name of the asset and the location within the game folder to where it will export the files.
thats the problem, its giving me the defaults e.g. "hearts_of_iron" "Terra". I've already modified the clausewitz and all that is in there is Stellaris but it keeps on showing those
 
thats the problem, its giving me the defaults e.g. "hearts_of_iron" "Terra". I've already modified the clausewitz and all that is in there is Stellaris but it keeps on showing those
That sounds wrong then. Can you please post the contents of your file and also the path of the file?
 
That sounds wrong then. Can you please post the contents of your file and also the path of the file?
C:\Users\tsuna\Documents\Paradox Interactive\PdxExporter\settings


Code:
@@t@pdxasset i 2 1 0
[standard_previewer]
    animation  s 5  "idle" "moving" "attack" "death" "idle2" 
    material s 6 "PdxMeshRunemaster" "PdxMeshRunemasterColor" "PdxMeshTextureAtlas" "PdxMeshAlphaBlend" "PdxMeshAlphaAdditive" "PdxMeshWater"
    path s 1 "X:/project/tools/pdx_editor/game"
    target_exe s 1 "X:/project/tools/pdx_editor/game/pdx_editor_D.exe"
   
[hearts_of_iron]
    animation s 5  "idle" "moving" "attack" "death" "idle2" 
    material s 2 "PdxMeshHoI4" "PdxMeshAdvancedSnow"
    path s 1 "X:/project/hoi4/game"
    target_exe s 1 "X:/project/hoi4/game/hoi4_D.exe"

[Stellaris]
    animation s 1 "planet_rotation"
    material s 10 "PdxMeshShip" "PdxMeshTerra" "PdxMeshPlanet" "PdxMeshStar" "PdxMeshAtmosphere" "PdxMeshClouds" "PdxMeshFleetTypeIndicator" "PdxMeshAlphaAdditive" "PdxMeshTextureAtlas" "PdxMeshAlphaBlend"
    path s 1 "X:/Steam/steamapps/common/Stellaris"
    target_exe s 1 "X:/Steam/steamapps/common/Stellaris/stellaris.exellaris.exe
 

Attachments

  • clausewitz.txt
    953 bytes · Views: 294
[Stellaris] animation s 1 "planet_rotation" material s 10 "PdxMeshShip" "PdxMeshTerra" "PdxMeshPlanet" "PdxMeshStar" "PdxMeshAtmosphere" "PdxMeshClouds" "PdxMeshFleetTypeIndicator" "PdxMeshAlphaAdditive" "PdxMeshTextureAtlas" "PdxMeshAlphaBlend" path s 1 "X:/Steam/steamapps/common/Stellaris" target_exe s 1 "X:/Steam/steamapps/common/Stellaris/stellaris.exellaris.exe

You should notice that this part looks a little odd... assuming it's not just a forum copy-paste error on your part...

target_exe s 1 "X:/Steam/steamapps/common/Stellaris/stellaris.exellaris.exe

If X is the drive your Steam library is on then this should be...
target_exe s 1 "X:/Steam/steamapps/common/Stellaris/stellaris.exe
 
As ross-g writes, that path to the Stellaris game looks weird, make sure that the HDD/SSD drive label and exe name are correct and try to export.
 
I did exactly as this thread tells me, but when I installed the pdx_exporter there wasnt a "settings" file. So I created one and put the clausewitz.txt in there and also kept where it was originally from. It still doesnt work. It still tells me the "x:... etc" default directory.
 
I did exactly as this thread tells me, but when I installed the pdx_exporter there wasnt a "settings" file. So I created one and put the clausewitz.txt in there and also kept where it was originally from. It still doesnt work. It still tells me the "x:... etc" default directory.
Should be ok, but in what way doesn't it work? It will not change the path automatically, you have to do that yourself to point at the correct project path.
 
Thanks for replying but I have solved it now, I became very confused but I realized I had installed Maya 2017 and then the exporter which obviously does not work. So I removed Maya and install the 2016 version. Then I just simply manually installed the exporter to my Maya 2016. And now it works. In case anyone needs the info on how to solve that its here. Though I doubt it people are as silly as me.

What I do want to know though is how to actually export the .mesh files. I've been trying to export something I made for HOI4, it seems to launch the game where I can load up the mesh, entity or particle but the game doesn't find the models I've made and when I quit there is no .mesh files.
 
Ok I understand. That screenshot is from the editor which you only use to check general things like if it was exported at all and with correct animations/rig functionality. You can disregard that and uncheck the box "launch previewer" in the exporter to not use it.

Basically the things you have to remember when creating an asset is:
1) Does it have the correct shader? For HOI4 that is PdxMeshAdvanced and you want to use a "phong" Maya shader.
2) Is it rigged and animated? If yes, you need to set the animations' start and end time with the animation attribute on the root joint.
3) Have you checked the correct boxes? You have "Export animations", "Export skeleton" and "Export mesh". The right ones need to be checked to get your .mesh or .anim files out.

Then you need to script the asset as a mesh in a .gfx file and an entity in an .asset file, but more on that when you have actually gotten the model exported.
 
Thank you so much for taking the time to reply. I will test that out straight away.

Edit: It worked! I exported something! He looked a bit deformed at the moment but I will play around with it. Thank you very much you are awesome!
 
Last edited:
What are you trying to export? There might be some problem with the mesh I'm thinking. Could you try with just a default cube? Make sure your exporter path is correct too.
 
What are you trying to export? There might be some problem with the mesh I'm thinking. Could you try with just a default cube? Make sure your exporter path is correct too.

Maybe tou are right, exporting simple cube or polygon is not cause hanging.

I have new problem exporting ANY old model imported in Maya:

pdx_export_ui.mel line 453: The -en/-enumName flag is only valid with attributes of type enum.


enumNAME_Flagce988.jpg
 
Alright, good that a normal cube works! That other problem might be because you seem to export to the previewer project, if you try to export to a game project instead such as Stellaris or Hearts of Iron IV, does it work then? Keep in mind that the different projects use different shaders, the shader for Stellaris is "PdxMeshShip" for ships and "PdxMeshPortrait" for portraits, in HOI4 it is "PdxMeshStandard" or "PdxMeshAdvanced".

EDIT: Might actually be what is said here: https://forum.paradoxplaza.com/foru...y-valid-with-attributes-of-type-enum.1051360/
 
Last edited: