Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: FUBAR-BDHR on May 27, 2008, 12:29:31 am
-
Made several dogfights for TBP. Recently did asteroid versions. All work with the exception of one. In testing I saw the client flying off shooting at something. Hunted him down and blasted him. He asked how I could have shot him when I was 6k away. Well after testing I looked into it and everything is set up right in FRED. Tested it against myself and low and behold he was right. The host screen had me closing in on the client ship which was outside the asteroid field. The client screen showed the client ship inside the asteroid field and me over 6k away. Basically the client was showing he spawned where he should of but the host was showing the client ship about 6k away from where he was. Couldn't see anything strange about the mission until I opened it up in notepad. I was using the background and coordinates from a single player mission. Here's the field definition:
$Minimum: -4000.000000, -4000.000000, 84000.000000
$Maximum: 4000.000000, 4000.000000, 92000.000000
And ship locations:
$Location: -1504.099854, 156.250763, 86500.000000
$Location: -4.100000, 156.250763, 86000.000000
Is it possible that multi cannot handle coordinates that high? Link to mission FUBAR_MD11.fs2 (http://fubar4.fubar.org/tbp/multi/FUBAR_MD11.fs2)
-
Coordinate data is stored as a floating point so I would expect it to get less precise at longer distances. I wouldn't expect it to get bad quite that quickly though.
What happens if you simply move everything closer to 0,0,0?
-
Subtracted 80000 from all the z axis values and everything works fine so it seems the large values are causing the problem.
-
Will the mission work with small values for now or is there some reason you needed the big ones?
Stick it in mantis either way, I just want to know how likely this is to be an issue for you.
-
I can use it with smaller values I'll just need to see what effect it has on the background and adjust for it or just change the background to a different system.