Author Topic: Strange multiplayer issue. Coordinate related?  (Read 1372 times)

0 Members and 1 Guest are viewing this topic.

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Strange multiplayer issue. Coordinate related?
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


No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Strange multiplayer issue. Coordinate related?
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?
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Strange multiplayer issue. Coordinate related?
Subtracted 80000 from all the z axis values and everything works fine so it seems the large values are causing the problem.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Strange multiplayer issue. Coordinate related?
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.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Strange multiplayer issue. Coordinate related?
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.
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras