Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make planets and stations invulnerable #1048

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

royfalk
Copy link
Contributor

@royfalk royfalk commented Feb 28, 2025

Closes #1018

Code Changes:

Copy link

@kheckwrecker kheckwrecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Banged on Serenity as long as I could (before I got shot out of the sky) and could not detect any damage done to the base, so I'd say from a playtesting perspective, this PR is good to merge.

@kheckwrecker kheckwrecker self-requested a review February 28, 2025 23:28
@stephengtuggy
Copy link
Contributor

I do not think stations should be invulnerable. Planets? Maybe. Stations? Not so much.

@royfalk
Copy link
Contributor Author

royfalk commented Mar 1, 2025

I do not think stations should be invulnerable. Planets? Maybe. Stations? Not so much.

I don't have a firm opinion on this. However, lacking support for saving the death of a station in the save file means it comes back to life when you load the game.

The issue has a discussion of this, including the obligatory issues with Skyrim characters dying and certain storylines getting trimmed.

For now, units loaded from star system are invulnerable. We can revisit this after we fix the bugs.

@kheckwrecker
Copy link

I do not think stations should be invulnerable. Planets? Maybe. Stations? Not so much.

I have to agree with royfalk's comments. Someday in the future development, it would be wonderful to have the need and ability to destroy a station to advance a campaign storyline. That would make for an amazing and awesomely deep story line. The only problem right now with the game engine, is that as soon as you save your game and reload, the destroyed station reappears. I can only imagine how much programming would go into making sure destroyed stations stayed destroyed in saved games. As much as I personally would like to see a fully destructible environment, I'm guessing it's not likely to happen for a while?

@kheckwrecker
Copy link

An update to my earlier review - I was documenting some of my findings with docking, and was flying a routine patrol mission to Phillies ( a planet in Cephid-17 system), and I was almost within the distance to have the docking countdown show up (approx. 260,000 km away - see my comments under the docking PR) when Phillies blew up right in front of me. I'm running a version of master with PR's 1036, 1039, 1047 and 1048 cherry-picked and merged.

It looks like the problem of planets blowing up is not resolved after all.

@royfalk
Copy link
Contributor Author

royfalk commented Mar 2, 2025

I think the auto-destroy logic destroyed it.
I don't know what it is or what else to call it.
It's the process that shows ships being destroyed in the top left text screen.
I don't know if the ships there are real or not and what's causing them to be destroyed.
It may be in the assets/python scripts.

@kheckwrecker
Copy link

To clarify my last comment. I am still experiencing planets disappearing, and I have merged this PR into my clone of master. I had two more (Broadway and Phillies) disappear tonight while flying around testing docking distances.

@royfalk
Copy link
Contributor Author

royfalk commented Mar 6, 2025

So I added some debug messages.
In the console I see a whole bunch of destroyed cargo and nothing else.
I don't see anything in the logs. Maybe because it's trace?

In any case, the message in the game about destroyed units and flightgroups does not appear connected to this.

Please play test and see if you get different results.

@kheckwrecker
Copy link

So I added some debug messages. In the console I see a whole bunch of destroyed cargo and nothing else. I don't see anything in the logs. Maybe because it's trace?

In any case, the message in the game about destroyed units and flightgroups does not appear connected to this.

Please play test and see if you get different results.

Will do. Haven't tested yet with the latest branch, but playing with a version of the branch that I compiled a few days ago, I actually witnessed Atlantis being destroyed. I was pretty far away, but the explosion was still pretty impressive!

@kheckwrecker
Copy link

As a follow-up, here's a snippet from my log file, after watching Atlantis explode:

[2025-03-06 16:55:46.114607]: Auto ejecting NPC
[2025-03-06 16:55:46.271479]: Missile damaging Atlantis/. (dist=0.000 r=15.494 dmg=250.000)
[2025-03-06 16:55:46.517606]: ship destroyed-no flightgroup
[2025-03-06 16:55:46.518591]: Missile damaging Atlantis/. (dist=0.000 r=4.219 dmg=-nan(ind))
[2025-03-06 16:55:46.525594]: ship destroyed-no flightgroup
[2025-03-06 16:55:46.597958]: Missile damaging Pilot/. (dist=4194337.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.597958]: Missile damaging Robin.tutorial/. (dist=13872791.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.597958]: Missile damaging Kafka.civvie/. (dist=6059546.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.597958]: Missile damaging Koala.civvie/. (dist=5999999.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Sartre.civvie/. (dist=6007603.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Sartre.civvie/. (dist=6029129.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6002952.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6003328.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6033268.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=5994220.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=5991733.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6001344.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6003916.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6007105.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6072968.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6006347.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6002569.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6072967.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=7086397.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6207047.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6207039.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=5996928.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=5987308.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=6137933.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Kafka.civvie/. (dist=5988756.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Quicksilver.civvie/. (dist=6042379.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.598943]: Missile damaging Dodo.civvie/Skatecargo (dist=6488834.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Dodo.civvie/. (dist=6481416.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.598943]: Missile damaging Dodo.civvie/Skatecargo (dist=5999815.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Dodo.civvie/. (dist=5999783.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.598943]: Missile damaging Dodo.civvie/Skatecargo (dist=6004924.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Dodo.civvie/. (dist=6004882.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Koala.civvie/. (dist=6271272.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Koala.civvie/. (dist=5998165.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Koala.civvie/. (dist=5999893.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.598943]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.598943]: Missile damaging Mule/turretbeamgun (dist=6007241.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Mule/turretbeam (dist=6007234.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.598943]: Missile damaging Mule/turretbeamgun (dist=6007161.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Mule/turretbeam (dist=6007153.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Mule/. (dist=6007117.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Hyena.civvie/. (dist=5999662.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Koala.civvie/. (dist=6007734.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.598943]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.598943]: Missile damaging Mule/turretbeamgun (dist=6009968.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Mule/turretbeam (dist=6009956.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.598943]: Missile damaging Mule/turretbeamgun (dist=6009878.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Mule/turretbeam (dist=6009867.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.598943]: Missile damaging Mule/. (dist=6009821.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Entourage/. (dist=5947633.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile damaging H496/turretgunsmall (dist=5963774.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging H496/turretgunsmall (dist=5963774.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging H496/. (dist=5963717.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging GTIO.civvie/. (dist=5955601.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile damaging Mule.civvie/turretbeamgun (dist=6016886.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule.civvie/turretbeam (dist=6016864.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile damaging Mule.civvie/turretbeamgun (dist=6016808.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule.civvie/turretbeam (dist=6016788.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule.civvie/. (dist=6016716.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Entourage/. (dist=4194315.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Entourage/. (dist=6240222.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Quicksilver.civvie/. (dist=5992948.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Kafka.civvie/. (dist=6271407.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Sartre.civvie/. (dist=6004731.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Sartre.civvie/. (dist=6004733.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Sartre.civvie/. (dist=6004735.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Sartre.civvie/. (dist=6004735.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Sartre.civvie/. (dist=6060435.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Sartre.civvie/. (dist=6004479.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Kafka.civvie/. (dist=6040253.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile damaging Mule/turretbeamgun (dist=6007199.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule/turretbeam (dist=6007191.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile damaging Mule/turretbeamgun (dist=6007118.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule/turretbeam (dist=6007111.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule/. (dist=6007075.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile damaging Mule/turretbeamgun (dist=6007222.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule/turretbeam (dist=6007214.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile damaging Mule/turretbeamgun (dist=6007141.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule/turretbeam (dist=6007134.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule/. (dist=6007098.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Kafka.civvie/. (dist=6000212.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Kafka.civvie/. (dist=6000190.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Sartre.civvie/. (dist=6006633.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Sartre.civvie/. (dist=7743421.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile damaging Franklin.civvie/franklinpd (dist=6003144.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Franklin.civvie/franklinpd (dist=6003141.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Franklin.civvie/. (dist=6003111.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Entourage/. (dist=5964024.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Entourage/. (dist=6467795.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Entourage/. (dist=6000510.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Quicksilver.civvie/. (dist=5986937.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Quicksilver.civvie/. (dist=6033094.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile damaging Mule.civvie/turretbeamgun (dist=6009117.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule.civvie/turretbeam (dist=6009105.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.599939]: Missile damaging Mule.civvie/turretbeamgun (dist=6009036.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule.civvie/turretbeam (dist=6009025.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile damaging Mule.civvie/. (dist=6008984.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.599939]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.600937]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeamgun (dist=6009419.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeam (dist=6009407.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeamgun (dist=6009339.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeam (dist=6009326.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/. (dist=6009285.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.600937]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeamgun (dist=6009800.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeam (dist=6009787.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeamgun (dist=6009720.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeam (dist=6009707.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/. (dist=6009664.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.600937]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeamgun (dist=7744328.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeam (dist=7743924.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeamgun (dist=7744247.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/turretbeam (dist=7743844.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Mule.civvie/. (dist=7743358.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Shizong/. (dist=5932942.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Gaozong/. (dist=5877717.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Shizu.civvie/. (dist=5936889.500 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Shizu.civvie/. (dist=5999996.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile subunit damage of 0.000%
[2025-03-06 16:55:46.600937]: Missile damaging Charillus/aeraturretpd (dist=6026425.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Charillus/. (dist=6025669.000 r=15000000.000 dmg=0.000)
[2025-03-06 16:55:46.600937]: Missile damaging Atlantis/. (dist=0.000 r=15000000.000 dmg=0.000)

Quite a number of missile attacks on Atlantis!

@royfalk
Copy link
Contributor Author

royfalk commented Mar 7, 2025

I only see three attacks on Atlantis. I see a whole bunch of missile attacks on ships.
However,

[2025-03-06 16:55:46.518591]: Missile damaging Atlantis/. (dist=0.000 r=4.219 dmg=-nan(ind))

is potentially infinite damage and therefore causing Atlantis to die.
Looking at this further, it looks like a single explosion with radius 15000000 is hitting all of these ships.
I'll need to investigate this further.

@kheckwrecker
Copy link

kheckwrecker commented Mar 7, 2025 via email

@stephengtuggy
Copy link
Contributor

I only see three attacks on Atlantis. I see a whole bunch of missile attacks on ships. However,

[2025-03-06 16:55:46.518591]: Missile damaging Atlantis/. (dist=0.000 r=4.219 dmg=-nan(ind))

is potentially infinite damage and therefore causing Atlantis to die. Looking at this further, it looks like a single explosion with radius 15000000 is hitting all of these ships. I'll need to investigate this further.

I think you're onto something, @royfalk . I think that infinite damage value is likely wiping out the planet in one shot. Where is that value coming from, is the next question. Followed by, what do we do about it?

@stephengtuggy
Copy link
Contributor

I do not think stations should be invulnerable. Planets? Maybe. Stations? Not so much.

I have to agree with royfalk's comments. Someday in the future development, it would be wonderful to have the need and ability to destroy a station to advance a campaign storyline. That would make for an amazing and awesomely deep story line. The only problem right now with the game engine, is that as soon as you save your game and reload, the destroyed station reappears. I can only imagine how much programming would go into making sure destroyed stations stayed destroyed in saved games. As much as I personally would like to see a fully destructible environment, I'm guessing it's not likely to happen for a while?

Makes sense, I suppose.

@@ -45,6 +45,10 @@ void DamageableObject::AddLayer(DamageableLayer* layer) {
InflictedDamage DamageableObject::DealDamage(const CoreVector &attack_vector, Damage &damage) {
InflictedDamage inflicted_damage(3); // Currently hard-coded default is 3!

if(invulnerable) {
return inflicted_damage;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait a second. Shouldn't the logic be the reverse of this?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumping this, as I didn't know if this is an issue or not, but was curious.

@kheckwrecker
Copy link

I tested some more tonight. Lost two planets - Atlantis and Broadway. I pulled the relevant lines from the log, but I'm not sure it's any new information:

[2025-03-08 17:40:42.765275]: Missile damaging Broadway/. (dist=0.000 r=15.494 dmg=250.000)
[2025-03-08 17:40:42.992185]: fatal local force
[2025-03-08 17:40:42.992185]: NetForce transform skrewed
[2025-03-08 17:40:43.156747]: ship destroyed-no flightgroup
[2025-03-08 17:40:43.162730]: Missile damaging Broadway/. (dist=0.000 r=4.219 dmg=-nan(ind))
[2025-03-08 17:40:43.170709]: ship destroyed-no flightgroup
[2025-03-08 17:40:43.228073]: fatal local force
[2025-03-08 17:40:43.228073]: NetForce transform skrewed
[2025-03-08 17:40:43.235046]: Missile damaging Broadway/. (dist=0.000 r=12915186.000 dmg=0.000)
[2025-03-08 17:40:43.476224]: fatal local force
[2025-03-08 17:40:43.476224]: NetForce transform skrewed

[2025-03-08 17:05:01.350081]: void PlanetaryOrbit::Execute(): A velocity value considered unreasonable was calculated for planet Atlantis; zeroing it out
[2025-03-08 17:15:46.018772]: Missile damaging Atlantis/. (dist=0.000 r=176.476 dmg=300.000)
[2025-03-08 17:15:46.028834]: Missile damaging Atlantis/. (dist=0.000 r=4.219 dmg=-nan(ind))
[2025-03-08 17:15:46.125949]: Missile damaging Atlantis/. (dist=0.000 r=15000000.000 dmg=0.000)

The other thing I noticed tonight, as I was playing a different branch (testing docking distances), was this line in the log file:
[2025-03-08 16:54:19.177792]: Failed repair for unit Atlantis, cargo item 188: armor01 (upgrades/Armor) - please report error

Probably not relevant anymore, but thought I would report it.

@kheckwrecker
Copy link

I do not think stations should be invulnerable. Planets? Maybe. Stations? Not so much.

I have to agree with royfalk's comments. Someday in the future development, it would be wonderful to have the need and ability to destroy a station to advance a campaign storyline. That would make for an amazing and awesomely deep story line. The only problem right now with the game engine, is that as soon as you save your game and reload, the destroyed station reappears. I can only imagine how much programming would go into making sure destroyed stations stayed destroyed in saved games. As much as I personally would like to see a fully destructible environment, I'm guessing it's not likely to happen for a while?

Makes sense, I suppose.

Yeah, I wish it was different as well, but we have to work with what we've got for now.

@royfalk
Copy link
Contributor Author

royfalk commented Mar 10, 2025

I spent yesterday as well as today futzing around with this and got nowhere.
I modified torpedoes to cause serious damage and fired them at Atlantis and the rocky planet. Nada.
With Atlantis I think I blew up the atmosphere or something. I got this:

0:25(25): error: no function with name 'textureLod'
0:25(9): error: no matching function for call to `expandPrecision(error)'; candidates are:
0:25(9): error:    float expandPrecision(vec4)
0:25(9): error: operands to arithmetic operators must be numeric
0:25(2): error: `return' with wrong type error, in function `cosAngleToDepth' returning float
0:34(9): error: no function with name 'textureLod'
0:34(9): error: type mismatch
0:34(2): error: `return' with wrong type error, in function `cosAngleToAlpha' returning float
Fragment Program Error: Failed to compile planet/zwrite_gas
Compilation of technique gas_giants failed... trying 5_ps3.0/gas_giants
Cause: Error compiling program vp:"planet/zwrite_gas" fp:"planet/zwrite_gas"
Compilation of technique 5_ps3.0/gas_giants failed... trying 4_ps2.0/gas_giants
Cause: Error compiling program vp:"planet/zwrite_gas" fp:"planet/zwrite_gas"
0:27(25): error: no function with name 'textureLod'
0:27(9): error: no matching function for call to `expandPrecision(error)'; candidates are:
0:27(9): error:    float expandPrecision(vec4)
0:27(9): error: operands to arithmetic operators must be numeric
0:27(2): error: `return' with wrong type error, in function `cosAngleToDepth' returning float
0:36(9): error: no function with name 'textureLod'
0:36(9): error: type mismatch
0:36(2): error: `return' with wrong type error, in function `cosAngleToAlpha' returning float
Fragment Program Error: Failed to compile planet/zwrite_gas_ps2.0
Compilation of technique 4_ps2.0/gas_giants failed... trying 3_arbfp/gas_giants
Cause: Error compiling program vp:"planet/zwrite_gas" fp:"planet/zwrite_gas_ps2.0"
0:25(25): error: no function with name 'textureLod'
0:25(9): error: no matching function for call to `expandPrecision(error)'; candidates are:
0:25(9): error:    float expandPrecision(vec4)
0:25(9): error: operands to arithmetic operators must be numeric
0:25(2): error: `return' with wrong type error, in function `cosAngleToDepth' returning float
Fragment Program Error: Failed to compile planet/atmo_gas_arbfp1
Compilation of technique 3_arbfp/gas_giants failed... trying 2_ps1.4/gas_giants
Cause: Error compiling program vp:"planet/atmo_vs1.1.nonvar" fp:"planet/atmo_gas_arbfp1"

This was, of course, right after the torpedo hit.

@royfalk
Copy link
Contributor Author

royfalk commented Mar 10, 2025

Also I put some print lines in ApplyDamage. It's not getting called in this case.
I'm really not sure what's happening here.

@kheckwrecker
Copy link

Any way to figure out where the missle(s) coming from?

@royfalk
Copy link
Contributor Author

royfalk commented Mar 10, 2025

Any way to figure out where the missle(s) coming from?

It's not a missile. I only observed planets disappearing while fighter barracks/plainfield are fine.
I need to better understand the unit/planet life cycle. I'm not even sure this is due to an attack.
Atlantis is protected by its atmosphere. I wasn't able to hit it. Rocky (Phyllis?!) wasn't but it still wasn't getting hit.

@royfalk
Copy link
Contributor Author

royfalk commented Mar 10, 2025

Unless you mean that Armageddon missile you saw. I have no idea what that was about.

@kheckwrecker
Copy link

Is Serenity considered a base or a planet? I always thought it was a base, and it's the one most prone to disappearing. I've watched in the right side VDU Serenity's shields disappearing and then the base itself turning red and finally disappearing. I've even seen (from a distance) it exploding. Something has to be taking them out? If it's not a missile, is it collisions? It's not something stupid like docking being treated as collisions and eventually blowing the base/planet up? Might explain why Phillies tends not to blow up, since there's no reason to dock there?

@royfalk
Copy link
Contributor Author

royfalk commented Mar 10, 2025

Serenity is a unit, not a planet. There's no difference at the moment between a station and a ship.

I can also confirm this is also in 0.9, which makes me believe this issue has been flying under the radar for a while now.
My guess is planet death is different from other deaths and happening through a separate flow.

I've also seen plainfield losing shields in a way that makes me think it's going to SPEC.

@royfalk
Copy link
Contributor Author

royfalk commented Mar 11, 2025

A whole bunch of tests later and I can't figure this out. I'm not sure if planets are actually created as planets and not units. There's something seriously broken in the game.

@kheckwrecker
Copy link

I can also confirm this is also in 0.9, which makes me believe this issue has been flying under the radar for a while now.
My guess is planet death is different from other deaths and happening through a separate flow.

I can confirm as well the problem exists in 0.9. My guess is that the problem has always been there.

Playing 0.9 last night and I landed on Serenity while it was "under attack"/losing shields/getting weaker - however we want to call it. When I launched into space, my screen turned completely white and then shortly after Serenity exploded right in front of me. I even took some damage to my hull from the explosion. What I can't see is if something was actually hitting Serenity to cause the damage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Planets sustain damage
4 participants