Cannot use cloaking field?

Post Reply
phantommaelstrom
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 33
Joined: Tue Apr 24, 2012 9:29 pm

Cannot use cloaking field?

Post 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
User avatar
Thalraxal
Protoss Stargate Concierge
Protoss Stargate Concierge
Posts: 1212
Joined: Sun Aug 12, 2007 12:42 pm
Location: Ontario, Canada

Re: Cannot use cloaking field?

Post 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.
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Cannot use cloaking field?

Post 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.
Gameproc
Though we stand alone, stand we shall.
phantommaelstrom
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 33
Joined: Tue Apr 24, 2012 9:29 pm

Re: Cannot use cloaking field?

Post 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...
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Cannot use cloaking field?

Post 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.
Gameproc
Though we stand alone, stand we shall.
phantommaelstrom
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 33
Joined: Tue Apr 24, 2012 9:29 pm

Re: Cannot use cloaking field?

Post by phantommaelstrom »

I guess I may be needing JASC for this edit. The unit icon becomes a mess when converted to command buttons.
User avatar
mark_009_vn
Zerg Drone Masseur
Zerg Drone Masseur
Posts: 356
Joined: Fri Nov 04, 2011 5:56 am
Location: [[THIS USER, HE IS A CHAR]]

Re: Cannot use cloaking field?

Post 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.
Image

"I'm begging you, let me work!" - Osamu Tezuka
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Cannot use cloaking field?

Post by IskatuMesk »

The AI reads requirements, not buttons.
Gameproc
Though we stand alone, stand we shall.
phantommaelstrom
Terran Barracks Laundry Master
Terran Barracks Laundry Master
Posts: 33
Joined: Tue Apr 24, 2012 9:29 pm

Re: Cannot use cloaking field?

Post 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...
Post Reply