Staredit Network > Forums > Modding Assistance > Topic: A bunch of questions
A bunch of questions
Aug 18 2011, 10:26 pm
By: ubermctastic  

Aug 18 2011, 10:26 pm ubermctastic Post #1



Ok I'm trying to make a mod that adds stuff to Zerg

1 - I added a new unit that the hydralisk morphs into (right now it's using the defiler animation, but that might change) I want to give it the abiltiy to heal like a medic does. I changed the AI of the unit to match the AI of the medic, and I changed all the Dat requirements to allow the new unit to heal. Everything appears to be working perfectly, when it's next to a damaged unit it moved over to heal it, and then it crashes. Is this because the defiler doesn't have an animation or something else?

2 - I'm trying to make a secondary spell for this unit. I want to use a weapons dat to represent the spell effect. I added a button that lights up when the tech is researched. How do I make it so that the button calls the new weapons dat? Right now it doesn't do anything when I click on it.

3 - I have a new building in the advanced buildings tab using the overmind cocoon. I copied all the information I should need, but when I click on the button, it crashes the game? It also needs to spawn larva. I don't know how to do this.

4 - I have changed the unit Grp of the unit listed in #1+#2 to a new GRP that doesn't have a burrow animation. How would I add a new one?

Post has been edited 6 time(s), last time on Aug 20 2011, 8:28 pm by K_A.



None.

Aug 18 2011, 10:43 pm IskatuMesk Post #2

Lord of the Locker Room

1 - iirc medic heal is heavily mingled with hardcode. It has been years since I last played with Medics though (like 2003) so my info may be deprecated now.
2 - Probably needs a spell animation, and you may also need to check out orders.dat to make sure it's calling the animation. I have never "added" a spell myself because I restricted my additions to stuff the AI would use.
3 - My money is on needing a work animation.

/edit

I may not have read 3 correctly - I thought you meant building stuff from that building. I am retarded.

Clicking on a button and crashing can mean a few different things. It could be the sprite itself crashing (the overlay) or it could be the button crashing. Make sure the FG version you're using supports the BW version you're using as a start. Past that, try changing the building graphic to something else like a hatchery and see if it explodes.

Post has been edited 1 time(s), last time on Aug 19 2011, 1:04 am by IskatuMesk.



Show them your butt, and when you do, slap it so it creates a sound akin to a chorus of screaming spider monkeys flogging a chime with cacti. Only then can you find your destiny at the tip of the shaft.

Aug 18 2011, 11:16 pm Voyager7456 Post #3

Responsible for my own happiness? I can't even be responsible for my own breakfast

About #1 - if I recall correctly the Medic's heal uses a different animation than the standard spellcasting one, you should take a look at the iscript to make sure.



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Aug 19 2011, 6:00 am ubermctastic Post #4



I thoughgt the medic heal thing might be an animation issue... unfortunately I am yet to figrue out how to do iscript. I tried to use Mesks Bible at one point; I'll try to do it again tomorrow.

Here's the issue with my spell. I think it should work just like the other spells in the game (i.e. ensnare has a weapons dat) how is the weapons dat connected to the ensnare button?

As for the Overmind Cocoon - If I'm getting what you are saying the green/red placement box that's supposed to show up when you click on the overmind cocoon doesn't exist, because you don't normally build that building?
As a sidenote, depending on what string I have displayed when you hover the pointer over the button, pressing has different effects. One of them just did nothing at all, the other made the drone ran the land animation before I had even selected a site, and then it just froze and crashed the game.



None.

Aug 19 2011, 7:19 am IskatuMesk Post #5

Lord of the Locker Room

My bible is a horribly outdated, unfinished piece of shit. A better, more reliable introduction to iscript would be the guides I posted on TL and then updated a bit for CC. Unfortunately, as CC is down right now, I'll have to link the outdated TL posts.

http://www.teamliquid.net/forum/viewmessage.php?topic_id=94535
http://www.teamliquid.net/forum/viewmessage.php?topic_id=95115

I do not address advanced topics or anything like heal in these guides, though.

Technically, for the spell, you can use just useweapon through the spell animation and force trigger it, using orders.dat to trigger that animation. That is what I would do as a last resort, anyways.

As for the overlay, what I'm saying is that the sprite of the overmind that appears along with the green boxes may be enough to crash it if the script/graphic are screwed up enough.

If the drone crashes when it starts building it is assuredly animation-related assuming your firegraft stuff is linked up properly. As I said, try changing it to the hatchery and make sure the race and build animation flags are set up properly in units.dat.

Man, it's been too long since I have done any of this stuff. I wish I could be more thorough for you but I simply don't remember anything.



Show them your butt, and when you do, slap it so it creates a sound akin to a chorus of screaming spider monkeys flogging a chime with cacti. Only then can you find your destiny at the tip of the shaft.

Aug 19 2011, 3:50 pm ubermctastic Post #6



Ok so I fixed the Building function, The action set to the button was Morph building, which is what the creep colony uses. The building is built now, and now I'm trying to figure out how to make it spawn larva.



None.

Aug 19 2011, 5:46 pm ubermctastic Post #7



Quote from Voyager7456
About #1 - if I recall correctly the Medic's heal uses a different animation than the standard spellcasting one, you should take a look at the iscript to make sure.

I just tried to make the animation for the defiler. I looked at what iscripts the medic had, and the defiler didn't, and I added things accordingly.
It still crashed, but it's very likely I'm doing something wrong.



None.

Aug 19 2011, 5:50 pm Raitaki Post #8



Quote from name:K_A
Quote from Voyager7456
About #1 - if I recall correctly the Medic's heal uses a different animation than the standard spellcasting one, you should take a look at the iscript to make sure.

I just tried to make the animation for the defiler. I looked at what iscripts the medic had, and the defiler didn't, and I added things accordingly.
It still crashed, but it's very likely I'm doing something wrong.
The defiler doesn't have a casting animation. Try removing the lines with "playfram" in the section for the heal ability in the iscript.



None.

Aug 19 2011, 6:41 pm ubermctastic Post #9



Actually I just figured it out... Another noob mistake. I saved the iscript.bin into my arr file >.<
Defiler now equipped with a heal spell :D



None.

Aug 19 2011, 8:42 pm Voyager7456 Post #10

Responsible for my own happiness? I can't even be responsible for my own breakfast

If I recall correctly, you can make a unit spawn larva by setting its Idle AI orders to "Start Creep Growth" and enabling the appropriate EXE edit in Firegraft.



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Aug 19 2011, 8:54 pm ubermctastic Post #11



I have to have creep growth?



None.

Aug 19 2011, 9:07 pm Pr0nogo Post #12



It didn't used to require that, but after the beta version of StarCraft, Queen's Nests and the like no longer made Larvae and they must have recoded it in such a fashion that only structures with creep growth could produce Larvae.




Aug 19 2011, 9:43 pm ubermctastic Post #13



Wow.... That's just.... really stupid.
Well that works now >.<



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:21 am]
Oh_Man -- Wat precisely is wrong with spellsword now?
[12:19 am]
Oh_Man -- Did martiss' link not work?
[08:11 pm]
Zoan -- Also my KOTK maps all have the nooks and crannies issue when they didn't before; what changed?
[08:11 pm]
Zoan -- Hey why does Spellsword not work on remastered anytmore?
[05:53 pm]
Ahli -- just watch a youtube video summarizing most of it, e.g. Rhykker
[2022-5-22. : 6:04 am]
Oh_Man -- But omg I hate Twitter so much why not use a different platform that actually has a proper word limit for these kind of discussions....... #fail
[2022-5-22. : 6:02 am]
Oh_Man -- Anyone who is interested in ARPG game design this is a must read. Wyatt Cheng from Blizzard went into some juicy gos on the game design decisions of D3 including scrapped mechanics and post launch. Very interesting.
[2022-5-22. : 12:54 am]
NudeRaider -- I'm more impressed by the on-the-fly OCR and translate
[2022-5-21. : 4:26 pm]
Oh_Man -- https://youtu.be/4xURBjHkRCE <- atia world is awesome
Please log in to shout.


Members Online: jun3hong, Roy, Draelren, jjf28