Staredit Network > Forums > Modding Assistance > Topic: [Tutorial] Giving a Unit Cloaking
[Tutorial] Giving a Unit Cloaking
Feb 27 2015, 10:48 pm
By: Sand Wraith  

Feb 27 2015, 10:48 pm Sand Wraith Post #1

she*

readme.txt
Quote
by Sand Wraith
tested for StarCraft Brood War 1.16.1.

I wanted to make the Unclean One cloak.
The Unclean One does not originally have cloaking capabilities.
I will add this capability such that it correctly mimics other examples of cloaking.
I will use Cloaking Field (instead of Personal Cloaking) in this example.
I am logging all changes I perform to provide insight into giving a unit the capability of cloaking.
The arbitrary unit in question does not originally have cloaking capabilities.

I have included "1161.fgd." It is necessary to provide Firegraft the memory locations to alter to apply the Exe edits.

logOfChanges.txt
Quote
units.dat ** ** marked Unclean One as "Cloakable." Ensured it was a "Spellcaster."
firegraft ** ** gave defiler + heroes button set "Cloak" and "Decloak" buttons from the Wraith, set to position 3 (for ease of use in this case).
firegraft ** ** Use Tech: Cloaking Field. Added "Or, Current unit is..., Unclean One"
firegraft ** ** Exe Edits: Cloak. All variables regarding "Use Cloaking Field" are set to "Enabled"
starcraft ** ** testing.

Results:
Unclean One cloaks and decloaks on command as desired.
Unclean One decloaks upon burrowing (stops draining energy). Decloak button remains, but resets to Cloak button upon unburrowing.
Upon unburrowing after burrowing while cloaked, Unclean One remains uncloaked.
Unclean One decloaks when running out of energy as desired.

Included is a binary with the changes listed for easy testing and verification.

Attachments:
CloakingUncleanOne_Test.zip
Hits: 3 Size: 293.35kb

Post has been edited 1 time(s), last time on Feb 28 2015, 12:44 am by Sand Wraith.




Feb 27 2015, 11:32 pm SCRuler Post #2



You know what, I can't for the life of me figure out what I'm doing wrong. I did all the steps. It still won't function properly. it doesn't decloak and the energy doesn't drain properly.
I included the files that are key in my mod. They have the setup I have right now including your wonderful plugin. If you take a look, you'll probably see what I got done wrong or am missing.



None.

Feb 28 2015, 12:29 am Sand Wraith Post #3

she*

I opened your NewModAttFG.exe in Firegraft and checked the Cloak requirements.


(Should be Enabled.)


(Should be Enabled.)

It's not consistent.




Feb 28 2015, 12:33 am SCRuler Post #4



I dont have those options on mine... ugh. Do i need a new version of Firegraft? Yours is 1.16 right? Link please?



None.

Feb 28 2015, 12:47 am Sand Wraith Post #5

she*

I'm using 1.16.1 for SCBW but I have an updated *.fgd file for this version.

My bad, I thought I included the test package here, but I forgot to attach it. It is in the OP now. It includes the 1161.fgd file that you will need. Simply replace the 1161.fgd file that you have in your Firegraft directory and you should see it.




Feb 28 2015, 1:00 am SCRuler Post #6



Edit: Ok, I went and downloaded a new version of Firegraft (the 11/15/13 version) and I have the new list items.

Post has been edited 1 time(s), last time on Feb 28 2015, 1:14 am by SCRuler.



None.

Feb 19 2016, 9:31 pm Shyster Post #7



Tried this, didn't do anything for me. :( I am trying to cloak an Arbiter, instead of them using their original cloaking field. I originally wanted to have them cloak while idle, but it may not be possible for all i know.

I compared all the fields between mine and yours, they are all the same and this is not difficult. Yet I have NO button whatsoever...

I changed it from Cloak Mixed (no idea what Mixed meant anyway) to just Cloak and now I have a button again, but it is greyed out. As with all my previous attempts before finding this thread, enabling it with medieval man just gives you a cloak button that always tells you not enough energy and with cheats it does nothing when cilcked.

Your files worked just fine for me so it's obviously my fault, but I'm pretty confused because the instructions were simple.

--

Edit: I even tried it on your files instead of mine, this simply does not work on the Arbiter.

Post has been edited 3 time(s), last time on Feb 19 2016, 10:26 pm by Shyster.



None.

Feb 21 2016, 8:57 pm Sand Wraith Post #8

she*

There might be an issue with the Arbiter being able to cloak. Try using another unit for now. It might also be a conflict with the AI orders of the Arbiter, since I vaguely recall the Arbiter having different idle AI orders than most units.




Feb 21 2016, 9:07 pm SCRuler Post #9



There's something about allowing the arbiter t cloak in the exe edits last I checked



None.

Feb 21 2016, 9:18 pm Pr0nogo Post #10



Arbiter has a cloak AI order which is probably related to why this doesn't work.




Feb 23 2016, 10:38 pm Shyster Post #11



I figured it had something to do with the particular unit. The reason I wanted to add a manual cloak is I removed the cloaking field script from its orders...which actually brings me to another oddity I discovered:

I played a couple extremely long vs. AI games and noticed the script to cloak nearby units somehow came BACK. Weird as hell, can't think of how on earth that happened. Another strange thing is in one of those games, it eventually shut itself off again and no longer cloaked nearby units. My Arbiter is a bit more like a Protoss Tempest so I removed the cloak field order to help balance. But I have no explanation for why the script somehow returned, which is kind of an even bigger problem than not knowing how to cloak it manually - I could live with that and try on another unit as you said.

Quote from SCRuler
There's something about allowing the arbiter t cloak in the exe edits last I checked

I'm not quite sure what I'd be looking for, but I never found anything like you describe. Can you elaborate on this? <3



None.

Feb 24 2016, 2:13 am Pr0nogo Post #12



If you go into FireGraft and check for cloak references in the EXE edits tab, you should eventually find something that might help. Alternatively, check the script manually by using some AI editing programme and see if you can remove it bit by bit. It could be hardcoded but FireGraft can combat that to some degree.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:57 am]
O)FaRTy1billion[MM] -- Ohi
[10:26 pm]
Voyager7456 -- at least he's using protection
[08:37 pm]
NudeRaider -- Dem0n
Dem0n shouted: old AF
relevant as ever tho. And still funny.
[08:14 pm]
lil-Inferno -- tru
[07:48 pm]
Dem0n -- shh XD
[07:41 pm]
Mini Moose 2707 -- Dem0n
Dem0n shouted: poker d is EZ in BW
Don't you still need to bop the last level tho? LMAO
[07:20 pm]
lil-Inferno -- u
[07:09 pm]
Dem0n -- old AF
[06:45 pm]
NudeRaider -- impressive presentation: https://www.youtube.com/watch?v=fpbOEoRrHyU but the end really makes this. I love him. Literally lmao.
Please log in to shout.


Members Online: Roy, O)FaRTy1billion[MM]