VOGONS


Mechwarrior 2 Decomp/Recomp

Topic actions

Reply 180 of 191, 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 191, 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, re-tested on 2.12

  • 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-29, 12:02. Edited 5 times in total.

Reply 182 of 191, 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 191, 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 191, 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 191, 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 191, 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.

Reply 187 of 191, by Happy1337

User metadata
Rank Newbie
Rank
Newbie

Hey, thank you for making this.

Trying it for myself as of right now and wanted to report an issue.
Tried the MW2-Port-v2.12-windows-x64.zip using a copy of the German Pentium edition.
Did not install any of the 3D addons yet.
The game immediately crashes my GPU driver when starting any of the trials using DX12 (but works fine with Vulkan). Menus work with dx12
Are there maybe some kind of crash-logs I could post ?
(rx9060xt with 26.11.1 drivers)

Reply 188 of 191, by KHORG

User metadata
Rank Newbie
Rank
Newbie

On 2.12

  • 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 should end at a position where the chair is down and the glass remains open. Currently it's immediately flicking back to a frame/position where the glass is closed.
  • When you successfully finish the last mission with a pilot, the Register should then state Mission "RETIRED", not Mission " - ".
  • 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.
  • There's now a jitter in External Camera mode. Usually in External Camera, the view should bounce slightly with the mech when it moves at full speed. This is still there and appears correct, but there is a jitter when rendering your own mech in external view. It doesn't affect the ground/terrain, only the rendering of your own mech.

These bugs have all survived from 1.1.42 and are still present:

  • The large boundary walls of the various Wolf Trial arenas in the original game appear grey if viewed perpendicular, but appear black if viewed on an acute angle. Rightly or wrongly this is the behaviour in DOS and in the new decomp version so should probably be continued until we decide to alter it. However, the decomp version has now picked up an issue where there is massive triangular flickering on these walls.
  • On Cold Crescent, the gate objects to the Teraformer complex should part to the sides when they recognise your IFF, but they don't open.
  • On Cold Crescent, certain lengths of the monorail structure itself (which is a non-targettable structure) have a flickering problem when it is rendered.
  • On Cold Crescent, the "nuke" explosion which occurs on a delay after the Teraformer is destroyed is never played. So enemy mechs close to the Teraformer are never destroyed and the player doesn't see the white-light effect on their screen.

I'm going to go with the following to fix the Bone Machine turrets. This will mean they do not initiate targetting, but they do that in DOS anyway as it's a mission file problem.
I'm actually unsure if they will return fire or not. I guess we'll find out. There are very few turrets/dropships in the game which haven't been given explicit attack orders, these seem to be the exception.

  • The DEFEND order in a scenario file should not cause a Star (be it turret, mech, dropship or otherwise) to target and attack another gamepiece.

Reply 189 of 191, by Mikeyy00

User metadata
Rank Member
Rank
Member
Happy1337 wrote on Today, 04:26:
Hey, thank you for making this. […]
Show full quote

Hey, thank you for making this.

Trying it for myself as of right now and wanted to report an issue.
Tried the MW2-Port-v2.12-windows-x64.zip using a copy of the German Pentium edition.
Did not install any of the 3D addons yet.
The game immediately crashes my GPU driver when starting any of the trials using DX12 (but works fine with Vulkan). Menus work with dx12
Are there maybe some kind of crash-logs I could post ?
(rx9060xt with 26.11.1 drivers)

Hey, yes.

Run via cmd (so, cd into the folder.. e.g. cd\mech2)
mw2.exe > mw2.log 2>&1

shoot me that log file (preferably via GIthub)

Reply 190 of 191, by Magos_Cybernetica

User metadata
Rank Newbie
Rank
Newbie

It would be a dream come true to have one port of MW2 that will work with any version you want to play and allow the best of all of the to be mix/matched or whatever you want.

Will it have working multiplayer? Also I love that you are a fan of Heavy Gear 1 and 2 those are seriously underrated games. One of the best Battle Suit type games I have ever played, nothing since then has really scratched the itch the right way.

Also I call games where the machines mimic human body movements Battle Suits, where as a Mechwarrior is more of a mobile gun platform. Just so that is clear. 😁

Reply 191 of 191, by Happy1337

User metadata
Rank Newbie
Rank
Newbie

Sorry, dont have a github account - but the mv2.log is only one line :

"look: the 3D looks need the 3d/ folder (models.prj, textures.prj) in the game folder - using the DOS look"

With dx12 the level loads, works for like 1sec. and than crashes the driver. It's fine with Vulkan