Disabling effects of black holes and neutron stars

This forum is for outdated or irrelevant Modding Information that may or may not be 3 months old.

Moderator: thunderchero

Post Reply
User avatar
Darth_Windu
Lieutenant-Commander
Lieutenant-Commander
Posts: 156
Joined: Sat Jul 19, 2008 2:00 am

Disabling effects of black holes and neutron stars

Post by Darth_Windu »

Hi all,

Aside from using UE to make sure they don't appear, is there any way to disable the effects of black holes or neutron stars? Essentially I like them being there as eye-candy, but it irritates the hell out of me when one of 9-ship destroyer task forces is wiped out, in 'intercept' mode, because they went too close to a black hole.
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Re: Disabling effects of black holes and neutron stars

Post by Peter1981 »

SCT wrote:
Gowron wrote:
5. Black Holes
If a ship with a movement rate of 1 starts its turn on a square with a black hole, then there's a chance that it's destroyed.
The table of likelihoods by Gowron.
Gowron wrote:
Ships with a movement rate of 2 or more are not destroyed by black holes
The needed minimum speed in order to be save is in trek.exe at 0x17882C (8 bytes) - default value 2.0
Gowron wrote:
A damaged ship will repair a part of its hull at the very start of each turn.
If the square contains a star system (no matter if friendly or not, no matter if inhabitated or not), then the ship gains an amount of HPs equal to 10% of its maximum hull strength.
UPDATE:

I've located the damage value for Neutron Stars.

It's stored in trek.exe two times.

The first entry is found at position 0x6B104.
length: 4 bytes (yep, that's a LOT of damage potential ^^)
default value: 0xE1 = 225(dec)
If the combined (nominal!) ship+hull strength of the resp. ship is lower than this value, then the ship is destroyed without applying damage calculation.

The second entry is located at position 0x6B1A5.
length: 4 bytes
default value: 0xE1 = 225(dec)
This is the actual damage value. It's only used if the ship's combined ship+hull strength is higher than the value at 0x6B104. If so, then the damage value is first reduced by the ship's shield strength, and then the remaining damage (if any) is applied to the hull strength.
Did you try searching the forums?


Gowrpn wrote:
•46BF3A: destruction by a black hole.
User avatar
Darth_Windu
Lieutenant-Commander
Lieutenant-Commander
Posts: 156
Joined: Sat Jul 19, 2008 2:00 am

Re: Disabling effects of black holes and neutron stars

Post by Darth_Windu »

Honestly, no. It was about 1am and I was curious. Apologies for that.

EDIT: also, as interesting as that info is, I have absolutely no idea how I translate that into the effect that I want.
User avatar
Peter1981
Rear-Admiral
Rear-Admiral
Posts: 1118
Joined: Tue May 06, 2008 2:00 am
Location: England

Re: Disabling effects of black holes and neutron stars

Post by Peter1981 »

Open trek.exe
at 0x6B104 change 1E (225) to 00 (zero)
at 0x6B1A5 change 1E (225) to 00 (zero)

this make the damage done by neutron stars zero.
Post Reply

Return to “Modding Information Archive”