Page 1 of 1

Cannot use cloaking field?

Posted: Mon May 07, 2012 4:17 pm
by phantommaelstrom
I try to make a vulture that can cloak, I have already done exe hacking, unit.dat, and tech tree hacking to no avail. The unit won't use the Cloaking Field as it's suppose to.

Is there really a way to make it use cloaking field spell or did I miss something?

Here is what I did:

Unit.dat

-Give cloakable and speelcaster attribute.

FG

-Give Cloaking Field button
-Dat requirements... allow the unit to use spell.
-Exe edits... Energy decrease-Use cloaking field set to enabled

Re: Cannot use cloaking field?

Posted: Tue May 08, 2012 2:53 pm
by Thalraxal
It's been a long time, but I remember someone else bringing this very same problem up.

If I recall correctly, cloaking as an active power (like Ghosts and Wraiths) is actually hard coded. The Cloakable flag, despite its claims, doesn't actually let a unit cloak.

Re: Cannot use cloaking field?

Posted: Tue May 08, 2012 3:06 pm
by IskatuMesk
Yes, cloaking is very hardcodey. The cloaking fag really just seems to look for some internal id (much like a lot of things in d2) whether to disable it for very specific units or not. You'll need to modify a unit that already has cloaking.

Re: Cannot use cloaking field?

Posted: Tue May 08, 2012 5:48 pm
by phantommaelstrom
Sigh... why do I always have to bump into hardcoded stuff...

One more question, if you guys don't mind... How do I create a command button of an existing unit? I mean, the graphical buttons. I believe it's using a different palette. Is there an easy way to convert unit grps into command buttons?

Thanks in advance...

Re: Cannot use cloaking field?

Posted: Tue May 08, 2012 6:07 pm
by IskatuMesk
It is using a different palette I think, yes. You'll want to look at the cmdicons.grp or whatever it's called.

Re: Cannot use cloaking field?

Posted: Tue May 08, 2012 10:56 pm
by phantommaelstrom
I guess I may be needing JASC for this edit. The unit icon becomes a mess when converted to command buttons.

Re: Cannot use cloaking field?

Posted: Wed May 09, 2012 6:16 am
by mark_009_vn
IskatuMesk wrote:The cloaking fag really just seems to look for some internal id (much like a lot of things in d2) whether to disable it for very specific units or not.
Oh yeah? Then why do my Ghosts keep on cloaking when used by the AI? I remembered changing everything I could and still the AI can't resist cloaking his 30 damage Marauders and throws nukes everywhere. It was hilarious except it's victim was MEEEEEEEEEEEEEE.

On a side note, I just noticed your blog post jumps from 42 to 43.

Re: Cannot use cloaking field?

Posted: Wed May 09, 2012 9:32 pm
by IskatuMesk
The AI reads requirements, not buttons.

Re: Cannot use cloaking field?

Posted: Thu May 10, 2012 7:42 am
by phantommaelstrom
It's actually a hardcoded issue. I see a Kai ship cloak in a Gundam Century mod.

Btw, I have tried modifying a cloakable unit as you suggested... and it worked!I manage to made a vulture cloak... Thanks guys...