-
Posts
24,937 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by linuxgurugamer
-
[1.12.x] Smart Parts Continued
linuxgurugamer replied to linuxgurugamer's topic in KSP1 Mod Releases
That's not an optimization, it's a pretty sizable addition. -
Sounds reasonable. thanks
- 111 replies
-
- 1
-
-
- no contracts
- rep
-
(and 1 more)
Tagged with:
-
So if this is just a continuation of the Science Funding mod, why not keep the name?
- 111 replies
-
- no contracts
- rep
-
(and 1 more)
Tagged with:
-
[1.2.2] Stock Part Revamp, Update 1.9.6. Released Source Files!
linuxgurugamer replied to Ven's topic in KSP1 Mod Development
You don't need to use it. Most active mod makers do care, and respond. In this case, Ven is moving on, and isn't that active any more. Your attitude is the type which makes mod makers lose interest and move on. And following up to your last post, not everyone uses or knows about github. -
[1.2-1.6] Draggable Altimeter v1.0.1 (2016-12-03)
linuxgurugamer replied to Error_Sophius's topic in KSP1 Mod Releases
Update the first post I'm pretty sure the IVA is initially hard-coded, which is why it can't be fixed in a more permanent manner -
Is it 1.2.1 compatible?
-
[1.12.x] Mark IV Spaceplane System (August 18, 2024)
linuxgurugamer replied to Nertea's topic in KSP1 Mod Releases
Just opened a new issue on github: https://github.com/ChrisAdderley/MkIVSystem/issues/27 Apparently on this part, at least one of the attachnodes has a size which comes back as -1, which was causing an exception in The Janitor's Closet. The number seems wrong, it shouldn't be negative. -
Looked promising, but no go. So, I use the following code to get the correct camera: Camera cam; if (HighLogic.LoadedSceneIsEditor) cam = EditorLogic.fetch.editorCamera; else if (HighLogic.LoadedSceneIsFlight) cam = FlightCamera.fetch.mainCamera; else cam = Camera.main; and then this: Vector3 screenPos = camera.WorldToScreenPoint(button.transform.position); Debug.Log("target location is " + screenPos.x.ToString() + ", " + screenPos.y.ToString()); var mouse = Input.mousePosition; Debug.Log("mouse position: " + mouse.x.ToString() + ", " + mouse.y.ToString() + ", " + mouse.z.ToString()); button is set when I add the button to the app toolbar. and the values I get are nowhere near what the mouse position is: mouse position: 1477, 25, 0 location is 313.2482, -684.1502 The mouse is on top of the button when I click it, and at that moment I get the coordinates
-
I need to get the on-screen x,y coordinates of an object. Right now it's a toolbar button, but later other stuff. So for now, talking about ApplicationLauncherButton, I get the button when it's clicked. But so far, I haven't been able to find anything (transforms, etc) which are remotely close to what the onscreen location is. I know the approximate onscreen location from the mouse, I can get the mouse location using Input.mousePosition, and the Vector3 which is returned gives the x,y location. I've tried using the following, with no success: button.sprite.transform.position button.position button.GetAnchor() button.GetAnchorTopRight() button.GetAnchorUL() button.GetAnchorUR() button.transform.position doesn't give anything close. Suggestions?
-
[1.12.x] Smart Parts Continued
linuxgurugamer replied to linuxgurugamer's topic in KSP1 Mod Releases
You need to contact the AGX author, since that is where the exceptions are. -
[1.12.x] Smart Parts Continued
linuxgurugamer replied to linuxgurugamer's topic in KSP1 Mod Releases
Well, thanks for the log file. I wonder, did you look at it? Lots and lots of exceptions, in almost everything you have except Smart Parts. Very specifically, your AGX problem is probably related to the following error: NullReferenceException: Object reference not set to an instance of an object at ActionGroupsExtended.AGXOtherVessel.LoadGuiNames (System.String loadNames) [0x00000] in <filename unknown>:0 at ActionGroupsExtended.AGXOtherVessel..ctor (UInt32 FlightID) [0x00000] in <filename unknown>:0 at ActionGroupsExtended.AGExtExternal.AGX2VslToggleGroup (UInt32 FlightID, Int32 group) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 at System.MonoType.InvokeMember (System.String name, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args, System.Reflection.ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, System.String[] namedParameters) [0x00000] in <filename unknown>:0 at System.Type.InvokeMember (System.String name, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object target, System.Object[] args) [0x00000] in <filename unknown>:0 at Lib.AGXInterface.AGX2VslToggleGroup (UInt32 FlightID, Int32 group) [0x00000] in <filename unknown>:0 at Lib.Helper.fireEvent (.Part p, Int32 eventID, Int32 AGXgroup) [0x00000] in <filename unknown>:0 at Lib.RadioControl.receiveCommand (Lib.RadioControl sender, Int32 group, Int32 transmitChannel, Int32 agxGroup) [0x00000] in <filename unknown>:0 at Lib.RadioControl.transmitCommand (Single groupID, Single agxGroupNumB) [0x00000] in <filename unknown>:0 at Lib.RadioControl.transmit_GUI () [0x00000] in <filename unknown>:0 at BaseEvent.Invoke () [0x00000] in <filename unknown>:0 at UIPartActionButton.OnClick () [0x00000] in <filename unknown>:0 at UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) [0x00000] in <filename unknown>:0 at UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0 at UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0 at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <filename unknown>:0 at UnityEngine.UI.Button.Press () [0x00000] in <filename unknown>:0 at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <filename unknown>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <filename unknown>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) [0x00000] in <filename unknown>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() UnityEngine.EventSystems.StandaloneInputModule:Process() UnityEngine.EventSystems.EventSystem:Update() -
[1.12.x] Smart Parts Continued
linuxgurugamer replied to linuxgurugamer's topic in KSP1 Mod Releases
Wow, that's a really nice picture. Totally useless! I need a log file, which you STILL haven't posted.