Iscripts questions.

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

Iscripts questions.

Post by mark_009_vn »

So... I'm making a mod.... Running into technical problems with some custom graphics (all are handmade by me).

I've just added some explosion craters, basically put when a Seige tank's round hits the ground it'll leave a mark...

Image

The problem is that I'd want some varying crater graphics depending on tilesets (because a dirt crater seen above would look weird on Installation and Space maps). It has come to my attention that the playframtile command has something to do with this, but I've no luck on searching on how to use this command, all I know is that it requires a LO file...

So... anybody knows how playframtile works?



Second is my new smoke graphics. I have a sprite that would spawn a tower of smoke from a burning building (or anything burning in general). The problem is sometimes it could be a bit wacky, units would sometimes appear on top of the smoke sprites breaking the immersion of height.... This is pretty detrimenting bug.

Image

I've no idea why it's doing this, I've tried spawning the smoke on the highest elevation level using "highsprol" but to no avail.

Also, can someone explains to my how transparency works for the ofire palette? The weird black outlines on my smoke sprites are bothering me...



One last thing to ask, do followmaingraphic works on death animations? I'm trying to spawn a death remnant sprite when a unit is dead (in this case, tanks, goli, and vultures), but no matter what I do it seems the death remnant sprite will not follow the same frame as the unit upon death. I'm guesting this is just Starcraft limitations...

Image

I tried to hack job the death animation so that the unit sprite will stay after death, but it doesn't seems like the sprite want to stay for very long since the engine removes them fairy quickly...

Image
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: Iscripts questions.

Post by IskatuMesk »

Try image overlays instead of sprite overlays.

I'm sure back in AO I had definitive answers to many of these questions because they sound very familiar, however I have forgotten virtually everything about details like that. Sorry.
Gameproc
Though we stand alone, stand we shall.
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: Iscripts questions.

Post by mark_009_vn »

IskatuMesk wrote:Try image overlays instead of sprite overlays.
I'm not even sure what's the difference between sprol and imgol, seems to be identical IMO. In any case, it doesn't seems to help...

I've just did more testing, apparently this bug is because the smoke sprites are piling up on each other, so a smoke sprite with higher transparency will sometimes overwrite the smoke sprite with lower transparency, causing this bug... Long story short, starcraft is being gay...
I'm sure back in AO I had definitive answers to many of these questions because they sound very familiar, however I have forgotten virtually everything about details like that. Sorry.
Never knew my ace in the hole can be so worthless... :P
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: Iscripts questions.

Post by IskatuMesk »

sprol relies on sprites.dat entries and acts independently of the source spawning it in how it inherits positioning and frames.

imgol uses images.dat entries and can have its own frames but will generally always follow the parent in both position and frame/header changes.
Gameproc
Though we stand alone, stand we shall.
User avatar
Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6539
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet

Re: Iscripts questions.

Post by Lavarinth »

I wouldn't worry too much about the black outlines, I think we're all a bit used to them by these days.

But good luck on the rest! These things constantly baffled me. (Anything past StarDraft aside BIN Editing and SMK files.)
- - Lavarinth
Campaign Creations Administrator
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: Iscripts questions.

Post by IskatuMesk »

Iscript is very much a trial and error thing. The way overlays work is particularly wacky and has all sorts of stupid, unexpected limitations and bugs associated with it.
Gameproc
Though we stand alone, stand we shall.
Post Reply