Jump to content


Photo

Invisible Unit Problem


  • Please log in to reply
8 replies to this topic

#1 knight errant

knight errant
  • Members
  • 22 posts

Posted 15 December 2016 - 06:09 PM

Hi everyone,

I added an unit to the code with his own model and skeleton, but when i'm in game the unit is invisible.

The Object.ini of the unit (i didn't make it an horde consciously):

 

Spoiler

 

The same when i add a button image or a portrait image (in .tga or in .ddl i haven't understood yet which one i have to use).

Thanks for the help 

 



#2 Lauri

Lauri

    Old man Lauri

  • Hosted
  • 10,436 posts
  • Location:Norway
  • Projects:The 4th Age
  •  The very worst T3A Team Chamber Member

Posted 21 December 2016 - 08:30 AM

Did you add them to your asset.dat?

 

The main difference between .dds and .tga files is that .dds files are smaller in size. So if you release a mod, it's better to have as many textures as possible be .dds to keep the file size smaller.


T4A_Logo_-_article.png

The 4th Age version 0.8 has been released: Link


#3 knight errant

knight errant
  • Members
  • 22 posts

Posted 21 December 2016 - 01:08 PM

Yes i did, but i don't know if the asset.dat is working properly 



#4 knight errant

knight errant
  • Members
  • 22 posts

Posted 14 June 2017 - 10:48 AM

Someone could help me to solve this problem?



#5 malvack

malvack
  • Members
  • 36 posts

Posted 14 June 2017 - 04:47 PM

Well, how did you make the asset.dat file? Have you successfully done an asset.dat file before?



#6 knight errant

knight errant
  • Members
  • 22 posts

Posted 14 June 2017 - 05:05 PM

Well, how did you make the asset.dat file? Have you successfully done an asset.dat file before?

 

Well, yes and no, because when i stole from a mod some hobbit archers and put in my mod, after some troubles, it worked.

But with some unit like porters and this one ain't worked

The same with the portait or button images (of everything that isn't already in the game), so i don't know, personally i think the problem is how to tell the game to "read" the asset.dat in the inis



#7 malvack

malvack
  • Members
  • 36 posts

Posted 15 June 2017 - 02:40 AM

And did you do the model? Or did you get it otherwise?

 

The reason I'm asking, is because when you take models from another mod, sometimes those models are linked to subobjects, which have their own separate dds file(s). So even if you added the main model correctly to the dat file, the unit will be invisible.



#8 knight errant

knight errant
  • Members
  • 22 posts

Posted 15 June 2017 - 06:52 AM

Yes, i get it otherwise
And how do i do to get it work?
And also how i m suppose to save into the dat file the models created by myself?(in particular how to export a model in his skn,skl ecc files)

#9 malvack

malvack
  • Members
  • 36 posts

Posted 15 June 2017 - 04:15 PM

Well, to begin with copy all the files dds files that begin with the same word (i.e., if the main des file is uprhnbanner, copy as well uprhnshield. Then, you need to copy the w3d files and paste them in the w3d folder.

Remember that you can take any models you want as long as is for your PERSONAL mod. If you want to publish your mod, you can't just use other models without their creator's permission.

As for exporting the skl and skn, I can't help you, I have never done it. Ask around though, someone will be able to help you :)

Edited by malvack, 15 June 2017 - 04:16 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users