You must be logged in to post messages.
Please login or register

Modding and Scripting
Moderated by Yeebaagooon, TAG

Hop to:    
Welcome! You are not logged in. Please Login or Register.2 replies
Age of Mythology Heaven » Forums » Modding and Scripting » ReplaceTexture doesn't Replace the alpha of the first ReplaceTexture
Bottom
Topic Subject:ReplaceTexture doesn't Replace the alpha of the first ReplaceTexture
WinterGod
Mortal
posted 13 September 2019 08:58 PM EDT (US)         

I am having a really bizarre problem with Replace texture.

My animfile doesn't replace the alpha texture of the first item, but replaces the texture of all the other items that come after that the first one.

No matter how many times I change the anim file structure, the first item always looks like a very blocky tree, but all the other trees look fine.

I think that it has something to do with way anim file works, but I have no idea how to fix it.

I honestly tried everything, I have to admit defeat.

Here's the code:

//==============================================================================
anim Idle
{
SetSelector
{
VariationLogic
set hotspot
{
version
{
Visual World G Oak D
ReplaceTexture World G Oak mapB/cherry blossom
ReplaceTexture World G Oak Decal map/pink decal
}
}
set hotspot
{
version
{
Visual World G Oak E
ReplaceTexture World G Oak mapB/cherry blossom
ReplaceTexture World G Oak Decal map/pink decal map
}
}
set hotspot
{
version
{
Visual World G Oak F
ReplaceTexture World G Oak mapB/cherry blossom
ReplaceTexture World G Oak Decal map/pink decal map
}
}
}
}


If you know how to fix this issue please help me.
AuthorReplies:
XLightningStormL
Mortal
(id: TheBronyKing11)
posted 27 September 2019 01:01 AM EDT (US)     1 / 2       
ReplaceTexture doesn't work well with 4-bit alphas, sorry.

You'll have to change the texture material in 3DS Max.

Lead Designer and Producer of Age of Mythology's biggest mod compilation: http://aom.heavengames.com/downloads/showfile.php?fileid=11038

[This message has been edited by XLightningStormL (edited 09-27-2019 @ 01:01 AM).]

WinterGod
Mortal
posted 27 September 2019 03:15 PM EDT (US)     2 / 2       

Thanks for the information. I should try to sponsor someone for my AOM dreams.

I really wish that 3DS Max wasn't so expensive. Since I am not a student anymore, I can't get the student discount anymore. That stuff is super expansive to me, :'(
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Mythology Heaven | HeavenGames