[Solved | Résolu] Utiliser des items customs

Forum d'entraide au sujet de Maniaplanet et ses jeux

Moderator: French Moderator

User avatar
TMarc
Posts: 14322
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Utiliser des items customs

Post by TMarc » 19 Jun 2018, 22:16

Bon, j'ai rapporté la page avec les mauvais liens.

Une des pages vient d'être mise à jour, regarde:
https://doc.maniaplanet.com/nadeo-impor ... ng-started

Tu télécharges le fichier http://files.maniaplanet.com/tools/Nade ... _05_05.zip et tu l'extrais dans tes documents Maniaplanet.

Tu as encore le NadeoImporter récent?

Dans le zip NadeoImporterSamples il y a un fichier bat à exécuter depuis le répertoire de Maniaplanet.exe.
Il marche pour moi:

Code: Select all

PS D:\Games\ManiaPlanet> .\NadeoImporter_ImportSamples.bat

D:\Games\ManiaPlanet>NadeoImporter.exe Mesh Items/Samples/DynamicObjects/Meshes/*.fbx
NadeoImporter 2017-05-18_12_54
Created :user:\Items\Samples\DynamicObjects\Meshes\SampleArmor.Mesh.gbx
Compressing BC1_DXT1  256x 256 Armor_D.tga
Created :user:\Items\Samples\DynamicObjects\Meshes\Texture\Armor_D.dds
Compressing BC3_DXT5  256x 256 Armor_S.tga
Created :user:\Items\Samples\DynamicObjects\Meshes\Texture\Armor_S.dds
Compressing BC5yx  256x 256 Armor_N.tga
Created :user:\Items\Samples\DynamicObjects\Meshes\Texture\Armor_N.dds
Compressing BC1_DXT1  256x 256 Armor_I.tga
Created :user:\Items\Samples\DynamicObjects\Meshes\Texture\Armor_I.dds

D:\Games\ManiaPlanet>NadeoImporter.exe Item Items/Samples/DynamicObjects/*.item.xml
NadeoImporter 2017-05-18_12_54
Created :user:\Items\Samples\DynamicObjects\SampleArmor.Item.gbx

D:\Games\ManiaPlanet>NadeoImporter.exe Mesh Items/Samples/StaticObjects/Meshes/*.FBX
NadeoImporter 2017-05-18_12_54
Created :user:\Items\Samples\StaticObjects\Meshes\Block_CanyonTurboDecal.Mesh.gbx
Created :user:\Items\Samples\StaticObjects\Meshes\Block_CanyonTurboDecal.Shape.gbx
Created :user:\Items\Samples\StaticObjects\Meshes\Block_Checkers.Mesh.gbx
Compressing BC1_DXT1   64x  64 Checkers_D.tga
Created :user:\Items\Samples\StaticObjects\Textures\Checkers_D.dds
Created :user:\Items\Samples\StaticObjects\Meshes\Block_Checkers.Shape.gbx
Created :user:\Items\Samples\StaticObjects\Meshes\Block_CustomTexture.Mesh.gbx
Compressing BC1_DXT1   64x  64 ADiffuse.tga
Created :user:\Items\Samples\StaticObjects\Textures\ADiffuse.dds
Compressing BC3_DXT5  256x 256 ASpecular.tga
Created :user:\Items\Samples\StaticObjects\Textures\ASpecular.dds
Compressing BC5yx  256x 256 ANormal.tga
Created :user:\Items\Samples\StaticObjects\Textures\ANormal.dds
Created :user:\Items\Samples\StaticObjects\Meshes\Block_CustomTexture.Shape.gbx
Created :user:\Items\Samples\StaticObjects\Meshes\Block_Lights.Mesh.gbx
Compressing BC1_DXT1   64x  64 Checkers_D.tga
Created :user:\Items\Samples\StaticObjects\Textures\Checkers_D.dds
Created :user:\Items\Samples\StaticObjects\Meshes\Block_Lights.Shape.gbx
Created :user:\Items\Samples\StaticObjects\Meshes\Block_Lod.Mesh.gbx
Compressing BC1_DXT1   64x  64 Checkers_D.tga
Created :user:\Items\Samples\StaticObjects\Textures\Checkers_D.dds
Created :user:\Items\Samples\StaticObjects\Meshes\Block_Lod.Shape.gbx
Created :user:\Items\Samples\StaticObjects\Meshes\Block_ReduceTexture.Mesh.gbx
Compressing BC1_DXT1   64x  64 Checkers_Big_D.tga
Created :user:\Items\Samples\StaticObjects\Textures\Checkers_Big_D.dds
Created :user:\Items\Samples\StaticObjects\Meshes\Block_ReduceTexture.Shape.gbx
Created :user:\Items\Samples\StaticObjects\Meshes\Block_StormBaseGround.Mesh.gbx
Created :user:\Items\Samples\StaticObjects\Meshes\Block_StormBaseGround.Shape.gbx

D:\Games\ManiaPlanet>NadeoImporter.exe Item Items/Samples/StaticObjects/*.item.xml
NadeoImporter 2017-05-18_12_54
Created :user:\Items\Samples\StaticObjects\Block_CanyonTurboDecal.Item.gbx
Created :user:\Items\Samples\StaticObjects\Block_Checkers.Item.gbx
Created :user:\Items\Samples\StaticObjects\Block_CustomTexture.Item.gbx
Created :user:\Items\Samples\StaticObjects\Block_Lights.Item.gbx
Created :user:\Items\Samples\StaticObjects\Block_Lod.Item.gbx
Created :user:\Items\Samples\StaticObjects\Block_ReduceTexture.Item.gbx
Created :user:\Items\Samples\StaticObjects\Block_StormBaseGround.Item.gbx

D:\Games\ManiaPlanet>NadeoImporter.exe Mesh Items/Samples/StaticObjects_Waypoints/Meshes/*.FBX
NadeoImporter 2017-05-18_12_54
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\Checkpoint.Mesh.gbx
Compressing BC1_DXT1 1024x1024 Checkpoint_D.tga
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\Texture\Checkpoint_D.dds
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\Checkpoint.Shape.gbx
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\CheckpointTrigger.Shape.gbx
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\Finish.Mesh.gbx
Compressing BC1_DXT1 1024x1024 Finish_D.tga
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\Texture\Finish_D.dds
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\Finish.Shape.gbx
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\FinishTrigger.Shape.gbx
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\Start.Mesh.gbx
Compressing BC1_DXT1 1024x1024 Start_D.tga
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\Texture\Start_D.dds
Created :user:\Items\Samples\StaticObjects_Waypoints\Meshes\Start.Shape.gbx

D:\Games\ManiaPlanet>NadeoImporter.exe Item Items/Samples/StaticObjects_Waypoints/*.item.xml
NadeoImporter 2017-05-18_12_54
Created :user:\Items\Samples\StaticObjects_Waypoints\Checkpoint.Item.gbx
Created :user:\Items\Samples\StaticObjects_Waypoints\Finish.Item.gbx
Created :user:\Items\Samples\StaticObjects_Waypoints\Start.Item.gbx

D:\Games\ManiaPlanet>NadeoImporter.exe CharSkin Skins/Models/ArenaPlayer/SintelSample
NadeoImporter 2017-05-18_12_54
Compressing BC1_DXT1  512x1024 sintel_D.tga
Created :temp:\MemoryTemp\SintelSample.zip\sintel_D.dds
Compressing BC3_DXT5  512x1024 sintel_S.tga
Created :temp:\MemoryTemp\SintelSample.zip\sintel_S.dds
Compressing BC5yx  512x1024 sintel_N.tga
Created :temp:\MemoryTemp\SintelSample.zip\sintel_N.dds
Compressing BC4  512x1024 sintel_E.tga
Created :temp:\MemoryTemp\SintelSample.zip\sintel_E.dds
Compressing BC1_DXT1  512x1024 sintel_M.tga
Created :temp:\MemoryTemp\SintelSample.zip\sintel_M.dds
Compressing BC1_DXT1  128x 128 Icon.tga
Created :temp:\MemoryTemp\SintelSample.zip\Icon.dds
Created :user:\Skins\Models\ArenaPlayer\SintelSample.zip

D:\Games\ManiaPlanet>NadeoImporter.exe CharSkin Skins/Models/Minion/ToadSample
NadeoImporter 2017-05-18_12_54
Compressing BC1_DXT1 1024x1024 Body_D.tga
Created :temp:\MemoryTemp\ToadSample.zip\Body_D.dds
Compressing BC3_DXT5 1024x1024 Body_S.tga
Created :temp:\MemoryTemp\ToadSample.zip\Body_S.dds
Compressing BC5yx 1024x1024 Body_N.tga
Created :temp:\MemoryTemp\ToadSample.zip\Body_N.dds
Compressing BC4 1024x1024 Body_E.tga
Created :temp:\MemoryTemp\ToadSample.zip\Body_E.dds
Compressing BC1_DXT1  128x 128 Body_M.tga
Created :temp:\MemoryTemp\ToadSample.zip\Body_M.dds
Compressing BC1_DXT1  128x 128 Icon.tga
Created :temp:\MemoryTemp\ToadSample.zip\Icon.dds
Created :user:\Skins\Models\Minion\ToadSample.zip

D:\Games\ManiaPlanet>NadeoImporter.exe CharSkin Skins/Models/StormManBig/A
NadeoImporter 2017-05-18_12_54
Compressing BC1_DXT1   32x  16 Body_D.tga
Created :temp:\MemoryTemp\A.zip\Body_D.dds
Compressing BC3_DXT5   32x  16 Body_S.tga
Created :temp:\MemoryTemp\A.zip\Body_S.dds
Compressing BC5yx   32x  16 Body_N.tga
Created :temp:\MemoryTemp\A.zip\Body_N.dds
Compressing BC4   32x  16 Body_E.tga
Created :temp:\MemoryTemp\A.zip\Body_E.dds
Compressing BC1_DXT1   32x  16 Body_M.tga
Created :temp:\MemoryTemp\A.zip\Body_M.dds
Compressing BC1_DXT1  128x 128 Icon.tga
Created :temp:\MemoryTemp\A.zip\Icon.dds
Created :user:\Skins\Models\StormManBig\A.zip

D:\Games\ManiaPlanet>NadeoImporter.exe Item Items/Samples/Characters/*.item.xml
NadeoImporter 2017-05-18_12_54
Created :user:\Items\Samples\Characters\SintelSample.Item.gbx
Created :user:\Items\Samples\Characters\StormManBig.Item.gbx
Created :user:\Items\Samples\Characters\ToadSample.Item.gbx
PS D:\Games\ManiaPlanet>
maniaplanet forum global moderator

Link list with FAQ, Support, Wiki, Tutorials, Community activities, and much more.

System specs: Intel i7-970 12GB RAM, nVidia GTX 970, Creative SB X-Fi, 2xSSD

Elikill58
Posts: 15
Joined: 11 Jun 2018, 19:38

Re: Utiliser des items customs

Post by Elikill58 » 20 Jun 2018, 08:48

Bonjour,

Malheureusement, je dois être maudit :
https://image.noelshack.com/fichiers/20 ... import.png :/

User avatar
TMarc
Posts: 14322
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Utiliser des items customs

Post by TMarc » 21 Jun 2018, 22:31

Merci de ne pas bump, c'est inutile.

Tu n'as pas extrait le zip dans le bon répertoire.
C'est dans c:\utilisateurs\tonlogin\Maniaplanet qu'il faut l'extraire, parce que le Zip contient déjà un répertoire Items.
maniaplanet forum global moderator

Link list with FAQ, Support, Wiki, Tutorials, Community activities, and much more.

System specs: Intel i7-970 12GB RAM, nVidia GTX 970, Creative SB X-Fi, 2xSSD

Elikill58
Posts: 15
Joined: 11 Jun 2018, 19:38

Re: Utiliser des items customs

Post by Elikill58 » 22 Jun 2018, 16:44

Bonjour,

D'accord.
Juste :
La commande: https://image.noelshack.com/fichiers/20 ... 62-cmd.png
Dossier utilisateur (normalement): https://image.noelshack.com/fichiers/20 ... -files.png
Dossier ou il trouve pas les fichiers: https://image.noelshack.com/fichiers/20 ... folder.png

User avatar
TMarc
Posts: 14322
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Utiliser des items customs

Post by TMarc » 23 Jun 2018, 17:17

Désolé, c'est mon erreur. :oops:

Le fichier NadeoImporterSamples_2017_05_05.zip doit être extrait dans le répertoire Work.

Les object générés seront placés automatiquement dans le répertoire Items.
maniaplanet forum global moderator

Link list with FAQ, Support, Wiki, Tutorials, Community activities, and much more.

System specs: Intel i7-970 12GB RAM, nVidia GTX 970, Creative SB X-Fi, 2xSSD

Elikill58
Posts: 15
Joined: 11 Jun 2018, 19:38

Re: Utiliser des items customs

Post by Elikill58 » 23 Jun 2018, 22:11

Bonjour,

Je viens de changer la destination de l’utilisateur, c'était bizarre. Maintenant ça fonctionne pour les exemples. Je laisse le sujet en non résolu en attendant que j'arrive a faire le mien.

Elikill58
Posts: 15
Joined: 11 Jun 2018, 19:38

Re: Utiliser des items customs

Post by Elikill58 » 26 Jun 2018, 10:48

Bonjour,

Désolé du double post :oops: :oops: mais j'ai un petit problème.

Une fois, ça me dit "Material not found in library : Material" alors que la fois d'avant ça fonctionnait. C'était lors de la commande: "NadeoImporter.exe Mesh Items\my_item\Meshes\*.fbx". Voici le my_item.MeshParams.xml :

Code: Select all

<MeshParams Scale="1" MeshType="Static">
	<Materials>
		<Material Name="A" Model="TDSN" BaseTexture="../Textures/Checkers"  PhysicsId="TechGround" />
	</Materials>
</MeshParams>
Il faut ajouter un truc sur blender ? Si oui, comment ?

User avatar
angry_duck
Nadeo
Nadeo
Posts: 168
Joined: 14 Oct 2011, 12:17

Re: Utiliser des items customs

Post by angry_duck » 29 Jun 2018, 12:39

Bonjour,

Le chemin BaseTexture est relatif au fichier .MeshParams.xml.

Donc ici, si le fichier Items\my_item\Meshes\my_item.MeshParams.xml contient :

Code: Select all

<Material Name="A" Model="TDSN" BaseTexture="../Textures/Checkers" PhysicsId="TechGround" />
cela signifie que ça va chercher un fichier Items\my_item\Textures\Checkers_D.tga (et s'ils existent : Checkers_S.tga et Checkers_N.tga).

Est-ce que ce fichier est bien présent à cet emplacement précis ?

Ou est-ce que l'intention était d'utiliser la texture ManiaPlanet\Work\Items\Samples\StaticObjects\Textures\Checkers_D.tga des samples installés depuis la documentation du NadeoImporter ?

Dans ce cas il vaut mieux mettre un chemin "absolu", c'est-à-dire en commençant par un "/" (le chemin est alors interprété comme partant du dossier Work) :

Code: Select all

<Material Name="A" Model="TDSN" BaseTexture="/Items/Samples/StaticObjects/Textures/Checkers" PhysicsId="TechGround" />
Est-ce que cela corrige le problème ?
angry_duck

Elikill58
Posts: 15
Joined: 11 Jun 2018, 19:38

Re: Utiliser des items customs

Post by Elikill58 » 29 Jun 2018, 16:47

Bonjour,

L'item que je créé a pour nom "truc" (oui c'est un nom nul).
Mon but est d'avoir les textures dans Items/truc/Textures/ (y'a truc_D.tga et truc_Big_D.tga).
Le problème c'est que ça trouve même pas le Material (ça: https://image.noelshack.com/fichiers/20 ... 212-pb.png).

User avatar
angry_duck
Nadeo
Nadeo
Posts: 168
Joined: 14 Oct 2011, 12:17

Re: Utiliser des items customs

Post by angry_duck » 04 Jul 2018, 10:08

Bonjour,

Quel est le contenu exact du fichier Work\Items\truc\Meshes\truc.MeshParams.xml ?

L'erreur "Material not found in library : Material" donne l'impression qu'il est écrit Model="Material" au lieu de Model="TDSN"...

Aussi, est-ce que le fichier NadeoImporterMaterialLib.txt est bien présent à côté de NadeoImporter.exe (typiquement dans C:\Program Files (x86)\ManiaPlanet) ?

Est-ce que tous les matériaux utilisés dans le fichier Blender originel apparaissent bien dans truc.MeshParams.xml, avec exactement les mêmes noms que dans Blender ?
angry_duck

Post Reply

Return to “Support”

Who is online

Users browsing this forum: No registered users and 1 guest