Staredit Network > Forums > Modding Assistance > Topic: Image offset
Image offset
Mar 14 2012, 10:42 pm
By: XelNaga  

Mar 14 2012, 10:42 pm XelNaga Post #1



Currently im trying to put SV turret on tank turret place. I've been using DatEdit1.5-->Units-->graphics to do so, but in the end i have turret floating above tank's base.
I think this has something to do with sprite offset,becouse fire sprite is in the right place. Can anyone help me, please?



None.

Mar 14 2012, 11:23 pm Biophysicist Post #2



Hey! Welcome to modding. Please enjoy your torment.

Uh... I think your issue is with LO? files. I don't quite remember how they work off the top of my head; I'll look into them and send you one that you can add to your MPQ to fix this.



None.

Mar 15 2012, 4:15 pm XelNaga Post #3



Im begining to think that this has nothing to do with image offset. In the image itself ,how we can see , vessel turret is positioned above image's center and thus above tank's normal turret position.
What do you think?
P.S.If i'm making any grammar mistakes just tell me.

Attachments:
wesselt0001.bmp
Hits: 3 Size: 29.35kb
stankt0020.bmp
Hits: 3 Size: 48.05kb



None.

Mar 16 2012, 2:08 am Biophysicist Post #4



Yah, I understand. It's a LO? file issue. Fixing the LO? file would be the real way to fix it, but I'm actually not sure how. However, you could just call setvertpos in the turret's iscript, come to think of it.

Also, I am not sure if just changing the tank turret's graphic is the way to do it; I doubt that the tank turret has attack animations defined, so it would crash when the tank attacks. You'll need to update your iscript.bin file if you haven't done so already.



None.

Mar 17 2012, 7:08 pm XelNaga Post #5



Could you be more specific about scripting? This damn turret just wont go down!Here is what i've already done...

iscript code


Which is BBcode for hide large texts?

P.S.Actually i'm trying to make this turret work on vulture in order to create something like Diamondbacks from SC 2:fast harras unit wich can fire on move, but decided to practice first with only unit wich can fire on move ( given proper treatment :lol: ).

Edit: I've made some progress, lol vulture :D

Attachments:
Crazy vulture.bmp
Hits: 1 Size: 314.79kb
scscrnshot_031712_200213.JPEG
Hits: 1 Size: 73.66kb

Post has been edited 3 time(s), last time on Mar 18 2012, 9:20 am by XelNaga.



None.

Mar 18 2012, 1:21 am Biophysicist Post #6



Quote
Which is BBcode for hide large texts?
[collapse=Collapse Box][/collapse], replacing "Collapse Box" with a title for the box. You can get this BBCode from the "Special" dropdown.

Anyway, try sticking setvertpos # in the turret's init animation, where # is a number of pixels to shift it downwards. (Yes, downwards; iirc it is backwards.) Though if the normal Vessel turret uses the same image (or the same IsID), this would affect it too, though there are ways around that.



None.

Mar 18 2012, 9:28 am XelNaga Post #7



Dont you see? I've already tried to put that comand anywhere: in tank's turret inizialization,in turret inizialization, in sv turret inizialization....
It work perfectly with SV but dont give a **** with modified tank's turret.
I guess there are only two possibilities:

1)Edit turret's grp to make it lower.
2)Edit tanks lo? file (btw i still dont know how)

Whatever....



None.

Mar 18 2012, 7:24 pm Biophysicist Post #8



No, I don't see; I don't see any setvertpos calls in that script. >.>



None.

Mar 18 2012, 9:05 pm XelNaga Post #9



Sorry, wrong script :blush: . But i want to ask: In wich part of the code should i put that command (today i'm already tired of thinking ^^ )



None.

Mar 18 2012, 9:24 pm Biophysicist Post #10



The init animation of the turret, right after the first playfram.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:29 am]
DarkenedFantasies -- Probably just didn't care. For example, at some point before release, they've updated the graphics of some of the Protoss buildings (Forge, CyberCore, Citadel, Observatory, Arbiter Tribunal), but instead of properly re-rendering them with edited 3D models, they did crappy copy-paste jobs on the rendered graphics.
[08:35 pm]
Ultraviolet -- :wob:
[2026-6-21. : 11:38 pm]
Symmetry -- :wob:
[2026-6-21. : 4:56 am]
Ultraviolet -- I suppose we'll likely never know, but my guess would be that they already saw it operating successfully and there was no monetary incentive to finish the original work. And the dev cycle in old school Blizzard was so hectic, it's possible it just got forgotten about after the original game got released. Plus there's an element of existing MPQ files that were packaged with the original discs becoming outdated if they updated it. And it's not like they remade the original MPQs, they just made new ones for BW specifically
[2026-6-21. : 4:26 am]
Oh_Man -- so that makes me think maybe the theory they are unfinished is not true and its a deliberate design decision, coz why not finish them wen ur making brood war?
[2026-6-21. : 4:25 am]
Oh_Man -- the thing is thos buildings are from classic. that means they went ahead and made brood war without ever finishing the 'unfinished' buildings
[2026-6-20. : 6:15 pm]
Ultraviolet -- Yeah he's talked about a lot of that stuff in his casts before. It seems plausible. Especially knowing how Blizzard of yesteryear operated.
[2026-6-20. : 3:47 pm]
NudeRaider -- to clarify: couldn't recall the behavior for every single Protoss building but I was aware the disparity exists.
[2026-6-20. : 3:43 pm]
NudeRaider -- Contained nothing new for me. Didn't know all building's behavior, but very much all unit's. Also Terran balance whine - also nothing new :lol:
[2026-6-19. : 9:57 am]
Oh_Man -- makes me wonder if SEN knows anything about the topic
Please log in to shout.


Members Online: Roy