Jump to content

Some replaced models don't change alpha


Tekken

Recommended Posts

Posted

Hi I have some models found online that don't change alpha when setElementAlpha(element, 0 or whatever number you want)

Has anyone encountered this? if yes how can I fix this? (I have no experience in Blender nor 3DMax) :)

 

Thank you for your time.

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

  • Moderators
Posted

Are you able to show an example?

Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu

Posted

Do you mean? You want the model? Or an example in game? Cause the scripting part works tried w/o the replacement and worked also tried another model and worked.

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

  • Moderators
Posted

Sure, I can have a look at the faulty model and compare it to the functioning model if you are able to send them. Please include .TXD.

Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu

  • Moderators
Posted

There are no clues in either models that would explain your issue. Please try this test sample:
I've expired the link

Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu

Posted

Works, also I kinda like the model you 'created' in mixing them :) May I know what you done? As I also have a Kevlar with the same issue. Thank you.

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

  • Moderators
Posted (edited)

I just gave it the same texture as the functioning model had. I suspect it's the texture compression type being DXT1 that was the culprit.

If that's the case, please try your old texture in 888 BGRA compression and DXT3 compression. You can change between these compressions yourself using Magic TXD.
https://cdn.discordapp.com/attachments/308955445568077824/781421292648923136/888bgra.txd
https://cdn.discordapp.com/attachments/308955445568077824/781421285674188840/dxt3.txd
https://www.gtagarage.com/mods/show.php?id=27862

Edited by Tut

Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu

  • Moderators
Posted

Yes, revert back to the old version of notworking. The 2 TXD's are for the DFF notworking.

Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu

Posted

Ok now it work, changed the texture name to 'bikerhelmet' and work good, thank you, so all you've done was changing the compression type?

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

  • Moderators
Posted

Yes - had to use DXT3/888BGRA instead of DXT1.

For the record DXT1 compression does not allow transcluency, only opaque and transparent pixels, whereas the 2 former compressions do allow transcluent pixels. Could be why, but I have zero coding knowledge.

  • Thanks 1

Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu

  • Moderators
Posted

@Tekken

Not sure if you already have discovered it, but there is the DxTex tool that can be used to build texture files and compress them with the format you need.

https://wiki.multitheftauto.com/wiki/DxCreateTexture

Download link

 

 

 

 

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

@Tut Hi I just rechecked and doesn't actually work when I try changing compressions type with other texture, but I have found the notworking.dff you gave me is slightly smaller than what I give you, may I know if you made any changes?

Resources I made:

Do not PM me for help with leaked scripts! I WILL NOT HELP YOU!

 

  • Moderators
Posted

I do not recall, it's possible I didn't export vertex normals, as world objects doesn't use those and they usually bump up the DFF size by 20-40%.

Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu

  • Moderators
Posted

I have no idea how the function works, so it's hard to tell.

If you check the guides in my signature, it should help get you started with modeling applications. For any questions on this topic I suggest you ask in the Modeling forum section!

Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...