I am currently working on a custom tie fighter unit from star wars. I imported it into dr2 meshviewer and was messing around with the live shadow options. The meshviewer made a custom tga shadow for the tie fighter. However, I build the unit in game it doesnt have the shaodw.
Does anyone have any idea how to fix it? Also for some reason the tie fighter does not drop any blobs when killed despite having the create resource blob vehicle 1. I copied tmost lines from the chopper configs so I am lost on this one.
Having issues with custom shadows
- FlamingC64
- Machine Gunner
- Posts: 24
- Joined: Mon Jan 17, 2022 9:40 am
Re: Having issues with custom shadows
I'm not too familiar with how the live shadow works, if it even works at all in Army Men or even ingame, so I'd not be able to help you much there. However, I know that if the object uses a generic shadow, then you can assign it to use a specific shadow texture instead of the default circular one. This can be done by naming the shadow texture the same name as your .god file, then appending '-shadow' to the end of the filename. You can also simply explicitly define what shadow texture the unit will use through its .cfg file.
In this case, there isn't an existing texture for "army_shrap-shadow.tga" so instead Shrap is told to reuse the grunt's shadow texture.
As for the plastic blob, I am not sure why it wouldn't work. I'd have to see the code block to be sure. But some things to keep in mind are:
Code: Select all
MapObj()
{
GodFile("army_shrap.god");
ShadowFile("army_grunt-shadow.tga");
RotateShadow(0); // default is 1
As for the plastic blob, I am not sure why it wouldn't work. I'd have to see the code block to be sure. But some things to keep in mind are:
- Plastic Blobs cannot be generated above water at all. If your unit dies on a cell with water, even if that water is completely obscured underground, no blob will be created.
- A unit needs to have a purchasing price in order to generate a blob. Blobs are generated with 50% of the unit's purchasing price. This is true even if the unit cannot be purchased manually, such as the case with Paratroopers.
- The vanilla plastic blobs are all "Plastic" based resources. This means that any unit that costs electricity cannot contribute to them. For example, a DumDum when killed drops a plastic blob containing only 25 plastic, while the 150 electricity is ignored.
I may not make the best maps, or be the best player, but I put a lot of time, effort, and care into my stuff. That counts for something, right? No.
"Can we order a pizza?"
GameRanger ID: 913974
"Can we order a pizza?"
GameRanger ID: 913974
- FlamingC64
- Machine Gunner
- Posts: 24
- Joined: Mon Jan 17, 2022 9:40 am
Re: Having issues with custom shadows
Thank you Tommy, this has helped me. I previously had the plastic set to 1 and build speed to 1 so I could test things easier. I set the plastic to 50 and the blob finally spawned when the unit was killed.
I also fixed the shadow issue. I guess I didnt give it a shadow before or something but I gave it a generic one and it worked.
I also fixed the shadow issue. I guess I didnt give it a shadow before or something but I gave it a generic one and it worked.
Who is online
Users browsing this forum: No registered users and 0 guests