Staredit Network

Staredit Network -> Concepts -> Changing Iscript Pointers
Report, edit, etc...Posted by SuperToast on 2005-08-05 at 17:17:13
In another thread, deathknight posed the possibility to change a units iscript action; cast spell, attack, move etc..., to refrence a different iscript entry. I was wonering if anyone could help me know were to change that or how to go about doing that.

I'm attempting to give a spider mine a spell script and have been unable to figure out anyway to do that with the the triggers.

//added
I want to change the spider mine's iscript pointer to the offset of the corsairs spell animation, which starts at 35614.

I've tried doing some of my own memory sniffing but have been unable to come up with anything for the iscript.bin file. So I'm thinking it may not be possible...
Report, edit, etc...Posted by Deathknight on 2005-08-05 at 17:29:30
If you open up Arsenal III, go to the Images editor, you'll see there's "IScript ID:". I would think that changing that number changes the script used.

By IScript Pointer I mean Header ID Tag, in ICE.

The spider mine only has 11 frames. The corsair's ground and air attacks read from frames beyond 11, which would naturally crash the game. It also would give the unit special overlays that would make it look unusual.
Report, edit, etc...Posted by SuperToast on 2005-08-05 at 17:43:38
Yah, that was what I've been looking at. Is it only possible to change that, or could I actually change something in just the spider mines iscript entry to change it's special ability pointer to the corsair's special ability offest? I'm pretty sure the corsairs entire animation wouldn't work for the spider mine, but what I'm trying to do is change a specific part of the iscript. For now I'm simply assuming that the iscript.bin file is outside the list of memory locations that can be patched. Hopefully that isn't the case though.

//added
allright, after some testing with mods, I found that the memory value I want to edit is at
01C2778C
it is a four byte interger and I want to set it too
35614

Am I able to do that, or is it out of range?
Report, edit, etc...Posted by BSTRhino on 2005-08-05 at 19:29:34
I ran that through my program here and it said it was out of range. You're talking about unit 504144, and that's greater than the 65535 limit.

I was thinking about a similar problem all night last night, and I came to the conclusion that I don't think there is a way to switch part of an iscript header just from what we have. You'll have to find a way of doing what you want to without changing the iscript header. Why do you want to give the spider mine a spellcasting animation anyway? Are you giving another unit that can cast spells the spider mine flingy?
Report, edit, etc...Posted by SuperToast on 2005-08-05 at 19:59:16
Yes, I was changing the defiler sprite to a spider mine. The spider mine sprite worked for everything besides the spellcasting (dark swarm), and I was trying to find a way to change that.

Using a mod I was able to change it so it had the corsair spellcasting animation which worked, but I couldn't get a trigger to do it.
Report, edit, etc...Posted by BSTRhino on 2005-08-05 at 20:09:51
Yeah of course, I know what you mean. I'll think about that one, because I think that's an interesting question. I don't think I'll be able to find a solution though unfortunately, but I will think about it.
Report, edit, etc...Posted by SuperToast on 2005-08-05 at 20:47:54
Thanks for the thought, but as far as I can tell it is impossible to do with death counters because it is (as far as I know) out of the range. I'm going to try some other things though to see if I can make it work.
Report, edit, etc...Posted by Deathknight on 2005-08-05 at 21:27:59
You can't change specific scripts, only the script ID pointers from images. You'd need to find an ID that suits your cause. One that suits the defiler but works with the spider mine.
Report, edit, etc...Posted by SuperToast on 2005-08-05 at 22:29:07
So what your saying Deathknight, is that it is impossible to change the part of the spider mine's iscript file to change it's spell animation from pointing to an offset of 0 to an offset like 35614? I'm not exactly sure if that's what you mean, but I've come to assume that this is the case. You are limited to only editing parts of the images.dat iscript ID, which would give the unit a completly different iscipt entry instead of simply moding a single part of their own iscript entry.
Report, edit, etc...Posted by Deathknight on 2005-08-05 at 22:43:51
You can't create its own iscript entry, but you can make the image point to a different one. Units are not iscript-based, images are. The units just point to a flingy, which point to a sprite, which points to an image, which points to an iscript entry.
Report, edit, etc...Posted by BSTRhino on 2005-08-05 at 22:49:46
lol, I can't remember the last time I met someone who understood that too, I always felt quite alone with that in the modding assistance forum.
Report, edit, etc...Posted by SuperToast on 2005-08-05 at 23:10:57
Okay, my bad on the order of how things are connected, I'll try and remember that for the future.

I'm not trying to create it's own iscript entry, I'm trying to change one part of the existing one. In the spider mine iscript in ICE (I wasn't using IceCC), there is a box listed Special Ability?; in the corsair's iscript entry, that box lists the number 35614 which is the offset in the iscript.bin file for the animation used when a corsair uses a spell. Am I correct in that order of things there?

Now, when I edited and moded the spider mine's iscript entry to have the number 35614 in it's Special Ability box, the spider mine then used the animation script at the offset 35614 for doing the spell, dark swarm. It not only casted the spell, but as a side effect it played the sound for casting the disruption web.

What I was trying to do was edit part of the iscript.bin file in starcraft's memory to change that one part of the spider mine's iscript entry to go to the offset 35614. I have found the memory spot to be at 01C2778C. After finding that, I then found out that it was out of the range of the death triggers.

I'm sorry if I wasn't making myself clear to you about what I was trying to do and how I was trying to do it. The end result still is that I can not change what I wanted to change.
Report, edit, etc...Posted by Deathknight on 2005-08-05 at 23:13:42
Iscript.bin is not in range to edit. Can't create/edit any scripts.
Next Page (1)