Author Topic: Terror from the Deep support  (Read 70584 times)

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: Terror from the Deep support
« Reply #45 on: July 10, 2013, 01:10:58 am »
I've managed to get bullets and explosions for terror-based weapons work with different images over and under the water. There are more screens in terror-like fashion in battlescape, but also some new issues I need help with.

1. I can't get image buttons on main menu to work properly - they don't display correct colors when pressed.

2. I would need help with drawing routines for aquanouts and those underwater monsters, especially humanoid ones (aquatoid, gillman, tasoth, etc.). These graphic sets are just too much for me to handle.

3. Since bullets work, I would like to take a look at infamous bubble trails after bullets. I need a piece of animation describing various stages of trail dissipating. If someone has it, please post it here.

Hoping for some help from dev team ;)
Here's the code: https://github.com/AndO3131/OpenXcom/commits/TFTD_Support

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Terror from the Deep support
« Reply #46 on: July 10, 2013, 03:32:19 pm »
i'll start giving you a hand with this when i get some free time, i have some ideas on how to do stuff, but i believe TFTD used a bunch of colour swapping (for the buttons and the "smoke" clouds) that may currently be somewhat beyond the reach of our engine.

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: Terror from the Deep support
« Reply #47 on: July 10, 2013, 04:06:46 pm »
Thanks, @Warboy1982.

I put up some files to run this terror-like environment. options.cfg goes in place of the old one (I suggest a backup ;)).

The rest is unzipped in Data folder. According to this particular options.cfg, you also need folder Data/UFO1 with Ufo:enemy Unknown copy and Data/Terror from the Deep with TFTD copy (I think mine was 2.1, but there's a good chance it will work with other version). Of course, folders are customizable, but Windows shortcuts don't work (symlinks in Linux work great).

P.S. TFTD ruleset is quite far from being complete ;D

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: Terror from the Deep support
« Reply #48 on: July 11, 2013, 10:58:53 pm »
New screenshots incoming - combined battlescape map.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Terror from the Deep support
« Reply #49 on: July 12, 2013, 04:01:13 am »
if you jump on irc we can have a good, long chat about things.

Offline kkmic

  • Commander
  • *****
  • Posts: 582
  • Undefined
    • View Profile
Re: Terror from the Deep support
« Reply #50 on: July 12, 2013, 09:25:44 am »
Looks like Warboy's interest just spiked up ;)

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: Terror from the Deep support
« Reply #51 on: July 12, 2013, 06:46:57 pm »
back in the days when I said I was going to implement TFTD I made some notes about the bubble trails after bullets. I think it was just observations, I guess I share my notes, you never know if it's helpful.

- double animation speed, 8 frames long, particles gradually fade out each frame (transparency)
- 2x2px and 1x1px white/blueish particles emitted on the bullet trail at more or less random positions, but evenly spread out. (each voxel bullet travels through has 50% change to emit particle?)
- particles rise in voxel space, smaller particles move faster than bigger particles with a bit of randomness in the speed (not all particles of same size move at the same speed)

I don't know if it's correct or not or useful, so use it at own risk :p I was almost about to implement it, I'm sorry I never got that far... I think I got stuck in how to get transparency work. (and how to spell the word correctly :p)

Online Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Terror from the Deep support
« Reply #52 on: July 12, 2013, 09:38:45 pm »
what kind of transparency you want? Its not hard to replace color part in palette mode. In AndO3131 version it would be a bit more harder but if we cheat and use simple color blending it can be trivial.

Offline Bluedrake42

  • Sergeant
  • **
  • Posts: 12
    • View Profile
Re: Terror from the Deep support
« Reply #53 on: July 12, 2013, 10:00:02 pm »
TBH I would really like all the TFTD content but keep the UFO EU interface, I was never a big fan of the TFTD palette or UI

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Terror from the Deep support
« Reply #54 on: July 12, 2013, 11:11:13 pm »
according to some research done by volutar, they had a big-ass lookup table for colour replacement values to simulate transparency.

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: Terror from the Deep support
« Reply #55 on: July 12, 2013, 11:55:01 pm »
@Bluedrake42, in this hybrid mode UI is selectable.

Final battlescape screens. Unfortunately, battle with only TFTD files loaded can't start yet - there has to be done some extra coding with aquanauts.

P.S. Some colors can be wrong (haven't played in TFTD for a long time).

Offline Bluedrake42

  • Sergeant
  • **
  • Posts: 12
    • View Profile
Re: Terror from the Deep support
« Reply #56 on: July 13, 2013, 12:06:43 am »
oh awesome, as long as I can choose thats fine =D

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Terror from the Deep support
« Reply #57 on: July 14, 2013, 02:59:51 pm »
i'm working on an xcom2ruleset.rul file. so far i've got the facilities, crafts, craft weapons, USOs, and armors converted, and i'm half done with the units. trouble is, i need save files to extract certain key pieces of information, like unit height.
so far i know gill men are 20 and deep ones are 21.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: Terror from the Deep support
« Reply #58 on: July 14, 2013, 05:22:33 pm »
I've got a bunch of 100% saves if you need.

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: Terror from the Deep support
« Reply #59 on: July 14, 2013, 08:40:24 pm »
Thanks to @Warboy1982 advice, I've made aquanauts and aquatoids working.

Looking forward to new ruleset ;D