Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PQS city location incorrect while in space centre scene #109

Closed
jrossignol opened this issue Jan 29, 2016 · 4 comments
Closed

PQS city location incorrect while in space centre scene #109

jrossignol opened this issue Jan 29, 2016 · 4 comments
Labels

Comments

@jrossignol
Copy link

I've been unsuccessful in getting a response to this issue on the forum (most recently here).

Contract Configurator has a feature where a contract location (which could be for a spawned vessel, spawned Kerbal or waypoint) can be specified via a PQS city name and an x,y,z offset (with an in-game debug menu to help in getting the offset).

When Kopernicus is installed, the locations generated via this method are incorrect. They typically are 100's of meters off from where they should be (but are not consistently off by the same amount. I've thrown some extra debug in, and it seems that the PSQ city's transform location is wrong, but only in the space centre scene. I've generated some debug from this Contract Configurator class:

Kopernicus
----------

SPACE CENTER SCENE

[LOG 21:19:33.199] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:    Generating a waypoint based on PQS city KSC...
[LOG 21:19:33.199] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     pqs city position = [152.625, -157.593322753906, 333.40625]
[LOG 21:19:33.200] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     i, j, k = [-0.567812025547028, -0.0069744884967804, -0.823128700256348], [-0.00535258650779724, 0.999974250793457, -0.00478057563304901],[-0.823140859603882, -0.00169144570827484, 0.567834734916687]
[LOG 21:19:33.201] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     pqs transform = KSC (UnityEngine.Transform)
[LOG 21:19:33.202] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     parent transform = Kerbin (UnityEngine.Transform)
[LOG 21:19:33.203] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     resulting lat, lon = (-0.0844478482766333, 285.351192706828)
[LOG 21:19:33.203] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:    Generated waypoint Mission Control North at -0.0844478482766333, 285.351192706828.

FLIGHT SCENE

[LOG 21:29:57.376] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:    Generating a waypoint based on PQS city KSC...
[LOG 21:29:57.377] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     pqs city position = [-267.15625, -130.474487304688, -431.75]
[LOG 21:29:57.378] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     i, j, k = [-0.567812025547028, -0.0069744884967804, -0.823128700256348], [-0.00535258650779724, 0.999974250793457, -0.00478057563304901],[-0.823140859603882, -0.00169144570827484, 0.567834734916687]
[LOG 21:29:57.379] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     pqs transform = KSC (UnityEngine.Transform)
[LOG 21:29:57.380] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     parent transform = Kerbin (UnityEngine.Transform)
[LOG 21:29:57.381] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     resulting lat, lon = (-0.0694095127717307, 285.385667168593)
[LOG 21:29:57.381] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:    Generated waypoint Mission Control North at -0.0694095127717307, 285.385667168593.


Stock
-----

SPACE CENTER SCENE

[LOG 21:24:05.223] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:    Generating a waypoint based on PQS city KSC...
[LOG 21:24:05.224] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     pqs city position = [0, 0, 0]
[LOG 21:24:05.224] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     i, j, k = [-0.567812025547028, -0.0069744884967804, -0.823128700256348], [-0.00535258650779724, 0.999974250793457, -0.00478057563304901],[-0.823140859603882, -0.00169144570827484, 0.567834734916687]
[LOG 21:24:05.226] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     pqs transform = KSC (UnityEngine.Transform)
[LOG 21:24:05.226] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     parent transform = Kerbin (UnityEngine.Transform)
[LOG 21:24:05.227] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     resulting lat, lon = (-0.0694095124750864, 285.385666844383)
[LOG 21:24:05.227] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:    Generated waypoint Mission Control North at -0.0694095124750864, 285.385666844383.

FLIGHT SCENE

[LOG 21:34:02.388] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:    Generating a waypoint based on PQS city KSC...
[LOG 21:34:02.388] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     pqs city position = [-267.15625, -130.474487304688, -431.75]
[LOG 21:34:02.389] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     i, j, k = [-0.567812025547028, -0.0069744884967804, -0.823128700256348], [-0.00535258650779724, 0.999974250793457, -0.00478057563304901],[-0.823140859603882, -0.00169144570827484, 0.567834734916687]
[LOG 21:34:02.390] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     pqs transform = KSC (UnityEngine.Transform)
[LOG 21:34:02.391] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     parent transform = Kerbin (UnityEngine.Transform)
[LOG 21:34:02.392] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:     resulting lat, lon = (-0.0694095125881606, 285.38566716942)
[LOG 21:34:02.393] [VERBOSE] ContractConfigurator.Behaviour.WaypointGenerator:    Generated waypoint Mission Control North at -0.0694095125881606, 285.38566716942.

Also note that no additional configuration is required, just having Kopernicus installed triggers this issue.

@StollD
Copy link
Member

StollD commented Jan 29, 2016

Huh, that is kinda weird. I wonder why the KSC moves when the game changes the scenes.
I'm going to take a look at this

@Sigma88
Copy link
Contributor

Sigma88 commented Dec 12, 2016

@jrossignol is this still a bug?
lately I have been working on moving PQSCity around and I do that in MainMenu and they are all where I expect them to be.
anything I can do to help troubleshoot this?

@jrossignol
Copy link
Author

jrossignol commented Dec 12, 2016 via email

@Sigma88
Copy link
Contributor

Sigma88 commented Sep 6, 2017

I tried to check the position of PQSCities from different scenes and they always match, if you encounter this issue again feel free to reopen it

@Sigma88 Sigma88 closed this as completed Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants