OpenXcom Forum

Modding => Released Mods => The X-Com Files => Topic started by: Alex_D on November 22, 2020, 06:01:20 pm

Title: [Submod][Scenario] Yautja Hunter
Post by: Alex_D on November 22, 2020, 06:01:20 pm
The Hunt is on!

If you wondered if you crack team of X-Com agents can go to the Central American jungles and rescue a Minister from some insurgents and be put in the middle of some hunting season... wonder no more.

Music:
The mod is provided without music, to avoid copyright issues, unfortunately. Suggested music tracks are as follow:
Code: [Select]
musics:
  - type: YH_BRIEFING
    #https://www.youtube.com/watch?v=aSnuZUxHYtU Predator Main Theme - Epic Version-HQ
    normalization: 0.76
  - type: YH_MISSION
    #https://www.youtube.com/watch?v=9c3biXCLUZY Predator Soundtrack Suite (Alan Silvestri)-HQ
    normalization: 0.5
To get the tracks, you can use an online youtube to ogg converter (https://ontiva.com/en) and place the resulting files renamed as show into the SOUND folder. To activate replace the rul file with the one provided in this post.

Credits:
Code: [Select]
- Some text from the Long War Mod
- Sprites based on:
  - https://www.therpf.com/forums/threads/wip-u-avp-ultimate-aliens-vs-predator-mini-tc-for-gzdoom.316868/
  - by the Carchadon by XOps.
- Other images from: https://hipwallpaper.com/predator-backgrounds/ and http://toyhaven.blogspot.com/2009/07/hot-toys-first-predator-review-part-ii.html
- Lots of sound effects links as shown in the metadata file.

This is the first version of the mod, likely to change as Solarius reviews it. The mod is testable via a Quick Battle. Comments are appreciated.

EDIT: Thanks to the Discord members, a bug was (hopefully fixed). The package is re-uploaded.
EDIT2: Updated rul file with a minor string bug.
EDIT3: Re-uploaded rul file with another minor bug fix. The scenario .7z file was re-uploaded to avoid confusion.
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Yankes on November 22, 2020, 08:34:19 pm
OXCE have support for graphic effects similar to:
https://openxcom.org/forum/index.php/topic,2059.msg26561.html#msg26561
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Alex_D on November 22, 2020, 09:57:32 pm
OXCE have support for graphic effects similar to:
https://openxcom.org/forum/index.php/topic,2059.msg26561.html#msg26561


Nice!
I wish I was knowledgeable enough about scripts to come up with something similar.
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Finnik on November 23, 2020, 12:59:31 pm
OXCE have support for graphic effects similar to:
https://openxcom.org/forum/index.php/topic,2059.msg26561.html#msg26561
I think both solutions are lovely, and it a matter of taste. I would say that Alex solution in terms of art is a bit better, but having a transparent is cool too. @Yankes - can we have a code snippet?
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Yankes on December 01, 2020, 03:07:37 am
Code: [Select]

armors:
  - type: STR_NONE_UC
    scripts:
      recolorUnitSprite: |
        var int backShade;
        var int backColor;
       
        get_shade backShade old_pixel;
        get_color backColor old_pixel;
       
        div backShade 2;
        set_color new_pixel backColor;
        add_shade new_pixel backShade;
        return new_pixel;
this is simplest way, `new_pixel` is value of new pixel that is written to screen, `old_pixel` is value of old pixel on screen.
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Alex_D on January 07, 2021, 10:49:26 pm
New version uploaded, with potential bug fixed.
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Bonakva on January 11, 2021, 04:47:11 pm
Perfectly. My thoughts came true
https://openxcom.org/forum/index.php/topic,8220.0.html

You must add the wrist blades, spear and throwing disc. It will be great
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: HT on January 11, 2021, 07:28:06 pm
This looks cool! Can the XCOM loot and repurpose the Predator's weaponry as standard procedure when fighting aliens?
I gave the mod a quick spin in Quick Battle mode. It seems to work well until the Pred is supposed to show up, moment in which a bug window kicks me out of the game. Is that because of potential incompatibility with other mods, or because I used this scenario in Quick Battle mode? I suppose it's the latter, but better to check.
I'm using the Yautja mod within the 7z file.
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Alex_D on January 12, 2021, 01:40:15 pm
This looks cool! Can the XCOM loot and repurpose the Predator's weaponry as standard procedure when fighting aliens?
It ought to be able to do so. The Pred weapon is recoverable.

It seems to work well until the Pred is supposed to show up, moment in which a bug window kicks me out of the game. Is that because of potential incompatibility with other mods, or because I used this scenario in Quick Battle mode? I suppose it's the latter, but better to check.
I'm not sure why it crashed. It didn't do it during my tests. Can you post the log file, or the save?
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: HT on January 12, 2021, 07:01:54 pm
I'm not sure why it crashed. It didn't do it during my tests. Can you post the log file, or the save?

I tried again the Quick Battle thing. It seems I was the one wrong. As long as you don't use Debug Mode to make all enemies die or something like that, the scenario works as intended.

However, once you drop the Predator's camo, the alien completely disappears. Is that intentional, or a bug? Using the Debug Mode to finish the battle also causes a crash, but I suppose that finishing the map normally will work as it should.
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Alex_D on January 12, 2021, 07:31:06 pm
However, once you drop the Predator's camo, the alien completely disappears. Is that intentional, or a bug? Using the Debug Mode to finish the battle also causes a crash, but I suppose that finishing the map normally will work as it should.

The plan is to have three units that represent the Predator along the map. The first stage, inactive, until after a few turns, it "dies" and re-spawn as the "cloaked predator". Once that one "dies" due to sustained damage, the its uncloaked form spawns. I tested the sequence and didn't crash on me. If it still does please send a save for me to check.

Thank you for providing comments. This link (https://we.tl/t-Wlt83xFcqe) includes the music as intended. Link expires in two days.


Maybe one day, I'd review the whole map and add some scripts to make some of the "effects" more efficient, perhaps using Yankes' superb script routines.
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Alex_D on May 03, 2021, 06:16:43 pm
The .rul file was updated with a minor fix.
The .7z file was re-uploaded to avoid confusion. See first post for scenario.

EDIT: For a limited time. The music intended for this scenario, on a separate .7z file.
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: 8mono on May 23, 2021, 09:02:07 am
I'm having a bit of an issue with the sprites for a few guns, mod seems to be working fine otherwise but I get this freaky greenish blob when equipping the Glock, Desert Eagle, Pepper Spray and the Beretta 92 FS, no other mods turned on and I turned it off and on (the Hunter scenario) and it seems to be this, I have no idea what it could've been since you're not touching any of these sprites, perhaps a misbehaving script?
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: HT on May 24, 2021, 01:38:51 pm
Funny, I remember seeing this odd bug on random enemies, like EXALT ones. I thought this was a bug of the main mod, which I already reported on the bug thread, no idea if this submod was the cause.
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Solarius Scorch on May 24, 2021, 05:22:32 pm
Is eeservedSpace set correctly?
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: 8mono on May 24, 2021, 05:59:53 pm
Funny, I remember seeing this odd bug on random enemies, like EXALT ones. I thought this was a bug of the main mod, which I already reported on the bug thread, no idea if this submod was the cause.

oh I knew it looked familiar, yeah I looked at your screenshots, I forgot to add I'm on the GitHub version as well,  which version are you using? I forgot to add I'm on the GitHub version
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: 8mono on May 25, 2021, 01:49:24 am
I think I've identified what the sprite is meant to be, it's the plasma weapon the predator uses , this is on a plasma pistol btw, it didn't show up properly for the other guns I think but at least on the aliens it does look like that weapon, it does the weird green thing as well when it turns around and you see the other angles of the sprite
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: HT on May 25, 2021, 11:01:29 am
oh I knew it looked familiar, yeah I looked at your screenshots, I forgot to add I'm on the GitHub version as well,  which version are you using? I forgot to add I'm on the GitHub version
I use the latest one available officially in  this forum, so no Github.
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: Juku121 on December 08, 2023, 02:07:33 am
This one seems not to work with modern XCF (3.2 snapshot, OXCE 7.9.19), complains about sound indices being too large.

Temporary fix here (https://openxcom.org/forum/index.php/topic,11029.msg159526.html#msg159526).
Title: Re: [Submod][Scenario] Yautja Hunter
Post by: AndyFox on March 30, 2024, 01:48:55 pm
Added Russian language to the modification, fixing (https://openxcom.org/forum/index.php/topic,11029.msg159526.html#msg159526) from Juku121.