VOGONS


Mechwarrior 2 Decomp/Recomp

Topic actions

Reply 180 of 186, by Mikeyy00

User metadata
Rank Member
Rank
Member
Mikeyy00 wrote on Yesterday, 00:48:
KHORG wrote on Yesterday, 00:30:

Same thing again with virustotal. I'm not sure what your workflow is, but maybe there's a way claude/chatgpt can include an upload/verification to there as part of it's final compile.

I specifically told it to strip it. But LLM's are great bullshitters. I'll push a new version in a few hours.

New build up, should have all the debug stripped out.

Reply 181 of 186, by KHORG

User metadata
Rank Newbie
Rank
Newbie

It's flagged again in virustotal, so I'm running it in windows sandbox now. Framerate is kind of poor.
I'm sure you're not inserting anything nefarious into it, but neither of us know what claude/chatgpt is pulling in to utilise for drivers. 13% of the codebase is now python (originally Mechwarrior 2 was C, assembly and an internal html renderer for the holoprojector), and I don't know what's in there.

On 2.7

  • The Force Shield on Golden Spade is now correctly rendered as a flat-shaded structure. It's correctly blocking sky/ground and correctly allowing mechs within/behind to be rendered, but it is blocking the rendering of structures which are within/behind it.
  • When the background transitions to the Jade Falcon Ready Room, it should run an animation of the chair moving down and then the glass opening. This animation is currently not playing.
  • Similarly, when the background transitions from the Jade Falcon Ready Room to the Clan Hall, it should run an animation of the glass closing and the chair moving up. This animation is currently not playing.
  • When issuing commands to Starmates via the Command Computer (key=B), after issuing a command, it should return you back to the base menu, not close the Command Computer menu system.
  • On Mirror Cage, the Wolf dropship is strangely offset by about 100m, it should be located in the middle of the trio of Repair Vehicles.
  • On Bone Machine, all the enemy mechs are active from the start of the mission (except those dropping from the dropship). Apart from the first Hellbringer, they should come online gradually during the mission.

The turrets on Bone Machine are a bit complex. I think they were never implemented properly the first time around in the mission files.
In DOS, they would track the Wolf dropship, but never fire at it, and then go completely to sleep when it leaves. In the decomp, they track the Wolf dropship and try to shoot it up in the air, then blaze away at anything on the ground.
In the mission file, the orders they've been given are simply "DEFEND <firebase>"

Actually I'm not even sure if the turrets might be tracking the powered down mechs on top of the dropship, rather than the dropship itself. I'm going to think about this one.

Last edited by KHORG on 2026-11-28, 14:35. Edited 1 time in total.

Reply 182 of 186, by Mikeyy00

User metadata
Rank Member
Rank
Member
KHORG wrote on Yesterday, 09:21:
It's flagged again in virustotal, so I'm running it in windows sandbox now. Framerate is kind of poor. I'm sure you're not inser […]
Show full quote

It's flagged again in virustotal, so I'm running it in windows sandbox now. Framerate is kind of poor.
I'm sure you're not inserting anything nefarious into it, but neither of us know what claude/chatgpt is pulling in to utilise for drivers. 13% of the codebase is now python (originally Mechwarrior 2 was C, assembly and an internal html renderer for the holoprojector), and I don't know what's in there.

On 2.7

  • The Force Shield on Golden Spade is now correctly rendered as a flat-shaded structure. It's correctly blocking sky/ground and correctly allowing mechs within/behind to be rendered, but it is blocking the rendering of structures which are within/behind it.
  • When the background transitions to the Jade Falcon Ready Room, it should run an animation of the chair moving down and then the glass opening. This animation is currently not playing.
  • Similarly, when the background transitions from the Jade Falcon Ready Room to the Clan Hall, it should run an animation of the glass closing and the chair moving up. This animation is currently not playing.
  • When issuing commands to Starmates via the Command Computer (key=B), after issuing a command, it should return you back to the base menu, not close the Command Computer menu system.
  • On Mirror Cage, the Wolf dropship is strangely offset by about 100m, it should be located in the middle of the trio of Repair Vehicles.
  • On Bone Machine, all the enemy mechs are active from the start of the mission (except those dropping from the dropship). Apart from the first Hellbringer, they should come online gradually during the mission.

I just checked virustotal for 2.7 and it came up clean. Shoot me a screenshot if it's still doing it. LLM swears all the debug is out. Might have been an errant SDL 3 DLL, should be removed from 2.8

Issues fixed in 2.8

Reply 183 of 186, by Mikeyy00

User metadata
Rank Member
Rank
Member
KHORG wrote on Yesterday, 09:21:
It's flagged again in virustotal, so I'm running it in windows sandbox now. Framerate is kind of poor. I'm sure you're not inser […]
Show full quote

It's flagged again in virustotal, so I'm running it in windows sandbox now. Framerate is kind of poor.
I'm sure you're not inserting anything nefarious into it, but neither of us know what claude/chatgpt is pulling in to utilise for drivers. 13% of the codebase is now python (originally Mechwarrior 2 was C, assembly and an internal html renderer for the holoprojector), and I don't know what's in there.

On 2.7

  • The Force Shield on Golden Spade is now correctly rendered as a flat-shaded structure. It's correctly blocking sky/ground and correctly allowing mechs within/behind to be rendered, but it is blocking the rendering of structures which are within/behind it.
  • When the background transitions to the Jade Falcon Ready Room, it should run an animation of the chair moving down and then the glass opening. This animation is currently not playing.
  • Similarly, when the background transitions from the Jade Falcon Ready Room to the Clan Hall, it should run an animation of the glass closing and the chair moving up. This animation is currently not playing.
  • When issuing commands to Starmates via the Command Computer (key=B), after issuing a command, it should return you back to the base menu, not close the Command Computer menu system.
  • On Mirror Cage, the Wolf dropship is strangely offset by about 100m, it should be located in the middle of the trio of Repair Vehicles.
  • On Bone Machine, all the enemy mechs are active from the start of the mission (except those dropping from the dropship). Apart from the first Hellbringer, they should come online gradually during the mission.

Re: The framerate. What are you running OS/GPU wise? Is this on Vulkan or D3D12? (assuming you're using modern Windows) - If D3D, is Vulkan better? or vice versa?

Reply 184 of 186, by KHORG

User metadata
Rank Newbie
Rank
Newbie

Framerate is only poor when I run it through windows sandbox. Otherwise fine outside of that. Although I have been meaning to go back and double check if there's a framerate drop when zooming in/out or when looking around the cockpit. It feels like there might be for the former. I need to enable some kind of framerate counter though.

Reply 185 of 186, by KHORG

User metadata
Rank Newbie
Rank
Newbie

Back on those Bone Machine turrets, are you able to ask chatgpt if there are any BWD scenario files (SCN) where a Star has been assigned a DEFEND order, but no DESTROY orders? Specifically in the SCN file, not the other BWD files containing the gp_spec for the AI.

The Bone Machine turrets are setup like that, but I suspect DEFEND is only meant to be used as a trigger (e.g. mission succeed/fail for the player star and change-to-next-objective for AI stars), not to drive who the AI attacks.
Normal enemy turrets have orders to DESTROY the player star.

That said, this order has do-not-disturb=zero, so in theory the turrets should return fire if attacked (they don't in DOS/decomp). But maybe the engine interprets this differently for AI mechs versus other gamepieces (turrets, tanks, dropships).

Reply 186 of 186, by Mikeyy00

User metadata
Rank Member
Rank
Member
KHORG wrote on Today, 01:28:
Back on those Bone Machine turrets, are you able to ask chatgpt if there are any BWD scenario files (SCN) where a Star has been […]
Show full quote

Back on those Bone Machine turrets, are you able to ask chatgpt if there are any BWD scenario files (SCN) where a Star has been assigned a DEFEND order, but no DESTROY orders? Specifically in the SCN file, not the other BWD files containing the gp_spec for the AI.

The Bone Machine turrets are setup like that, but I suspect DEFEND is only meant to be used as a trigger (e.g. mission succeed/fail for the player star and change-to-next-objective for AI stars), not to drive who the AI attacks.
Normal enemy turrets have orders to DESTROY the player star.

That said, this order has do-not-disturb=zero, so in theory the turrets should return fire if attacked (they don't in DOS/decomp). But maybe the engine interprets this differently for AI mechs versus other gamepieces (turrets, tanks, dropships).

GPT:
The Bone Machine turrets are the only turret star in MechWarrior 2 or Mercenaries whose only real order is DEFEND. Bone Machine is the Fuchsia mission (fuch files), and its Star 4 is four "Falcon Turret"s with BEGIN and DEFEND Fuchare1, mechs-per-target 0 and do-not-disturb 0.

Every other MW2 star with DEFEND but no DESTROY or ANNIHILATE

Turret stars that do shoot always have a DESTROY order in both games, usually aimed at the player star. That's 16 turret stars in MW2, and the same pattern in Mercs.

That fits your theory, and Activision's scenario guide on the Mercs CD (MW2DOC.HTM) backs it up:

DEFEND is described only as a condition: it fails when a protected object is destroyed, and succeeds on time-out or when another objective forces it. Nothing says it picks targets.
Do-not-disturb says 0 means "send out gamepieces to fight" enemies in range, and ends with "This applies to AI mechs only."

So turrets with only DEFEND and dnd 0 not returning fire is consistent with the original design. Either the Bone Machine setup is a data mistake (it would need a DESTROY to shoot), or it's deliberate and they're meant to be passive.

The closest comparison that does shoot nothing deliberately: turrets with no DESTROY at all, only WAIT. That's red_ Star 6 in MW2, and the artillery turrets in Mercs lut3/lut6. If DOS footage shows those never firing either, that confirms turrets don't attack anything a DESTROY order doesn't point them at.