foxtacles / vaultmp

Multiplayer mod for the PC version of Fallout 3
http://www.vaultmp.com/
Other
128 stars 47 forks source link

Fix "disappear" bug #103

Closed foxtacles closed 11 years ago

foxtacles commented 11 years ago

Currently, we don't have information about the valid coordinates of interior cells. We have that information for exteriors. We need it for interiors too, to prevent a bug that players become invisible in some cases. I've already looked around in the ESM but I can't find any information regarding coordinates of interior cells

foxtacles commented 11 years ago

required: validation if coordinates are valid in interior cell

roby65 commented 11 years ago

I digged a little in the esm. Apparently, the interiors don't have a position, and it makes sense: every interior is like a "parallel world", where you are teleported in it. So the interior doesn't have a position, the environment has, so you can guess the valid positions checking the items in it.

This is what i found and guessed from my researches.

foxtacles commented 11 years ago

Thanks. I guess we can extract the interior boundaries by checking all the object positions of an interior with some algorithm

roby65 commented 11 years ago

You already have all the references in the REFR export. Can i help parse this data to find the "center" of the interior?

foxtacles commented 11 years ago

sure, that would be awesome. I don't know the math algorithm, but it should be possible to determine a sphere or box which contains all objects in that interior. then we can use the boundaries of the sphere / box to validate coordinates

2013/6/24 roby65 notifications@github.com

You already have all the references in the REFR export. Can i help parse this data to find the "center" of the interior?

— Reply to this email directly or view it on GitHubhttps://github.com/Foxtacles/vaultmp/issues/103#issuecomment-19928027 .

Christian Semmler http://www.foxtacles.com/