Skip to content

Make armor values single digit to support fix of 1891. - #321

Open
royfalk wants to merge 1 commit into
masterfrom
task_fix_1891
Open

royfalk wants to merge 1 commit into
masterfrom
task_fix_1891

Conversation

@royfalk

@royfalk royfalk commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Armor is now a function of mass or hull.
This works with vegastrike/Vega-Strike-Engine-Source#1892 to fix vegastrike/Vega-Strike-Engine-Source#1891.
Code Changes:

  • Have the PR Validation Tests been run? Minimal. Requires additional testing.

Issues:

  • None yet.

@stephengtuggy

Copy link
Copy Markdown
Contributor

Is this really necessary? Seems like a step backward, in that armor values can no longer be anything but multiples of 100.

Not that they were anything else before. But the theoretical possibility was there. And we should check PWCU and other games that use this engine, to make sure they don't use values other than multiples of 100.0.

@evertvorster

evertvorster commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

The six armorNN__upgrades rows becoming 1–6 is a clean way to define a level, but it can't merge before the engine half. It's the armour parts that go to 1–6, not the whole fleet — 165 of the 249 ship rows carry an absolute armor value that Armor::Load() reads directly (Goddard 1700, Robin.tutorial 1000), and only 21 ship rows fit an armor0X part. So on its own this leaves purchased armour and those 21 fits at 1–6 with nothing to multiply them. Please hold it until #1892 is in, or keep the old absolute values here and convert them in the PR that turns the multiplier on. The parts' Textual_Description ("does add to the mass of your ship") also no longer describes what the number means.

(Stephen's PWCU question above is still worth an answer — if any other game ships this assets tree, it decides whether the format can change at all.)

@royfalk

royfalk commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Is this really necessary? Seems like a step backward, in that armor values can no longer be anything but multiples of 100.

No. Remember, our armor is a multiplier of mass or hull. If the hull is 35 and our armor is 2, it will be 70 per facet.

Two bugs I realised:

  1. I think we divide by 4 in the engine and we shouldn't.
  2. I forgot to adjust the mass.

@BenjamenMeyer

Copy link
Copy Markdown
Member

@royfalk this is moving from a percentage (100%) to a multiplier value (1), or am I misreading it?

@royfalk

royfalk commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@royfalk this is moving from a percentage (100%) to a multiplier value (1), or am I misreading it?

You are misreading this. This makes upgrade-able armor a function of ship mass or hull.
This is documented in engine #1891. Simply put, you buy a cheap armor for your 240 ton Llama - you get 240/4=60 per side.

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.

Upgraded armor is inconsistent

4 participants