Author Topic: UnitSprite Studio  (Read 31689 times)

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: UnitSprite Studio
« Reply #30 on: January 05, 2022, 05:51:10 am »
How difficult would be to add support for Pixel Operations on 320x200 inventory paperdolls? :D

Offline Chuckebaby

  • Colonel
  • ****
  • Posts: 408
  • Chrysalis are people too
    • View Profile
Re: UnitSprite Studio
« Reply #31 on: January 05, 2022, 03:34:45 pm »
wow this is a very cool tool. thanks

Offline bohemond

  • Sergeant
  • **
  • Posts: 44
    • View Profile
Re: UnitSprite Studio
« Reply #32 on: January 16, 2022, 02:09:46 pm »
@pjlasl: I don't understand what you mean. You can select multiple pixels by shift-clicking. If that's not what you need, could you explain what do you exactly mean by Ctrl-click?

@efrenespartano: Yes, I was already thinking of expanding the single frame editing to custom sizes. If that fails (because the whole single-frame editing is basically a hack) it may be easier to include several predefined sizes. In that case I will collect the common sizes used in mods and go with that.


Is there some preference on which Drawing routine(s) should I implement next?

Offline Leflair

  • Colonel
  • ****
  • Posts: 252
    • View Profile
Re: UnitSprite Studio
« Reply #33 on: January 18, 2022, 10:06:05 am »
Drawing routine 1, Floater, would be most generally useful.

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: UnitSprite Studio
« Reply #34 on: January 20, 2022, 04:29:38 am »
Drawing routine 1, Floater, would be most generally useful.

I agree with Colonel Leflair. (._.)7


@efrenespartano: Yes, I was already thinking of expanding the single frame editing to custom sizes. If that fails (because the whole single-frame editing is basically a hack) it may be easier to include several predefined sizes. In that case I will collect the common sizes used in mods and go with that.

320x200 is the standard for all OXC images, i think it would be enough :D

Offline bohemond

  • Sergeant
  • **
  • Posts: 44
    • View Profile
Release: Floater
« Reply #35 on: January 29, 2022, 01:46:02 pm »
New version released (on github):
Drawing routine 1 - Floater
Support for Palettes
Single frame Drawing routine can edit any image size

Palettes:
There is a new combobox beside the palette that allows you to change the loaded sprite sheet's image.
When you switch palette you will be prompted with "Match colors to the selected palette?"
Yes - Will attempt to find the nearest color in the new palette and re-index
No - Will leave the indexes be, simply using the new palette.
Cancel - Will not change the palette

Single frame:
You can load images of any size, but don't expect great performance. The pixel operations work fine though.

Offline Finnik

  • Commander
  • *****
  • Posts: 502
  • Finnik#0257
    • View Profile
Re: UnitSprite Studio
« Reply #36 on: January 29, 2022, 03:24:29 pm »
Nice to see you keep working on this great tool, thanks for the update!

Offline Nord

  • Commander
  • *****
  • Posts: 1740
  • The Gate is open.
    • View Profile
Re: UnitSprite Studio
« Reply #37 on: January 30, 2022, 05:19:29 pm »
It is brilliant!
Thank you, this tool is really must-have.

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: UnitSprite Studio
« Reply #38 on: February 01, 2022, 06:56:14 am »
Wonderful! I really love the new additions. Recoloring units now is laughably easy. Thanks a ton! You are a god among us.

Time to make an Aztec sacrifice to honor you.  ;D

Offline Alex_D

  • Colonel
  • ****
  • Posts: 498
    • View Profile
Re: UnitSprite Studio
« Reply #39 on: February 01, 2022, 06:51:06 pm »
Dear Bohemond. Thank you very much for the tool !
It saves so much time for visualizing and animating one's work.

If I may ask a small feature. Would it be possible to add a button for a quick reload of the existing image ?

This is in case you are making editions using a different software and using this program to piece together the frames.

EDIT: Another small feature, maybe more important. Option to specify the number of death animation frames.
« Last Edit: February 13, 2022, 07:30:07 pm by Alex_D »

Offline bohemond

  • Sergeant
  • **
  • Posts: 44
    • View Profile
Release: Integration with HandOb maker
« Reply #40 on: March 12, 2022, 10:36:22 am »
New version released (on github):
Integration with HandOb maker
Possibility to load item from file and preview it on the unit
Support for additional rule values (standHeight, deathFrames)
Quick reload from source file

Integration with HandOb maker & Item preview:
You can now view an item as it would show up in-game on the unit. For now works only on select few drawing routines: 0 Soldier and 1 Floater.
You can either load in a file in the 8 frame format or you can load it from live HandOb maker application.
Short description is in HandOb maker wiki (https://github.com/bohemond-of-antioch/HandObMaker/wiki/Integration-with-UnitSprite-Studio)
If you click the HandObMaker button, it will start up a monitor and will refresh automatically with every update sent from HandOb maker. Likewise on the HandOb maker side, you can either send updates automatically or on demand with a button.
Beware: I did the integration via clipboard, because it was just the simplest. This means that your clipboard contents might be cleared unexpectedly when you have the integration running on full auto.

Support for additional rule values:
Here the most important is deathFrames. Most of the drawing routines support it, even though it seems to make sense only for a few of them. The UI is a little clunky, but it does its job. Don't forget to move the control focus to somewhere else once you are done entering the value. You'll see what I mean once you try using it.

Quick reload from source file:
You can reload from the source via File->Reload from disk or by pressing F5.

Offline Finnik

  • Commander
  • *****
  • Posts: 502
  • Finnik#0257
    • View Profile
Re: UnitSprite Studio
« Reply #41 on: March 12, 2022, 02:50:21 pm »
Wow, that's just great! Lovely update!

Offline Alex_D

  • Colonel
  • ****
  • Posts: 498
    • View Profile
Re: UnitSprite Studio
« Reply #42 on: March 12, 2022, 07:06:09 pm »
Thank you!

Offline Thorir

  • Squaddie
  • *
  • Posts: 5
  • Newbie on classic XCOM - a Doomer in fact.
    • View Profile
    • Moddb profile
Re: UnitSprite Studio
« Reply #43 on: March 21, 2022, 10:32:01 am »
Hello there,
 I'm very new to the XCOM modding scene, so obviously I'm full of dummy questions (but also with inspiration). I promise I'll try to learn by doing and read back on the forum, but I have something that actually made me creating an account...

Is there any way to change the handobject preview item here? I mean if I load a complete hadobject sheet (for a Sectoid for example) I only get the assault rifle. I can't figure out how to put like a plasma pistol or something to its hand.

Offline bohemond

  • Sergeant
  • **
  • Posts: 44
    • View Profile
Re: UnitSprite Studio
« Reply #44 on: March 21, 2022, 04:04:34 pm »
That is a good point, that's actually not supported, I completely forgot about that possibility. I'll add it to my to-do list.
At this time, if you want to preview a different item, you will have to cut it out of the complete sprite sheet and make one where the desired item is alone (or at the very top of the image).