Author Topic: [DONE] [Suggestion] Multi-Layered Paperdolls  (Read 4398 times)

Offline Stoddard

  • Colonel
  • ****
  • Posts: 477
  • in a fey mood
    • View Profile
    • Linux builds & stuff
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #15 on: October 03, 2018, 09:58:07 pm »
Thanks for the details, Meridian.

Can't think of a better way to do this given modders' wishes off the top fo my head, this needs time.

Anyway, it seems like I'm late to this party.

't'll bite someone in the ass later, but as it was once said


Whatever happens, we have got
The Maxim gun/usr/bin/python, and they have not.


Offline Nord

  • Commander
  • *****
  • Posts: 1203
  • The Gate will open... someday.
    • View Profile
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #16 on: November 12, 2018, 07:39:45 pm »
A question: is there always 16 layers? Because i can not find a reason to use more than 2.

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6382
  • Aaand we're back!
    • View Profile
    • My Wiki
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #17 on: November 12, 2018, 08:15:04 pm »
A question: is there always 16 layers? Because i can not find a reason to use more than 2.

The first sentence in the description says you can define any number you want :)
https://openxcom.org/forum/index.php/topic,6290.msg104464.html#msg104464

2 is fine as well.

If you want a reason for using 16 layers, attached is a thought example from piratez what they could be.

Offline Nord

  • Commander
  • *****
  • Posts: 1203
  • The Gate will open... someday.
    • View Profile
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #18 on: November 13, 2018, 09:25:09 am »
The first sentence in the description says you can define any number you want :)
https://openxcom.org/forum/index.php/topic,6290.msg104464.html#msg104464

2 is fine as well.


Ok, great. But instructions is unclear. How to do it?
Code: [Select]
M0: ["M0_NAKED", "JUMPSUIT"]Just like that?

Also:
If we have >30 face types for each gender (as Xpiratez), we will have >60 strings in each armor definition?
Maybe it is possible to use some numeric postfix for those faces (or nude paperdolls from The X-com files)?
Thanks.

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6382
  • Aaand we're back!
    • View Profile
    • My Wiki
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #19 on: November 13, 2018, 11:23:42 am »
1/ The idea was to hardcode as little as possible, so
- face is not any specific index
- there is no fixed naming required/possible
- and so on...

The time saving is that you don't have to merge those faces into any paperdolls manually now... but you just define it in the ruleset (for 30 faces that's approx. 1 minute instead of a few hours).

2/ As for instructions, I don't know how to write the instructions any better, so I just made a mod for you with just 3 layers.
See attachment.

Offline Nord

  • Commander
  • *****
  • Posts: 1203
  • The Gate will open... someday.
    • View Profile
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #20 on: November 13, 2018, 12:20:15 pm »
1/ The idea was to hardcode as little as possible, so
- face is not any specific index
- there is no fixed naming required/possible
- and so on...

The time saving is that you don't have to merge those faces into any paperdolls manually now... but you just define it in the ruleset (for 30 faces that's approx. 1 minute instead of a few hours).

2/ As for instructions, I don't know how to write the instructions any better, so I just made a mod for you with just 3 layers.
See attachment.
All right, now i undersood all things. Thank you again.

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 576
    • View Profile
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #21 on: November 23, 2018, 01:51:28 am »
big props! works like a charm and is handy! small question can i randomize some layers by reapeting M0 or M1?

ex:
      M0: ["CAPEB", "AHSCOUTM", "M0_FACE"]
      M0: ["CAPEC", "AHSCOUTM", "M0_FACE"]
      M1: ["CAPEB", "AHSCOUTM", "M1_FACE"]
      M1: ["CAPEE", "AHSCOUTM", "M1_FACE"]
 to randomize CAPE

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6382
  • Aaand we're back!
    • View Profile
    • My Wiki
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #22 on: November 23, 2018, 02:21:45 pm »
No.
But you can do M2, M3, ... , M63

Offline Nord

  • Commander
  • *****
  • Posts: 1203
  • The Gate will open... someday.
    • View Profile
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #23 on: December 08, 2018, 05:26:26 pm »
One more question:
What meaning is in
Code: [Select]
    layersSpecificPrefix:
      8: JUMPSUIT
?
Is it for separating one sprites from another? Or can i somehow define one sprite for layer with that strings only?
Thanks.

Online Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6382
  • Aaand we're back!
    • View Profile
    • My Wiki
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #24 on: December 08, 2018, 09:00:45 pm »
Each layer can have a different prefix... so that you can reuse layers from other armors... e.g. you can combine 5 different armors into one, by using different layer from each armor.

To save you time, I allowed to write:
Code: [Select]
default: DDD
specific:
  0: AAAAAA
  8: XXXXXX
instead of
Code: [Select]
specific:
  0: AAAAAA
  1: DDD
  2: DDD
  3: DDD
  4: DDD
  5: DDD
  6: DDD
  7: DDD
  8: XXXXXX
  9: DDD
  10: DDD
  11: DDD
  12: DDD
  13: DDD
  13: DDD
  15: DDD

Attached is illustration what maps where... how you use it is up to you.

Offline Nord

  • Commander
  • *****
  • Posts: 1203
  • The Gate will open... someday.
    • View Profile
Re: [DONE] [Suggestion] Multi-Layered Paperdolls
« Reply #25 on: December 09, 2018, 02:17:32 am »
Ok, got it. Thanks.