Arrowstar / ksptot

KSP Trajectory Optimization Tool
Other
87 stars 13 forks source link

TOT Connect needs updating for 1.1 #10

Closed gittywithexcitement closed 8 years ago

gittywithexcitement commented 8 years ago

Hi! Great tool; thanks for making it.

With the KSP 1.1 update, it seems that part(s) of TOT Connect no longer function. The 'upload selected DV maneuver' no longer works. No maneuver node is created in the game, and no error is reported either.

The debug menu in KSP says:

[Exception]: TypeLoadException: Could not load type 'Vector3d' from assembly 'Assembly-CSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

What I've tested and still works:

P.S. You should add KSP TOT Connect as a github repository, or as a subfolder of this repository :smile:

gittywithexcitement commented 8 years ago

I have fixed the issue, and I'd send you a pull request if TOT Connect was part of this (or some other) github repository. Once you upload Connect, I'll send the pull request. :smile:

The fix was pretty simple:

Arrowstar commented 8 years ago

Hey, could you just send me the updated files on the forum? I'm having issues getting KSPTOTConnect on here.

Did you fix the conversion from degrees to radians for true anomaly, by the way?

gittywithexcitement commented 8 years ago

Hey, could you just send me the updated files on the forum?

Check your forum inbox.

Did you fix the conversion from degrees to radians for true anomaly, by the way?

No, didn't know about that.

Arrowstar commented 8 years ago

I don't see anything in my forum inbox?

gittywithexcitement commented 8 years ago

I emailed you the updated files.

Arrowstar commented 8 years ago

Currently working an issue with KSPTOTConnect and the x64 version of KSP. Hey, gittywithexcitement, if you have the time and expertise, would you be interested in helping me investigate? I'm really stuck.

Link to the issue description here: http://forum.kerbalspaceprogram.com/index.php?/topic/33568-winmac-ksp-trajectory-optimization-tool-v150-optimizations/&do=findComment&comment=2559660

gittywithexcitement commented 8 years ago

I fixed the LFQueue, by making it a locked queue. Tested and TOTConnect works fine now. So there must be an error in the old LFQueue, but I don't see the value in debugging it. It's not as if TOT needs a super high performance queue (that I'm aware of).

Also, I don't think KSP uses .NET Framework 4.0. I think it's still on 3.5.

I'm happy to submit a pull request with the updates. I know you said you were having trouble 'getting KSPTOTConnect on here'. Would you like me to submit a PR that adds TOTConnect to this repository? Would you like it in its own repository?

Arrowstar commented 8 years ago

Tell you what, send me the updated file first, then I'll release KSPTOT v151, and then, if you're up for it then, you can create a new repo for KSPTOT Connect with the release code. How does that sound?

Arrowstar commented 8 years ago

Issue confirmed resolved. New build works on KSP x64. Thanks! :)