3 years agoMerge branch 'master' of github.com:toadicus/ToadicusTools 15
Andy Wilkinson []
Merge branch 'master' of github.com:toadicus/ToadicusTools

3 years agoNew GetSceneRootPart, to get the root part based on the current scene.
Andy Wilkinson []
New GetSceneRootPart, to get the root part based on the current scene.

3 years agoDebugPartModule: Avoid exceptional behaviour during OnAwake at the loading screen.
toadicus []
DebugPartModule: Avoid exceptional behaviour during OnAwake at the loading screen.

3 years agoSome minor refactoring within PartExtensions 14
Andy Wilkinson []
Some minor refactoring within PartExtensions

3 years agoTaught Part.isDecoupler about stageable docking nodes.
Andy Wilkinson []
Taught Part.isDecoupler about stageable docking nodes.

3 years agoNew SafeSetValue overload for bool. 13
Andy Wilkinson []
New SafeSetValue overload for bool.

3 years agoLittle stuff
Andy Wilkinson []
Little stuff

3 years agoMore optimizations in IsLineOfSightTo
toadicus []
More optimizations in IsLineOfSightTo

3 years agoDeprecated the old excludedBodies[] overloads of the line of sight methods, in favor of overloads with one or no such argument.
toadicus []
Deprecated the old excludedBodies[] overloads of the line of sight methods, in favor of overloads with one or no such argument.

3 years agocsproj
toadicus []
csproj

3 years agoTools: Logging now uses SIFormatter, if it's included.
toadicus []
Tools: Logging now uses SIFormatter, if it's included.

3 years agoSIFormatProvider: Fixed null handling in Format.
toadicus []
SIFormatProvider: Fixed null handling in Format.

3 years agoMoved RollingAverage to its own file.
toadicus []
Moved RollingAverage to its own file.

3 years agoVectorTools: Fix IsLineOfSight overload to not recurse with itself.
toadicus []
VectorTools: Fix IsLineOfSight overload to not recurse with itself.

3 years agoStringTools: Changed to StringBuilder Print for consistency with StringBuilder methods, and tweaks to the List/Array SPrints to make them somewhat more robust. 12
toadicus []
StringTools: Changed to StringBuilder Print for consistency with StringBuilder methods, and tweaks to the List/Array SPrints to make them somewhat more robust.

3 years agoCopyright year updates.
Andy Wilkinson []
Copyright year updates.

3 years agoKSPAPIEL->KSPAPIExtensions for new split distribution of the latter. 11
toadicus []
KSPAPIEL->KSPAPIExtensions for new split distribution of the latter.

3 years agoAdded some safety to GetStringBuilder
toadicus []
Added some safety to GetStringBuilder

3 years agoDisable the event sniffer because most people don't need it.
toadicus []
Disable the event sniffer because most people don't need it.

3 years agoNew static methods for Get/PutStringBuilder to avoid reallocating things all the time.
toadicus []
New static methods for Get/PutStringBuilder to avoid reallocating things all the time.

3 years agoRedid AnimationWrapper to be non-horrible.
toadicus []
Redid AnimationWrapper to be non-horrible.

3 years agocsproj
Andy Wilkinson []
csproj

3 years agoTweakableTools: Convert to UI_Control to eliminate the need for outside of the tools.
Andy Wilkinson []
TweakableTools: Convert to UI_Control to eliminate the need for outside of the tools.

3 years agoEventSniffer: Added onEditorPartEvent
Andy Wilkinson []
EventSniffer: Added onEditorPartEvent

3 years agoDebugPartModule: Always build the class.
Andy Wilkinson []
DebugPartModule: Always build the class.

3 years agoTweakableAnimationWrapper: Temporarily disabling while we sort out the right way to do this.
Andy Wilkinson []
TweakableAnimationWrapper: Temporarily disabling while we sort out the right way to do this.

3 years agoMoved basic LOS calc to VectorTools, using it from VesselExtensions.
Andy Wilkinson []
Moved basic LOS calc to VectorTools, using it from VesselExtensions.

3 years agoRandomTools: New static class to use a single rng for all randomness.
Andy Wilkinson []
RandomTools: New static class to use a single rng for all randomness.

3 years agoPartExtensions: Added getFirstModuleByName methods.
Andy Wilkinson []
PartExtensions: Added getFirstModuleByName methods.
Tools: Added generic array search.

3 years agoMore Linq removal.
Andy Wilkinson []
More Linq removal.

3 years agoStart getting rid of Linq.
toadicus []
Start getting rid of Linq.

3 years agoConverted foreach->for throughout.
toadicus []
Converted foreach->for throughout.

3 years agoChanged TweakableTools to use KSPAPIEL.
Andy Wilkinson []
Changed TweakableTools to use KSPAPIEL.

3 years agoNo longer build TweakableTools into ToadicusTools, but keep the file here for ease of use in various TweakableEverything modules. Add optional methods to support KSPAPIExtensions.
toadicus []
No longer build TweakableTools into ToadicusTools, but keep the file here for ease of use in various TweakableEverything modules. Add optional methods to support KSPAPIExtensions.

3 years agoSome tweaks to debug logging so it will work when #define DEBUG is used in just a single file.
toadicus []
Some tweaks to debug logging so it will work when #define DEBUG is used in just a single file.

3 years agoVesselExtensions sqrDistanceTo CelestialBody once again returns the sqrDistance to the center of the body.
Andy Wilkinson []
VesselExtensions sqrDistanceTo CelestialBody once again returns the sqrDistance to the center of the body.

3 years agoTools: Logs now use ToString instead of a cast to guarantee it works. DebugLogger: Added Clear method. VesselExtensions: Added some null gates.
Andy Wilkinson []
Tools: Logs now use ToString instead of a cast to guarantee it works. DebugLogger: Added Clear method. VesselExtensions: Added some null gates.

3 years agoRemoved IModuleDB.cs
Andy Wilkinson []
Removed IModuleDB.cs

3 years agoStringTools: Added md5 generator for string hashing.
toadicus []
StringTools: Added md5 generator for string hashing.

3 years agoStringTools: Throw FormatException for empty format strings.
toadicus []
StringTools: Throw FormatException for empty format strings.

3 years agoChange deprecated call to Vector3.Exclude in favor of Vector3.ProjectOnPlane.
toadicus []
Change deprecated call to Vector3.Exclude in favor of Vector3.ProjectOnPlane.

3 years agocsproj changes
Andy Wilkinson []
csproj changes

3 years agoChange localField validity based on all negative values for ersatz compatibility with TweakScale.
Andy Wilkinson []
Change localField validity based on all negative values for ersatz compatibility with TweakScale.

3 years agoAdded isInStagingList to help TweakableStaging.
Andy Wilkinson []
Added isInStagingList to help TweakableStaging.

3 years agoDBWrappers: Removed, finally.
Andy Wilkinson []
DBWrappers: Removed, finally.

3 years agoDebugTick: Added another directive flag to make it not happen on normal debug compiles.
Andy Wilkinson []
DebugTick: Added another directive flag to make it not happen on normal debug compiles.

3 years agoAdded debug-only DebugTick behavior.
Andy Wilkinson []
Added debug-only DebugTick behavior.

3 years agoStringTools: Changed SIFormatProvider.Format to probably fall back more appropriately when arguments are not formattable.
toadicus []
StringTools: Changed SIFormatProvider.Format to probably fall back more appropriately when arguments are not formattable.

3 years agoConfigNodeExtensions: Added SafeSetValue to add or set values as appropriate without duplicating keys.
toadicus []
ConfigNodeExtensions: Added SafeSetValue to add or set values as appropriate without duplicating keys.

3 years agoSIFormatProvider.ToSI: -inf != inf.
Andy Wilkinson []
SIFormatProvider.ToSI: -inf != inf.

3 years agoSIFormatProvider.ToSI: Protect against values of unusual size.
Andy Wilkinson []
SIFormatProvider.ToSI: Protect against values of unusual size.

3 years agoMath: Documentation for fun and profit.
toadicus []
Math: Documentation for fun and profit.

3 years agoMath: float version now my float-y.
toadicus []
Math: float version now my float-y.

3 years agoNow featuring a whole new file full of micro-optimizations.
toadicus []
Now featuring a whole new file full of micro-optimizations.

3 years agoToSI: Micro-optimizations, for reasons.
Andy Wilkinson []
ToSI: Micro-optimizations, for reasons.

3 years agoNew custom ToSI method that uses sigfigs to adjust the magnitude to the most-readable form. Hopefully.
Andy Wilkinson []
New custom ToSI method that uses sigfigs to adjust the magnitude to the most-readable form. Hopefully.

3 years agoIntCollection: No longer support wrapping below 0.
Andy Wilkinson []
IntCollection: No longer support wrapping below 0.

3 years agoTweakableTools: Added exception protection for the Load methods.
Andy Wilkinson []
TweakableTools: Added exception protection for the Load methods.

3 years agoAppLauncherTools: Now includes MAPVIEW when translating from GameScenes.FLIGHT.
Andy Wilkinson []
AppLauncherTools: Now includes MAPVIEW when translating from GameScenes.FLIGHT.

3 years agoGUITools: More options for Toggle.
Andy Wilkinson []
GUITools: More options for Toggle.

3 years agoTable: Removed some very noisy Debug code.
toadicus []
Table: Removed some very noisy Debug code.

3 years agoVesselExtensions: New methods for fetching modules directly from the vessel.
toadicus []
VesselExtensions: New methods for fetching modules directly from the vessel.

3 years agoChanged up the SIFormatProvider for reasons.
Andy Wilkinson []
Changed up the SIFormatProvider for reasons.

3 years agoNew GUITools to help do things in GUILayout with fewer lines, and less ugly.
Andy Wilkinson []
New GUITools to help do things in GUILayout with fewer lines, and less ugly.

3 years agoTable: Tweaks to make dynamic tables finally actually draw correctly.
Andy Wilkinson []
Table: Tweaks to make dynamic tables finally actually draw correctly.

3 years agoTweaked the declaration and definition of myFormatter.
Andy Wilkinson []
Tweaked the declaration and definition of myFormatter.

3 years agoTable: A bunch of changes to make it a bit more friendly.
Andy Wilkinson []
Table: A bunch of changes to make it a bit more friendly.

3 years agoGameScenes.ToAppScenes: Made some basic improvements given the new 0.90 stuff.
toadicus []
GameScenes.ToAppScenes: Made some basic improvements given the new 0.90 stuff.

3 years agoTable: Added this[int] to Column interface.
toadicus []
Table: Added this[int] to Column interface.

3 years agoRemoved SparseTable because I don't really need it anyway.
toadicus []
Removed SparseTable because I don't really need it anyway.

3 years agoA bunch more changes to SparseTable; doesn't actually work for some reason.
toadicus []
A bunch more changes to SparseTable; doesn't actually work for some reason.

3 years agoConfigNodeExtensions: New GetValue method for default strings.
toadicus []
ConfigNodeExtensions: New GetValue method for default strings.

3 years agoA bunch of work on SparseTable and LayoutTable.
toadicus []
A bunch of work on SparseTable and LayoutTable.

3 years agoLogging: Robustified component name selection for Vessel and Part classes.
toadicus []
Logging: Robustified component name selection for Vessel and Part classes.

3 years agoCelestialBody[].Contains: Fixed accidental breakage from 6084404.
Andy Wilkinson []
CelestialBody[].Contains: Fixed accidental breakage from 6084404.

3 years agoPartExtension: Null checks for GetModule[s]OfType.
Andy Wilkinson []
PartExtension: Null checks for GetModule[s]OfType.

3 years agoRemoving .dll from version control.
Andy Wilkinson []
Removing .dll from version control.

3 years agoVesselExtensions.CurrentCommand: Fixed KerbalSeat occupant detection.
Andy Wilkinson []
VesselExtensions.CurrentCommand: Fixed KerbalSeat occupant detection.

3 years agoDeploy reworking, Windows edition.
Andy Wilkinson []
Deploy reworking, Windows edition.

3 years agoReworking the way deployments are handled.
Andy Wilkinson []
Reworking the way deployments are handled.

3 years agoA bunch more logging tools, with UnityEngine.Component extensions for ease of use.
Andy Wilkinson []
A bunch more logging tools, with UnityEngine.Component extensions for ease of use.

3 years agoRevert "Added AssemblyInfo for eventual version tracking for CKAN."
toadicus []
Revert "Added AssemblyInfo for eventual version tracking for CKAN."

This reverts commit 938e70eb30511727f129f757a034ac4e3afb2502.

Conflicts:
ToadicusTools.csproj

3 years agoRemoved EVAManager because it's going to be its own thing now.
toadicus []
Removed EVAManager because it's going to be its own thing now.

3 years agoEVAManager: New EVAPartResource class implementing 'smart' resources that will auto-fill from the pod being left, and return to the pod being entered.
toadicus []
EVAManager: New EVAPartResource class implementing 'smart' resources that will auto-fill from the pod being left, and return to the pod being entered.

3 years agoTweakableTools: Removed ambiguity between two method overloads.
toadicus []
TweakableTools: Removed ambiguity between two method overloads.

3 years agoMerge branch 'master' of ssh://toad.homelinux.net:22222/ToadicusTools
toadicus []
Merge branch 'master' of ssh://toad.homelinux.net:22222/ToadicusTools

3 years agoAdded AssemblyInfo for eventual version tracking for CKAN.
toadicus []
Added AssemblyInfo for eventual version tracking for CKAN.

3 years agoTweakableTools: Restored API compatibility with older versions of TweakableEverything.
Andy Wilkinson []
TweakableTools: Restored API compatibility with older versions of TweakableEverything.

3 years agoTweakableTools: Allow tools to be initialized with and save a multiplier for the "stepIncrement" field.
toadicus []
TweakableTools: Allow tools to be initialized with and save a multiplier for the "stepIncrement" field.

3 years agoUpdated for 0.90.0 API compatibility.
toadicus []
Updated for 0.90.0 API compatibility.

3 years agoEVAManager: Moved from TweakableEVA and upgraded to be awesome. Now features modules and resources.
toadicus []
EVAManager: Moved from TweakableEVA and upgraded to be awesome. Now features modules and resources.

3 years agoConfigNodeExtensions: Added bool methods.
toadicus []
ConfigNodeExtensions: Added bool methods.

3 years agoDebugPartModule: Now overrides all the PartModule virtuals.
toadicus []
DebugPartModule: Now overrides all the PartModule virtuals.

3 years agoTools: DebugLogger.AppendLine now does line breaks on its own to stop Unity mucking it up.
toadicus []
Tools: DebugLogger.AppendLine now does line breaks on its own to stop Unity mucking it up.

3 years agoEventSniffer: Now sniffing more events.
toadicus []
EventSniffer: Now sniffing more events.

3 years agoRevert "VesselExtensions: Added getLineOfSight methods to return an Enum of Blocked, Clear, Margin line of sight status."
Andy Wilkinson []
Revert "VesselExtensions: Added getLineOfSight methods to return an Enum of Blocked, Clear, Margin line of sight status."

Looks like this wasn't working quite right yet or something.

This reverts commit 7952445cc7a8bbc30cff3e13fa655021e22bde93.

3 years agoDebugLogger: Added a boolean to Print() to avoid printing messages to the screen, to avoid crashes when the application is shutting down. ARdev-LOS
toadicus []
DebugLogger: Added a boolean to Print() to avoid printing messages to the screen, to avoid crashes when the application is shutting down.

3 years agoSparseTable: Disable compile for release builds until we start using it.
Andy Wilkinson []
SparseTable: Disable compile for release builds until we start using it.

3 years agoTable: Made the headers two lines deep for now.
Andy Wilkinson []
Table: Made the headers two lines deep for now.

4 years agoVesselExtensions: Added getLineOfSight methods to return an Enum of Blocked, Clear, Margin line of sight status.
toadicus []
VesselExtensions: Added getLineOfSight methods to return an Enum of Blocked, Clear, Margin line of sight status.