Author Topic: Needing a few tips for my new Lightning  (Read 14069 times)

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Needing a few tips for my new Lightning
« on: September 12, 2014, 01:15:30 am »
I am changing the base layout of the Lightning to allow 16 soldiers or up to 4 tanks, with 4 exits. I've got the hang of editing the map but there's some things I don't know how to do yet:

1.) I need to edit the start locations of the soldiers/tanks. It seemed as though in the How To guide for MapView, that the nodes were key to determining where the X-Com units spawn, but I don't see how. I copied the style shown in the Avenger and Skyranger maps but they don't really have much, just a single node inside the ship with no explanation as to how the rest of the units fill in, and those nodes are set to no spawn. I tried it anyway, and I got only 3 soldiers to spawn in the craft, the rest were deleted at the start of the mission. -DONE!

2.) The craft is bigger, and uses 2x2 map sections (20x20 squares) instead of the original Lightning's 2x1. So I need to make the new map sections spawn as flat land so that the Lightning doesn't clip through structures. -DONE!

3.) I'd like some tips on adding new terrain pieces. I want to make 3 more doors and ramps for the other 3 exits, and I want to replace the power source with a new 4-piece power source so that I can center it.
« Last Edit: September 18, 2014, 12:47:46 am by The Reaver of Darkness »

Offline Dioxine

  • Commander
  • *****
  • Posts: 5412
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: Needing a few tips for my new Lightning
« Reply #1 on: September 12, 2014, 08:06:06 am »
1. RMP's are irrelevant on XCom craft. XCom tanks & soldiers are spawned on Lighting/Skyranger floor tiles, from bottom floor to the top, in rows facing N, starting from NW corner. You can use ruleset to override this and manually enter x/y/z/facing coordinates for the soldiers.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: Needing a few tips for my new Lightning
« Reply #2 on: September 12, 2014, 10:00:23 am »
There seems to be an already existing ruleset doing that, given that only 3 of the soldiers were able to spawn. It makes sense, as the original Lightning allows 12 soldiers to spawn inside even though it has 28 spaces, but the soldiers still spawn in a neat pattern around the center.

Any idea where I can find this file so I can edit it, and/or what lines of code to use to make a fresh new one? I can generally understand what bits of code are for when I'm familiar with the subject, but I can't write them from scratch without something similar to copy from.
Nevermind, I think I found it.

edit:
I did found it. It's in the basic ruleset under craft. Both Lightning and Avenger have custom spawn spots. I have discovered that tanks will spawn correctly if you position every 4th soldier (#1, #5, #9, etc.) on the distant corner (NW) of the 2x2 square where you wish to place the tank.

The spawn coordinates include four values:
First value: x coordinate (from east to west), starts at 0 for eastmost square
Second value: y coordinate (from north to south), starts at 0 for northmost square
Third value: z coordinate (from bottom level to top level), starts at 0 for bottom level--the default starting level is 1
Fourth value: direction the unit is facing, starts at 0 for north, each number up is a 1/8th turn clockwise:
 * 0 = north (Avenger and any unruled craft, like Skyranger)
 * 2 = east (Lightning)
 * 4 = south
 * 6 = west
« Last Edit: September 12, 2014, 11:40:07 am by The Reaver of Darkness »

Offline RSSwizard

  • Commander
  • *****
  • Posts: 748
    • View Profile
Re: Needing a few tips for my new Lightning
« Reply #3 on: September 13, 2014, 02:31:22 am »
Ive always liked the idea of a 3 or 4 Story Xcom craft. So sorta like a vertical cylinder (like 4 lightning craft stacked on top). Maybe I ought to build that.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Needing a few tips for my new Lightning
« Reply #4 on: September 13, 2014, 10:53:32 am »
Ive always liked the idea of a 3 or 4 Story Xcom craft. So sorta like a vertical cylinder (like 4 lightning craft stacked on top). Maybe I ought to build that.

Me too!

Actually, I thought about making such a Mars assault craft (and taking away from Avenger the ability to go to Mars). This would make the ship a bit more realistic, after all the soldiers must've spent days or weeks there.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: Needing a few tips for my new Lightning
« Reply #5 on: September 13, 2014, 01:05:35 pm »
Me too!

Actually, I thought about making such a Mars assault craft (and taking away from Avenger the ability to go to Mars). This would make the ship a bit more realistic, after all the soldiers must've spent days or weeks there.
That's a pretty cool idea. It should have a rather high Elerium storage, and you should have to collect up a fairly large stock for the trip, something like 500 maybe. Along with this could come an advanced craft weapon that helps shoot down craft intact. In mine there is a plasma cannon with range comparable to stingrays that hits for 30 damage but is pretty rapid-firing. If you attack with the Starstreak, you can get in range quickly with your one weapon.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Needing a few tips for my new Lightning
« Reply #6 on: September 13, 2014, 01:48:40 pm »
That's a pretty cool idea. It should have a rather high Elerium storage, and you should have to collect up a fairly large stock for the trip, something like 500 maybe.

Along with this could come an advanced craft weapon that helps shoot down craft intact. In mine there is a plasma cannon with range comparable to stingrays that hits for 30 damage but is pretty rapid-firing. If you attack with the Starstreak, you can get in range quickly with your one weapon.

I have no idea what this has to do with the new Mars lander, but it sounds like a pretty cool concept.

Offline ivandogovich

  • Commander
  • *****
  • Posts: 2381
  • X-Com Afficionado
    • View Profile
    • Ivan Dogovich Youtube
Re: Needing a few tips for my new Lightning
« Reply #7 on: September 13, 2014, 06:54:40 pm »
The idea of an Electro Magnetic Pulse (EMP) craft weapon for disabling UFOs is a beautiful one! :)

However, I think the current combat mechanics, wouldn't work, as damage is applied to the craft, until its forced to crash.

Sounds like to get this operational, it would require new code and a custom .exe.

Cheers, Ivan :D

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: Needing a few tips for my new Lightning
« Reply #8 on: September 14, 2014, 07:45:50 am »
I have no idea what this has to do with the new Mars lander, but it sounds like a pretty cool concept.
If you can shoot them down intact, you can recover the Elerium-115. It is possible to get a game in which landing sites aren't very available to the player, so it wouldn't be kind to require a large stockpile of Elerium to win the game if there isn't a fallback, failsafe method of obtaining it.

The idea of an Electro Magnetic Pulse (EMP) craft weapon for disabling UFOs is a beautiful one! :)

However, I think the current combat mechanics, wouldn't work, as damage is applied to the craft, until its forced to crash.
If you shoot down a craft with cannons, it will always remain fully intact as if it had merely landed. This is due to the low amount of damage done per hit. Depending on the amount of excess damage done, the power sources either do not explode, make a standard explosion, or make a large explosion. With enough excess damage, you can destroy the craft. Weapons that hit harder have a high chance to cause excess damage to the ship. For instance, a medium or large scout shot down with stingrays will generally always have a standard explosion from the power source. In the medium scout, this levels the entire inside of the ship and occasionally a couple walls; in the large scout, the central room is blown apart along with most of the inner walls. But a large explosion will tear up the entire inside of a large scout along with some of the outer walls, and will utterly flatten a medium scout, leaving a square of rubble on the ground.

Cannons (10 damage) hit light enough to always knock down a small scout intact (though you get no Elerium). My pulse cannons hit for 20 and my plasma cannons hit for 30, considerably less than the small-scout-blasting stingrays (70). They may pop the power source a lot but should fairly often preserve them. I'll need to test how well this actually works.

I am aware that there may exist a version of X-Com in which the damage of the weapon does not affect the status of the power sources; also, there may be a bug in which if you save the game after crashing the ship and before landing at the site, then re-load before you land, apparently the game does not store the hit information in the crash file and its status will not be connected to how it was shot down. And I haven't actually done much shooting down UFOs yet in Open X-Com. I'll get back to you on how close it is to what I'm used to.

Anyone know how to take a screenshot from within Open X-Com? I have somethings to take pics of, in particular I'd like to show you guys the difference between a small or large explosion in a medium scout.

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Needing a few tips for my new Lightning
« Reply #9 on: September 14, 2014, 12:45:00 pm »
If you shoot down a craft with cannons, it will always remain fully intact as if it had merely landed. This is due to the low amount of damage done per hit. Depending on the amount of excess damage done, the power sources either do not explode, make a standard explosion, or make a large explosion.

that's actually wrong.

I'd like it to be that way, and have proposed similar mechanics, but the original game works in quite a different way: each UFO power source explodes with a 75% chance when the UFO crashes.
read this: https://www.ufopaedia.org/index.php?title=UFO_Crash_Recovery

I am aware that there may exist a version of X-Com in which the damage of the weapon does not affect the status of the power sources; also, there may be a bug in which if you save the game after crashing the ship and before landing at the site, then re-load before you land, apparently the game does not store the hit information in the crash file and its status will not be connected to how it was shot down. And I haven't actually done much shooting down UFOs yet in Open X-Com. I'll get back to you on how close it is to what I'm used to.

what you are experiencing is called Apophenia. In this case, it is not at all unintentional; Julian Gollop has commented in several interviews that XCom appears a lot cleverer than it is because of the many random elements. People like to try and make sense of random events (it's how our brains work), and thus construct a lot of very complicated theories about stuff that is actually truly random.


Anyone know how to take a screenshot from within Open X-Com? I have somethings to take pics of, in particular I'd like to show you guys the difference between a small or large explosion in a medium scout.

F12 will take a screenshot in .png format and saves it in your user directory

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: Needing a few tips for my new Lightning
« Reply #10 on: September 15, 2014, 05:48:50 am »
what you are experiencing is called Apophenia. In this case, it is not at all unintentional; Julian Gollop has commented in several interviews that XCom appears a lot cleverer than it is because of the many random elements. People like to try and make sense of random events (it's how our brains work), and thus construct a lot of very complicated theories about stuff that is actually truly random.
No, it's definitely correct. I've done this dozens of times and it has never failed. The odds of it being a fluke are astronomical. Dozens of crashes with cannons have all been intact; hundreds of crashes with stingrays, avalanches, and plasma cannons have never once yielded an intact power source. If there is a 25% chance of having an intact power source, then there is 1 chance in over 3 trillion that in one hundred tries, none yield a power source. And that is assuming the craft have only one power source, while plenty have more. I'm well aware of apophenia and have gone to great lengths to avoid the effect throughout my life.

If normal X-Com games are indeed as stated in the UFOPaedia, then I must be used to playing a different version. Th problem I would have with that is that I have played multiple different versions from original DOS, to Gold, to Collector's Edition and probably a bit on some others as well. I cannot say for certain that it works in TFTD because I can't seem to figure out where the Zrbite is even stored on the ship, but I know this works in UFO Defense.

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: Needing a few tips for my new Lightning
« Reply #11 on: September 15, 2014, 08:32:27 am »
The observation is somewhat skewed because of larger craft (the ones you use the more powerful weapons on) having dramatically lower chances of yielding intact power sources due to proximity-effects: with multiple power sources in relative proximity, only one needs to explode to wipe out all of the elerium in the UFO.

I'm not aware of any version of XCom that features dogfight-dependent battlescape features.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5412
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: Needing a few tips for my new Lightning
« Reply #12 on: September 15, 2014, 08:50:01 am »
I've only ever used Avalanches (then replaced by Plasma Cannons) and I've always had more Elerium than I could store... Call that a fluke too? Oh yeah and while I wasn't using cannons at all, these few (very few) times I've used Stingrays or Laser Cannons, the power sources were usually exploded. Can't tell you the version but I've ran the campaign several times from 1994 to mid-2000s.
« Last Edit: September 15, 2014, 08:57:48 am by Dioxine »

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: Needing a few tips for my new Lightning
« Reply #13 on: September 15, 2014, 09:38:03 am »
Stingrays and laser cannons (both 70 damage) are much too powerful to soft-crash a craft. I have usually used cannons to soft-crash scouts of any size, but occasionally I'll go after a larger target. I've done it on supply ships perhaps 4-5 times in all my years of playing. Once I crashed the game doing it.

I discovered this tactic of crashing them softly because I was in a game in which I wasn't getting any craft to land in my radar range and my Elerium stocks were dwindling. I was much newer to the game, having only played for a few months probably. I had never gotten any Elerium from a crashed UFO. One day I finally did--when I used cannons. I decided to try it more, and it kept working! Suddenly, I had a solution to my Elerium shortage! Since then I have found plenty of other ways to secure the stuff, but I still use the cannon trick because it's easy. I once tried to make a system of landing at landed supply ships, stealing the Elerium and fleeing, then soft-crashing them immediately after in order to score more Elerium. It's doable but causes too much damage to your ship so it's not worth it.
« Last Edit: September 15, 2014, 09:44:36 am by The Reaver of Darkness »

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Needing a few tips for my new Lightning
« Reply #14 on: September 15, 2014, 03:02:54 pm »
moriarty's right.