Convert xmf to dae error

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Convert xmf to dae error

Post by |K.O.S.H. » Mon, 22. Feb 21, 09:19

Hi

i tried the following command:

Code: Select all

I:\X4_mod\_converters>XRConvertersMain.exe importxmf I:\X4_mod\src "I:\X4_mod\kosh_dagger\assets\units\size_s\ship_arg_s_fighter_02_data\anim_cockpit-collision.xmf"
but got this error: "No suitable reader found for the file format of file"

The files are valid (copied from the original folder into my playground).
Converting the scene (xml) worked fine.
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

aurumgallente
Posts: 121
Joined: Sun, 14. Jun 20, 14:45
x4

Re: Convert xmf to dae error

Post by aurumgallente » Mon, 22. Feb 21, 22:11

You can't import only 1 xmf file from a scene. Try something like this.

Code: Select all

FOR /R "..\X4_Foundations_copy\extensions\x2shippack\assets" %%f IN (*.xml) do (
  XRConvertersMain.exe importxmf "..\X4_Foundations_copy" "%%f"
  )
pause
Converter has to know everything about a 3D scene it working with. It's quicker to find some help at discord.

|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Re: Convert xmf to dae error

Post by |K.O.S.H. » Wed, 24. Feb 21, 08:55

I dont get the difference.

Code: Select all

XRConvertersMain.exe importxmf "..\X4_Foundations_copy" "%%f"
would exacly do the same i did, but only for all files one after another and would fail for alle files.

Btw. i tried it, before opening this thread. But thx for answering, aynway.


BTW: What is discord?
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

aurumgallente
Posts: 121
Joined: Sun, 14. Jun 20, 14:45
x4

Re: Convert xmf to dae error

Post by aurumgallente » Wed, 24. Feb 21, 10:09

First, converter has to know information from ship's component file so it will not work without shipname.xml file. Second, here is a Egosoft discord server https://discord.gg/J8u6Kdc
You can find some help in X4 modding channel in English, German and Russian language.

|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Re: Convert xmf to dae error

Post by |K.O.S.H. » Wed, 24. Feb 21, 10:50

ok thx lot.

so... converting a (xml) scene will atomatically convert all the included xmf's?
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

aurumgallente
Posts: 121
Joined: Sun, 14. Jun 20, 14:45
x4

Re: Convert xmf to dae error

Post by aurumgallente » Thu, 25. Feb 21, 13:07

Yes. I don't know if converter works correctly when you try to create 3D scene outside of game folder because it relies on folders structure, applies textures to meshes when it can and places xmf parts at right coordinates.

|K.O.S.H.
Posts: 3724
Joined: Fri, 19. Dec 03, 10:36
x3tc

Re: Convert xmf to dae error

Post by |K.O.S.H. » Sat, 27. Feb 21, 13:32

i'm sooo stupid.
I was expecting, that a file for every node is created(liek in X3), but the DAE file (i allready had) includes everything.
i just did not try to import ...
Wing Commander Mod - German Topic
06.07.11 - v1.1 RELEASED!

Post Reply

Return to “X4: Foundations - Scripts and Modding”