Staredit Network > Forums > Modding Assistance > Topic: Custom Unit Graphics
Custom Unit Graphics
Apr 11 2019, 2:44 am
By: Kolokol  

Apr 11 2019, 2:44 am Kolokol Post #1



In many custom mods for StarCraft: Brood War, I have seen custom units present; they even had fully custom overlays, rather than simply unused ones. A good example of this would be the Black Sun Battle Station from Legacy of the Confederation:

How does one go about editing unit graphics to make a custom unit like that? For instance, I would like to make a custom unit that looks like a ZSU-23-4 "Shilka"


I reckon that a reasonably close approximation can be done by replacing a normal Siege Tank's turret with a Covert Ops, adding on a few Goliath autoguns, and maybe a Comsat dish. Except, how does one actually modify unit graphics in such a way? What would I actually need to do to make those changes to unit graphics?



None.

Apr 11 2019, 6:21 am Pr0nogo Post #2



You will need to pull out the frames of the units (extract from your MPQs using PyMPQ, open and extract the grp frames with PyGRP), then edit them (called "kitbashing") in photoshop or some other equivalent. I use CS6 and it works well enough. Once you've made your changes, convert back to the sc unit palette, save your frames, import them to a new grp using PyGRP, and import that new grp into your mod file using PyMPQ. Bear in mind that it has to replace an existing graphic and it will use that graphic entry's linked iscript in images.dat. Your animation code (iscript) will need to be edited with PyICE, most likely.




Apr 12 2019, 12:22 am Kolokol Post #3



I get the following error when I try to export any frames of a grp file, and the export fails:
Exception in Tkinter callback
Traceback (most recent call last):
File "Tkinter.pyc", line 1404, in __call__
File "PyGRP.pyw", line 702, in exports
File "PyGRP.pyw", line 18, in grptobmp
TypeError: isstr() takes exactly 1 argument (2 given)

What does this mean?

Post has been edited 1 time(s), last time on Apr 12 2019, 12:27 am by Kolokol.



None.

Apr 12 2019, 12:30 pm Pr0nogo Post #4



It means something is breaking in PyGRP :)

If it runs and displays the image, odds are your PyMS setup is fine. I'd recommend redownloading to make sure you have the latest version (zerg here: https://github.com/poiuyqwert/PyMS)

Could also be an error in your settings file that was introduced by the latest version though, so if that still doesn't work, you can try this outdated but potentially more functional version (neiv here: https://github.com/neivv/PyMS/tree/aise)

If you still have no luck after those, I'd post in the PyMS thread (copy and paste your error here: http://www.staredit.net/topic/17719/)




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Vrael, Roy, NudeRaider