Weapons "Jamming" Fix for Space Stations

Weapons "Jamming" Fix for Space Stations; support/discussion/questions

Moderator: thunderchero

Post Reply
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 723
Joined: Sun Apr 27, 2008 2:00 am

Weapons "Jamming" Fix for Space Stations

Post by Spocks-cuddly-tribble » Wed Jun 29, 2011 1:08 pm

First of all, I want to make clear that this fix is for the issue due to retreating ally ships, not for problems due to targets being too close to a station, minimum weapon distances or dead angles (e.g. directly above/under the station).

For some reason, if the AI uses the "Hail" command for ships and there is also a station, it just locks the station's weapons instead of giving the "Hail" command directly to the station. Aside of the fact that this code should be only for AI, it mistakenly includes the commands "Retreat & Hold" i.e. at least one ship must use a command 1-9 (see commands in tactical combat) to unlock station's weapons.

The below fix restricts this limitation to the "Hail" command:

Code: Select all

trek.exe at 0x129094
replace: (14 bytes)
08 0F 87 B7 FD FF FF FF 24 8D F0 99 52 00
with:
0B 0F 84 B7 FD FF FF 90 90 90 90 90 90 90

code changes:

529C92   83F9 0B         CMP ECX, 0B
529C95  ^0F84 B7FDFFFF   JE 529A52
529C9B   90909090909090  NOP
On the verge of a nervous breakdown? Try the relaxing tribble sounds.

Post Reply

Return to “Weapons "Jamming" Fix for Space Stations”

Who is online

Users browsing this forum: No registered users