aliens

Author Topic: How to make big units  (Read 6084 times)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11464
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
How to make big units
« on: January 19, 2016, 02:02:50 am »
I've made plenty of standard units, but now I would like to try making a 2x2 unit. I already have graphics with good enough resolution. Unfortunately, I have no idea how to start.

What tools can I use to cut/arrange the spritesheet? How to get from a set of pics to a finished spritesheet?

Help would be very much appreciated.

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 678
    • View Profile
Re: How to make big units
« Reply #1 on: January 19, 2016, 06:27:15 pm »
Start by going to Falkooxc tools , choose HWP unit builder , choose the drawing routine unit that fits the most (mind the turret), download the ez to build sprite sheet, change it , after changes upload it on unit builder again , generate sprite sheet (the one openxcom reads), see the code.
Now to the coding part , just need to change the armor sheet and drawing routine , use the unit armor you copy (in the HWP unit builder) as reference because of lofttemp and other things i might be missing
The Rest you should now better then me , like  items and units for  more customization .
It would be great if we can make soldier wear 2x2 armor but dunno if that´s possible , so i think it was to be a item or a living weapon unit
Btw i use photoshop for image !

Offline Dioxine

  • Commander
  • *****
  • Posts: 5420
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: How to make big units
« Reply #2 on: January 19, 2016, 06:57:16 pm »
It would be great if we can make soldier wear 2x2 armor but dunno if that´s possible , so i think it was to be a item or a living weapon unit

Technically Possible. Wth OXCE, you can give it weapons (basic OXC allows only for unarmed, which is pointless as you won't be able to pick up anything), but makes the game crash if runs out of space to spawn the 2x2 soldier, since it counts him/her as 1, not 4. If you wanted to use this, you'd have to have all your dropships compatible, meaning with 4x as much space as maximum allowed crew, and no nooks and crannies, just a rectangle which is divisble by 2 on each side.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11464
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: How to make big units
« Reply #3 on: January 19, 2016, 07:02:57 pm »
Thanks guys, I didn't know Falko made a tool for this. I'll give it a try.

Offline davide

  • Commander
  • *****
  • Posts: 565
    • View Profile
« Last Edit: January 20, 2016, 02:19:32 pm by davide »

Offline robin

  • Commander
  • *****
  • Posts: 1216
  • ULTIMATE ROOKIE
    • View Profile
Re: How to make big units
« Reply #5 on: January 20, 2016, 03:30:19 pm »
Thanks guys, I didn't know Falko made a tool for this. I'll give it a try.

yeah it's literally vital for 2x2 units.
from the tool you download the sheet with the "whole" unit (see attachment).
then, once you have done your thing with it, you pass it to falko's tool again, to "split" it back into the game-ready sheet.

Beware:
do not draw too near the edges of the drawing area (the drawing area is the transparent hexagonal area), leave a margin of at least 2 (or maybe even 4, don't remember exactly, just don't go near it) pixels. because otherwise, when the unit animates in-game, the pixels within this margin will "overflow" the drawing area and pop out on the other side of it (sort of confusing explanation, sorry).

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 678
    • View Profile
Re: How to make big units
« Reply #6 on: January 20, 2016, 08:31:49 pm »

Technically Possible. Wth OXCE, you can give it weapons (basic OXC allows only for unarmed, which is pointless as you won't be able to pick up anything), but makes the game crash if runs out of space to spawn the 2x2 soldier, since it counts him/her as 1, not 4. If you wanted to use this, you'd have to have all your dropships compatible, meaning with 4x as much space as maximum allowed crew, and no nooks and crannies, just a rectangle which is divisble by 2 on each side.

i was thinking about that for making the assault bikes be mountables and dismountables (bike armor)
Anyway this floor sprites should help and i think we asked me for the bike sprites long time ago








Offline davide

  • Commander
  • *****
  • Posts: 565
    • View Profile
Re: How to make big units
« Reply #7 on: January 22, 2016, 10:29:27 am »
Technically Possible. Wth OXCE, you can give it weapons (basic OXC allows only for unarmed, which is pointless as you won't be able to pick up anything), but makes the game crash if runs out of space to spawn the 2x2 soldier, since it counts him/her as 1, not 4. If you wanted to use this, you'd have to have all your dropships compatible, meaning with 4x as much space as maximum allowed crew, and no nooks and crannies, just a rectangle which is divisble by 2 on each side.

Probably, we could ask  Warboy  :-[ to evaluate this feature for standard OX :P

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2160
    • View Profile
Re: How to make big units
« Reply #8 on: January 22, 2016, 11:14:58 pm »
Probably, we could ask  Warboy  :-[ to evaluate this feature for standard OX :P
Why would we want a feature that's just as likely to crash the game. :P

Offline davide

  • Commander
  • *****
  • Posts: 565
    • View Profile
Re: How to make big units
« Reply #9 on: January 23, 2016, 10:36:12 am »
Why would we want a feature that's just as likely to crash the game. :P

 ;D ;D ;D

... such as "Soldiers Diaries", new mod format, new battlescape generation algorithm, expert soldiers, ....

... a lot of issues after them :o ...

but now OX in much better then 1.0 !!!
 :P :P :P

Thank you very much for any improvement and any new features for modders !!!

PS:
Do you read my suggestion about dynamic add crafts on base defense missions from a B.B. tool
https://openxcom.org/forum/index.php/topic,4247.0.html
« Last Edit: January 23, 2016, 10:41:58 am by davide »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11464
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: How to make big units
« Reply #10 on: January 24, 2016, 11:07:19 pm »
I just wanted to say thanks people, everything's working like a charm. I'm now rapidly increasing the worldwide population of 2x2 sprites. :)