FLHDE / freelancer-hd-edition

Freelancer: HD Edition is a mod that aims to improve every aspect of the game Freelancer (2003) while keeping the look and feel as close to vanilla as possible.
https://www.moddb.com/mods/freelancer-hd-edition
180 stars 15 forks source link

Player ship does not collide with some mines and volatile gas clouds #213

Open BC46 opened 11 months ago

BC46 commented 11 months ago

The player ship cannot collide with some mines in the Tau-23 minefield. Additionally, the mines do not detonate when the player ship gets too close to them. The same goes for some volatile gas clouds in Tau-29 that you fly through during mission 7. ~I've checked in vanilla FL and even there these particular mines and volatile gas clouds behave the same.~

I've attached two save files (saves.zip) where you spawn right in front of the mines and clouds in question.

BC46 commented 11 months ago

I previously said that these issues occur in vanilla Freelancer as well. However, this is not true as after testing it a second time, neither issues occurred on my vanilla install. At least one did occur on my JFLP install.

BC46 commented 11 months ago

Tau-29 gas clouds: it appears this issue is caused by the doubled fill_distance values in bw09_oxygen_pocket_field.ini. A fix I found is to update the following offset to 0.87f:

1.74f | common.dll | 13DFDC | w0dk4OutCast | Multiplier for fill_dist in CmnAsteroid::CAsteroidField::near_field calculation, increase this to make FL render asteroid fields from greater distances.

However, this patch is a bit risky; in an earlier version of HDE this patch had been removed as it caused collision bugs with asteroids. So before this patch is applied again, everything needs to be tested very well to see if it doesn't cause bugs in other asteroid/gas pocket fields.

Tau-23 mines and asteroids: this appears to be a vanilla issue. I couldn't figure out what the problem is.

FireFlyEx commented 11 months ago

After a lot of experimentation... I don't have an answer. Deleting the zone that these mine zones are inside of fixes it. Deleting the [Asteroids] entry linked to that main zone also fixes it. Perhaps there is an object limit that is being broken? I even tried all of the asteroid related hex edits and some others. None of them worked for me.

BC46 commented 11 months ago

Thanks for investigating this!

FireFlyEx commented 11 months ago

Just tried out the gas mine save. So it's not broken in my old 2014 install but is in HD. The regular mine is broken in both. Very strange..